Function at 0x40fd56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x450020]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor edx, edx
push ebx
push ebp
inc edx
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x74]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], edx
mov ecx, 0x28f3472a
mov dword [esp + 0x40], edi
xor eax, ecx
imul ebx, eax
sub ebx, 0x30
xor ebx, ecx
imul ebx, dword [esp + 0x48]
mov dword [esp + 0x50], edx
imul eax, dword [esp + 0x50], 0x28f3471d
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
xor eax, ecx
mov dword [esp + 0x58], edx
imul ebp, eax
sub ebp, 0x38
xor ebp, ecx
imul ebp, dword [esp + 0x58]
mov dword [esp + 0x14], edx
imul esi, dword [esp + 0x14], 0x28f3472f
mov dword [esp + 0x1c], edx
imul eax, dword [esp + 0x1c], 0x28f3472a
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
imul ecx, eax
mov eax, 0x28f3472a
xor edx, eax
imul edx, dword [esp + 0x68]
cmp ecx, edx
jae 0x40ffaf
mov edi, dword [esp + 0x18]
xor ebx, eax
xor dword [esp + 0x20], eax
xor edi, eax
xor ebp, eax
push esi
push edi
add esp, 4
and esi, 0x3208
sub esi, 0xa500
sub esi, 0x42bd
pop esi
push eax
sub eax, 0x17096
xor eax, 0x841a
sub eax, 0xe906
sub eax, 0x10ba7
pop eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
imul ecx, ebx
imul edx, edi
imul eax, ecx
cmp edx, eax
jne 0x40fe9a
mov eax, 0x28f3472a
xor esi, eax
imul esi, dword [esp + 0x14]
mov dword [esp + 0x2c], 1
dec esi
xor esi, eax
imul esi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push edi
push ebx
add esp, 4
add edi, 0x161f0
or edi, 0xd112
or edi, 0xfbca
or edi, 0x1332a
pop edi
push ecx
push edi
add esp, 4
sub ecx, 0x9bdd
pop ecx
push edx
or edx, 0x5729
pop edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
imul edx, edi
imul eax, ecx
cmp edx, eax
jne 0x40ff1d
mov eax, 0x28f3472a
xor esi, eax
imul esi, dword [esp + 0x14]
mov dword [esp + 0x34], 1
sub esi, 3
xor esi, eax
imul esi, dword [esp + 0x34]
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
imul ecx, ebp
imul edx, edi
imul eax, ecx
cmp edx, eax
jne 0x40ff6a
mov eax, 0x28f3472a
xor esi, eax
imul esi, dword [esp + 0x14]
mov dword [esp + 0x3c], 1
dec esi
xor esi, eax
imul esi, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
call fcn.00410767
mov edx, 0x28f3472a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
xor ecx, edx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x68], eax
xor edi, edx
mov eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x68]
imul eax, edi
cmp eax, ecx
jb 0x40fe1b
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415fe8
add esp, 0x64
ret