Function at 0x402246
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
mov eax, dword [0x4947ec]
sub esp, 0x84
push ebx
push esi
push edi
test eax, eax
jne 0x4022f5
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 0x4022d7
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x4022d7
mov ecx, dword [ebx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, edx
sub ecx, 4
mov dword [ebp - 8], 0x197a1f38
dec edi
mov dword [ebp - 0xc], ecx
mov esi, dword [ecx]
add esi, edx
mov dl, byte [esi]
inc esi
mov byte [ebp - 1], dl
test dl, dl
mov edx, dword [eax + 0x18]
je 0x4022d3
mov cl, byte [ebp - 1]
mov edx, dword [ebp - 8]
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4022af
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xf9b8e868
mov edx, dword [eax + 0x18]
je 0x4022db
mov ecx, dword [ebp - 0xc]
test edi, edi
jne 0x40228a
mov eax, dword [eax]
jmp 0x40226b
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [0x4947ec], eax
push dword [0x494814]
call eax
test al, 1
je 0x402312
cmp byte [0x4947fc], 0
sete al
mov byte [0x4947fc], al
jmp 0x402317
mov al, byte [0x4947fc]
test al, al
je 0x402563
call fcn.0040154f
test al, al
je 0x402563
mov ecx, dword [0x494704]
add ecx, dword [0x4947b4]
call fcn.00401312
push 0x10
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
add ecx, dword [0x4947b0]
add ecx, dword [0x494704]
call fcn.00401312
mov ebx, eax
test ebx, ebx
je 0x40254e
mov ecx, ebx
call fcn.00401c5b
test al, al
je 0x40254e
mov ecx, dword [0x49475c]
add ecx, ebx
call fcn.00401e35
test al, al
jne 0x40254e
call fcn.00401700
cmp ebx, eax
je 0x40254e
mov ecx, ebx
call fcn.00401c8a
test al, al
jne 0x4023ab
cmp byte [0x4947ff], al
jne 0x40254e
mov ecx, dword [0x4947a0]
lea ecx, [ecx + ebx]
call fcn.00401312
imul eax, eax, 0x38
add eax, esi
mov dword [ebp - 0xc], eax
je 0x40254e
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.0040395c
pop ecx
push 0xe
pop ecx
mov esi, eax
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x494750]
lea ecx, [ecx + ebx]
call fcn.00401312
movsd xmm1, qword [0x490910]
mov ecx, dword [0x494750]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
lea ecx, [ecx + ebx]
mulsd xmm0, qword [str.ffffff]
subsd xmm1, xmm0
divsd xmm1, qword [0x490910]
cvtpd2ps xmm0, xmm1
movss dword [0x494024], xmm0
call fcn.00401312
mov ecx, ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [str.ffffff]
divsd xmm0, qword [0x490910]
cvtpd2ps xmm0, xmm0
movss dword [0x494020], xmm0
call fcn.00401c8a
test al, al
je 0x402475
cmp byte [0x49480a], 0
je 0x40246b
movss xmm0, dword [0x494024]
jmp 0x402486
movss xmm0, dword [0x494070]
jmp 0x402486
cmp byte [0x49480a], 0
jne 0x402461
movss xmm0, dword [0x494050]
mov ecx, ebx
movss dword [ebp - 0x40], xmm0
call fcn.00401c8a
test al, al
je 0x4024b3
cmp byte [0x49480a], 0
je 0x4024a9
movss xmm0, dword [0x494020]
jmp 0x4024c4
movss xmm0, dword [0x494074]
jmp 0x4024c4
cmp byte [0x49480a], 0
jne 0x40249f
movss xmm0, dword [0x494054]
mov ecx, ebx
movss dword [ebp - 0x3c], xmm0
call fcn.00401c8a
test al, al
je 0x4024e7
cmp byte [0x49480a], 0
jne 0x4024f0
movss xmm0, dword [0x494078]
jmp 0x4024fe
cmp byte [0x49480a], 0
je 0x4024f6
and dword [ebp - 0x38], 0
jmp 0x402503
movss xmm0, dword [0x494058]
movss dword [ebp - 0x38], xmm0
mov ecx, ebx
call fcn.00401c8a
test al, al
je 0x402518
movss xmm0, dword [0x49407c]
jmp 0x402520
movss xmm0, dword [0x49405c]
mov eax, dword [0x494800]
lea esi, [ebp - 0x48]
sub esp, 0x38
movss dword [ebp - 0x34], xmm0
mov dword [ebp - 0x18], eax
mov word [ebp - 0x20], 1
push 0xe
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.00403a34
mov esi, dword [ebp - 0x10]
add esp, 0x38
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 8], ecx
cmp ecx, 0x200
jle 0x402348
pop edi
pop esi
pop ebx
leave
ret