Function at 0x409567
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, 0x14c
mov eax, dword [0x4c7080]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword fs:[0x30]
mov dword [esp + 0x18], pe_nt_image_headers32
push ebx
push ebp
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x20], ecx
xor esi, esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebp, eax
mov dword [esp + 0x18], eax
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x40961f
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40961b
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x14], 0x3c335988
dec ecx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
add edi, edx
mov dl, byte [edi]
inc edi
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [ebp + 0x18]
je 0x409617
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [edi]
inc edi
test al, al
jne 0x4095ec
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], 0xce435e50
mov edx, dword [ebp + 0x18]
je 0x4097d8
mov eax, dword [esp + 0x1c]
test ecx, ecx
jne 0x4095c2
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
mov ebp, eax
cmp eax, ecx
je 0x409631
cmp dword [ebp + 0x18], esi
jne 0x4095a3
mov eax, esi
push esi
push 2
call eax
mov ecx, dword fs:[0x30]
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebp, eax
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x4096cf
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x4096cb
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x18], 0x6d25c614
dec ecx
mov dword [esp + 0x20], eax
mov edi, dword [eax]
add edi, edx
mov dl, byte [edi]
inc edi
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [ebp + 0x18]
je 0x4096c7
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [edi]
inc edi
test al, al
jne 0x40969c
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], 0xc047aa6a
mov edx, dword [ebp + 0x18]
je 0x4097f2
mov eax, dword [esp + 0x20]
test ecx, ecx
jne 0x409672
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov ebp, eax
cmp eax, ecx
je 0x4096e1
cmp dword [ebp + 0x18], esi
jne 0x409653
mov eax, esi
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x20]
call eax
cmp eax, 1
jne 0x40983a
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 0x3c]
mov ebp, dword [eax + edx + 0x78]
add ebp, edx
cmp ebp, edx
je 0x409789
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x409785
mov eax, dword [ebp + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x18], 0xb0430551
dec ecx
mov dword [esp + 0x20], eax
mov edi, dword [eax]
add edi, edx
mov dl, byte [edi]
inc edi
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [ebx + 0x18]
je 0x409781
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [edi]
inc edi
test al, al
jne 0x409756
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], 0x37d3de7e
mov edx, dword [ebx + 0x18]
je 0x40980c
mov eax, dword [esp + 0x20]
test ecx, ecx
jne 0x40972c
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
mov ebx, eax
cmp eax, ecx
je 0x40979a
cmp dword [ebx + 0x18], esi
jne 0x40970d
mov eax, esi
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x20]
call eax
cmp eax, 1
jne 0x40983a
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409826
test dl, dl
je 0x4097d4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409826
add eax, 2
add ecx, 2
test dl, dl
jne 0x4097b8
mov eax, esi
jmp 0x40982b
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 0x409633
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 0x4096e3
mov eax, dword [ebp + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40979c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4096f7
mov al, 1
jmp 0x4098f9
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebp, eax
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
add ebx, edx
cmp ebx, edx
je 0x4098c8
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x4098c4
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
add eax, edx
sub eax, 4
mov dword [esp + 0x18], 0xfcf33b50
dec ecx
mov dword [esp + 0x24], eax
mov edi, dword [eax]
add edi, edx
mov dl, byte [edi]
inc edi
mov byte [esp + 0x13], dl
test dl, dl
mov edx, dword [ebp + 0x18]
je 0x4098c0
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [edi]
inc edi
test al, al
jne 0x409899
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], 0x9d812c9a
mov edx, dword [ebp + 0x18]
je 0x4098dc
mov eax, dword [esp + 0x24]
test ecx, ecx
jne 0x40986f
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov ebp, eax
cmp eax, ecx
je 0x4098f1
cmp dword [ebp + 0x18], esi
jne 0x409850
jmp 0x4098f1
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 esi, dword [eax + edx]
add esi, edx
push dword [esp + 0x1c]
call esi
xor al, al
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046be79
add esp, 0x14c
ret