Function at 0x401520
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, esp
cmp dword [0x42e248], 0xa
jl 0x401552
mov eax, dword [0x42e24c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x401552
nop word [eax + eax]
jmp 0x401550
cvtsi2sd xmm0, dword [ebp + 8]
movsd qword [esi + 0x18], xmm0
nop dword [eax]
push eax
mov dword [esi], esp
sub esp, 0x40
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x14], eax
mov dword [eax], 0x40
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
jmp 0x401593
mov edx, dword [esi + 8]
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [eax + ecx + 0x78]
test ecx, ecx
je 0x401593
mov edi, dword [eax + ecx + 0x18]
test edi, edi
je 0x401593
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov ecx, dword [eax + ecx + 0x20]
add ecx, eax
mov dword [esi + 0x10], ecx
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
jmp 0x4015d4
test edi, edi
je 0x401590
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + edi*4 - 4]
dec edi
movzx ecx, byte [eax + edx]
test cl, cl
je 0x4015d0
add edx, dword [esi + 0xc]
mov ebx, 0xde533739
nop dword [eax]
movsx ecx, cl
xor ecx, ebx
imul ebx, ecx, 0x1000193
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x4015f0
cmp ebx, 0x16bb1a5a
jne 0x4015d0
mov edx, dword [esi + 4]
mov ecx, dword [eax + edx + 0x1c]
add ecx, eax
mov edx, dword [eax + edx + 0x24]
add edx, eax
movzx edx, word [edx + edi*2]
add eax, dword [ecx + edx*4]
mov edi, dword [esi + 0x14]
push edi
call eax
movupd xmm0, xmmword [edi + 8]
unpcklps xmm0, xmmword [0x40f4f0]
subpd xmm0, xmmword [0x40f500]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
mulsd xmm1, qword [0x40f510]
movsd xmm0, qword [esi + 0x18]
ucomisd xmm0, xmm1
mov edi, dword [esi]
seta byte [edi]
cmp dword [0x42e248], 0xa
jl 0x401739
mov eax, dword [0x42e24c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x401739
push eax
sub esp, 0x3c
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi], eax
mov dword [eax], 0x40
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0xc
jmp 0x4016a3
mov edx, dword [esi + 8]
mov edx, dword [edx]
mov ecx, dword [edx + 0x18]
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
test eax, eax
je 0x4016a3
mov ebx, dword [ecx + eax + 0x18]
test ebx, ebx
je 0x4016a3
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov eax, dword [ecx + eax + 0x20]
add eax, ecx
mov dword [esi + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0xc], eax
jmp 0x4016e4
test ebx, ebx
je 0x4016a0
mov eax, dword [esi + 0x10]
mov edi, dword [eax + ebx*4 - 4]
dec ebx
movzx edx, byte [ecx + edi]
test dl, dl
je 0x4016e0
add edi, dword [esi + 0xc]
mov eax, 0xde533739
nop dword [eax]
movsx edx, dl
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [edi]
inc edi
test dl, dl
jne 0x401700
cmp eax, 0x16bb1a5a
jne 0x4016e0
mov edx, dword [esi + 4]
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov edx, dword [ecx + edx + 0x24]
add edx, ecx
movzx edx, word [edx + ebx*2]
add ecx, dword [eax + edx*4]
push dword [esi]
call ecx
jmp 0x401560
mov edx, 0x29
mov ecx, 0x4823
nop word cs:[eax + eax]
cmp edx, 0x4822
jle 0x401770
cmp edx, 0x4823
je 0x401786
cmp edx, 0x6784
jne 0x401750
jmp 0x40179f
cmp edx, 0x29
je 0x401792
cmp edx, 0x18be
jne 0x401750
mov edx, 0x6784
xor eax, eax
jmp 0x401750
mov edx, 0x6784
mov eax, 1
jmp 0x401750
cmp byte [edi], 0
mov edx, 0x18be
cmovne edx, ecx
jmp 0x401750
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret