Function at 0x405fa5
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x144
mov eax, dword [0x4c7080]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x10], eax
mov ecx, eax
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
add edi, edx
cmp edi, edx
je 0x406042
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40603e
mov eax, dword [edi + 0x20]
lea ebp, [eax + ecx*4]
add ebp, edx
lea ebp, [ebp - 4]
mov eax, 0x4058dfb8
mov esi, dword [ebp]
dec ecx
add esi, edx
mov dword [esp + 0x14], eax
mov al, byte [esi]
inc esi
test al, al
je 0x40603a
mov edx, dword [esp + 0x14]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [esi]
inc esi
test al, al
jne 0x406013
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0xd1fca1c0
mov edx, dword [ebx + 0x18]
je 0x406180
test ecx, ecx
jne 0x405ff6
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebx, eax
cmp eax, ecx
je 0x406050
cmp dword [ebx + 0x18], 0
jne 0x405fd7
xor eax, eax
push 0
push 0xf
call eax
mov ecx, dword fs:[0x30]
mov dword [esp + 0x20], pe_nt_image_headers32
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebx, eax
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
add edi, edx
cmp edi, edx
je 0x4060e6
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4060e2
mov eax, dword [edi + 0x20]
lea ebp, [eax + ecx*4]
add ebp, edx
lea ebp, [ebp - 4]
mov eax, 0x61d06653
mov esi, dword [ebp]
dec ecx
add esi, edx
mov dword [esp + 0x10], eax
mov al, byte [esi]
inc esi
test al, al
je 0x4060de
mov edx, dword [esp + 0x10]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [esi]
inc esi
test al, al
jne 0x4060b7
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0x973b2edd
mov edx, dword [ebx + 0x18]
je 0x40619a
test ecx, ecx
jne 0x40609a
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
mov ebx, eax
cmp eax, ecx
je 0x4060f4
cmp dword [ebx + 0x18], 0
jne 0x40607b
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4061ac
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x3c]
mov ebx, dword [ecx + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x40617c
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40617c
mov ecx, dword [ebx + 0x20]
lea ebp, [ecx + esi*4]
add ebp, edx
lea ebp, [ebp - 4]
mov ecx, 0xe344b5ef
mov edi, dword [ebp]
dec esi
add edi, edx
mov dword [esp + 0x10], ecx
mov cl, byte [edi]
inc edi
test cl, cl
je 0x406178
mov edx, dword [esp + 0x10]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x406151
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0x61939863
mov edx, dword [eax + 0x18]
je 0x40644b
test esi, esi
jne 0x406134
mov eax, dword [eax]
jmp 0x406115
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x406052
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
jmp 0x40643e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4061d4
test dl, dl
je 0x4061d0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4061d4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4061b4
xor eax, eax
jmp 0x4061d9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40639d
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x3c]
mov ebx, dword [ecx + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x406250
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x406250
mov ecx, dword [ebx + 0x20]
lea ebp, [ecx + esi*4]
add ebp, edx
lea ebp, [ebp - 4]
mov ecx, 0x72f14e92
mov edi, dword [ebp]
dec esi
add edi, edx
mov dword [esp + 0x10], ecx
mov cl, byte [edi]
inc edi
test cl, cl
je 0x40624c
mov edx, dword [esp + 0x10]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x406229
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0xadeb09c7
mov edx, dword [eax + 0x18]
je 0x406254
test esi, esi
jne 0x40620c
mov eax, dword [eax]
jmp 0x4061ed
mov eax, dword [ebx + 0x24]
push dword [esp + 0x28]
push 0
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
push 1
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x40639d
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x3c]
mov ebp, dword [eax + edx + 0x78]
add ebp, edx
cmp ebp, edx
je 0x4062ee
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4062ee
mov eax, dword [ebp + 0x20]
lea ebx, [eax + esi*4]
add ebx, edx
lea ebx, [ebx - 4]
mov eax, 0xe12929be
mov edi, dword [ebx]
dec esi
add edi, edx
mov dword [esp + 0x10], eax
mov al, byte [edi]
inc edi
test al, al
je 0x4062ea
mov edx, dword [esp + 0x10]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [edi]
inc edi
test al, al
jne 0x4062c7
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0x1833c816
mov edx, dword [ecx + 0x18]
je 0x4062f2
test esi, esi
jne 0x4062ab
mov ecx, dword [ecx]
jmp 0x40628c
mov eax, dword [ebp + 0x24]
push 0
push dword [esp + 0x18]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x3c]
mov ebx, dword [ecx + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x40637e
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40637e
mov ecx, dword [ebx + 0x20]
lea ebp, [ecx + esi*4]
add ebp, edx
lea ebp, [ebp - 4]
mov ecx, 0x2255ea30
mov edi, dword [ebp]
dec esi
add edi, edx
mov dword [esp + 0x10], ecx
mov cl, byte [edi]
inc edi
test cl, cl
je 0x40637a
mov edx, dword [esp + 0x10]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x406357
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0x235fc6fa
mov edx, dword [eax + 0x18]
je 0x406382
test esi, esi
jne 0x40633a
mov eax, dword [eax]
jmp 0x40631b
mov eax, dword [ebx + 0x24]
push dword [esp + 0x14]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, eax
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x40641a
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x406416
mov eax, dword [ebx + 0x20]
lea ebp, [eax + ecx*4]
add ebp, edx
lea ebp, [ebp - 4]
mov eax, 0x6ded95bc
mov esi, dword [ebp]
dec ecx
add esi, edx
mov dword [esp + 0x10], eax
mov al, byte [esi]
inc esi
test al, al
je 0x406412
mov edx, dword [esp + 0x10]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [esi]
inc esi
test al, al
jne 0x4063ef
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 0x5e82c5d5
mov edx, dword [edi + 0x18]
je 0x406431
test ecx, ecx
jne 0x4063d2
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov edi, eax
cmp eax, ecx
je 0x4060f4
cmp dword [edi + 0x18], 0
jne 0x4063b3
jmp 0x4060f4
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x4060f6
mov eax, dword [ebx + 0x24]
push dword [esp + 0x18]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046be79
add esp, 0x144
ret