Function at 0x4059ac
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x80
mov esi, eax
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
call fcn.00559b40
cmp eax, 4
jl 0x4063ad
mov eax, dword [0xb20584]
mov eax, dword [eax + 0x2f1928]
lea ecx, [eax - 2]
cmp ecx, 3
jae 0x405cfb
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fmul qword [0x81e1f0]
fnstcw word [esp + 0x1a]
movzx ecx, word [esp + 0x1a]
mov word [esp + 0x1a], 0xc7f
fldcw word [esp + 0x1a]
mov word [esp + 0x1a], cx
fistp dword [esp + 0x40]
fldcw word [esp + 0x1a]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3ec]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul qword [0x81e1d0]
fnstcw word [esp + 0x18]
movzx ecx, word [esp + 0x18]
mov word [esp + 0x18], 0xc7f
fldcw word [esp + 0x18]
mov word [esp + 0x18], cx
fistp dword [esp + 0x48]
fldcw word [esp + 0x18]
mov edi, dword [esp + 0x48]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f0]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fmul qword [0x81e1f8]
fnstcw word [esp + 0x16]
movzx ecx, word [esp + 0x16]
mov word [esp + 0x16], 0xc7f
fldcw word [esp + 0x16]
mov word [esp + 0x16], cx
fistp dword [esp + 0x50]
fldcw word [esp + 0x16]
mov edi, dword [esp + 0x50]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f4]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fmul qword [0x81e200]
fnstcw word [esp + 0x14]
movzx ecx, word [esp + 0x14]
mov word [esp + 0x14], 0xc7f
fldcw word [esp + 0x14]
mov word [esp + 0x14], cx
fistp dword [esp + 0x58]
fldcw word [esp + 0x14]
mov edi, dword [esp + 0x58]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f8]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x5c]
fmul qword [0x81e208]
fnstcw word [esp + 0x12]
movzx ecx, word [esp + 0x12]
mov word [esp + 0x12], 0xc7f
fldcw word [esp + 0x12]
mov word [esp + 0x12], cx
fistp dword [esp + 0x60]
fldcw word [esp + 0x12]
mov edi, dword [esp + 0x60]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x494]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov ecx, dword [esi + 0x3f8]
jmp 0x4062be
test eax, eax
jne 0x40604d
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
fld st(0)
fmul qword [0x81e1d0]
fnstcw word [esp + 0x10]
movzx ecx, word [esp + 0x10]
mov word [esp + 0x10], 0xc7f
fldcw word [esp + 0x10]
mov word [esp + 0x10], cx
fistp dword [esp + 0x6c]
fldcw word [esp + 0x10]
mov edi, dword [esp + 0x6c]
fmul qword [0x81e1d8]
fnstcw word [esp + 0xe]
movzx ecx, word [esp + 0xe]
mov word [esp + 0xe], 0xc7f
fldcw word [esp + 0xe]
mov word [esp + 0xe], cx
fistp dword [esp + 0x68]
fldcw word [esp + 0xe]
mov ebx, dword [esp + 0x68]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, ebx
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, ebx
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, ebx
call fcn.006658c8
mov eax, dword [esi + 0x3ec]
add ebx, 0xfffffffd
mov edx, ebx
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f0]
lea ebx, [edi - 3]
mov edx, ebx
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f4]
mov edx, ebx
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f8]
mov edx, ebx
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
fmul qword [0x81e1e0]
fnstcw word [esp + 0xc]
movzx ecx, word [esp + 0xc]
mov word [esp + 0xc], 0xc7f
fldcw word [esp + 0xc]
mov word [esp + 0xc], cx
fistp dword [esp + 0x74]
fldcw word [esp + 0xc]
mov edi, dword [esp + 0x74]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 4
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x494]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov ecx, dword [esi + 0x3f8]
mov eax, dword [esi + 0x494]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fmul qword [0x81e1e8]
fnstcw word [esp + 0xa]
movzx ecx, word [esp + 0xa]
mov word [esp + 0xa], 0xc7f
fldcw word [esp + 0xa]
mov word [esp + 0xa], cx
fistp dword [esp + 0x7c]
fldcw word [esp + 0xa]
mov edi, dword [esp + 0x7c]
mov eax, dword [eax + 0x2dc]
mov edx, 5
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 5
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 5
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3fc]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
jmp 0x4062d3
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmul qword [0x81e210]
fnstcw word [esp + 8]
movzx ecx, word [esp + 8]
mov word [esp + 8], 0xc7f
fldcw word [esp + 8]
mov word [esp + 8], cx
fistp dword [esp + 0x20]
fldcw word [esp + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3ec]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x24], ecx
fld qword [0x81e1d0]
fimul dword [esp + 0x24]
fnstcw word [esp + 6]
movzx ecx, word [esp + 6]
mov word [esp + 6], 0xc7f
fldcw word [esp + 6]
mov word [esp + 6], cx
fistp dword [esp + 0x28]
fldcw word [esp + 6]
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 1
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f0]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x2c], ecx
fld qword [0x81e1d0]
fimul dword [esp + 0x2c]
fnstcw word [esp + 4]
movzx ecx, word [esp + 4]
mov word [esp + 4], 0xc7f
fldcw word [esp + 4]
mov word [esp + 4], cx
fistp dword [esp + 0x30]
fldcw word [esp + 4]
mov edi, dword [esp + 0x30]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 2
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x3f4]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov eax, dword [esi + 0x3d0]
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fmul qword [0x81e218]
fnstcw word [esp + 2]
movzx ecx, word [esp + 2]
mov word [esp + 2], 0xc7f
fldcw word [esp + 2]
mov word [esp + 2], cx
fistp dword [esp + 0x38]
fldcw word [esp + 2]
mov edi, dword [esp + 0x38]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665970
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.00665980
mov eax, dword [esi + 0x3d0]
mov eax, dword [eax + 0x2dc]
mov edx, 3
call fcn.00665a70
mov edx, edi
call fcn.006658c8
mov eax, dword [esi + 0x494]
add edi, 0xfffffffd
mov edx, edi
call fcn.005f98ac
mov ecx, dword [esi + 0x3f4]
mov eax, dword [esi + 0x494]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov ecx, dword [esi + 0x3d0]
mov eax, dword [esi + 0x3ec]
mov edx, dword [ecx + 0x50]
call fcn.005f9840
mov ecx, dword [esi + 0x3ec]
mov eax, dword [esi + 0x3f0]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov ecx, dword [esi + 0x3f0]
mov eax, dword [esi + 0x3f4]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov ecx, dword [esi + 0x3f4]
mov eax, dword [esi + 0x3f8]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov eax, dword [esi + 0x3fc]
mov ecx, dword [esi + 0x494]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x58]
lea edx, [edx + ecx + 3]
call fcn.005f9840
mov eax, dword [esi + 0x3f8]
mov ecx, dword [0xb20584]
xor edx, edx
cmp dword [ecx + 0x2f1928], 1
setne dl
call fcn.005fa2c0
mov eax, dword [esi + 0x494]
mov ecx, dword [0xb20584]
xor edx, edx
cmp dword [ecx + 0x2f1928], 2
setb dl
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov eax, dword [esi + 0x3fc]
mov ecx, dword [0xb20584]
xor edx, edx
cmp dword [ecx + 0x2f1928], 0
sete dl
call fcn.005fa2c0
add esp, 0x80
pop esi
pop edi
pop ebx
ret