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

Disassembly:
sub esp, 0x58
push ebx
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
call fcn.00422f20
mov ebx, eax
mov eax, dword [edi + 0x24]
cmp eax, 1
mov dword [esp + 0x3c], ebx
jne 0x41f749
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [edi]
push 0
push ebx
push ecx
push edx
mov ecx, edi
call dword [eax + 0x10]
pop edi
pop ebx
add esp, 0x58
ret 0x14
cmp eax, 2
jne 0x41fa8a
mov eax, dword [edi]
push ebp
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x24]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
jne 0x41f772
pop ebp
pop edi
pop ebx
add esp, 0x58
ret 0x14
test byte [ebp + 0x30], 4
mov ecx, dword [ebp + 0x64]
je 0x41f788
movzx edx, word [ebp + 0x2e]
mov eax, dword [esp + 0xc]
lea eax, [eax + edx*2]
jmp 0x41f790
movzx eax, word [ebp + 0x2e]
add eax, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 6
add eax, ecx
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
push eax
push esi
mov ecx, edi
call dword [edx + 0x28]
cmp ebx, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0
jl 0x41f7d2
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test al, al
je 0x41f7d2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov dword [esp + 0x24], eax
cmp ebx, 8
mov dword [esp + 0x34], 0
jl 0x41f800
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x34]
test eax, eax
je 0x41f800
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x34]
mov ecx, dword [edi + 4]
push eax
call fcn.00423780
mov dword [esp + 0x34], eax
cmp byte [ebp + 0x6f], 0x4b
mov dword [esp + 0x20], 0x400
jne 0x41f816
mov dword [esp + 0x20], 0x5000
mov eax, dword [esp + 0x78]
test eax, eax
mov dword [esp + 0x2c], 0
je 0x41f833
push ebp
call fcn.0045e000
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x6c], ebx
je 0x41fa7e
mov ecx, dword [esp + 0x70]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x41fa71
mov dword [esp + 0x18], esi
jmp 0x41f860
mov ecx, dword [esp + 0x1c]
mov bx, word [ecx + eax*2]
cmp bx, 0xffff
je 0x41fa4d
mov eax, dword [esp + 0x3c]
movzx edx, bx
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
mov cl, byte [eax]
mov ebp, ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f8fa
movzx eax, word [esi + 6]
lea edx, [esp + 0x28]
push edx
movzx edx, word [esi]
shl edx, 0x10
or eax, edx
push eax
mov dword [esp + 0x30], 0
call fcn.004394a0
test eax, eax
mov eax, dword [esp + 0x28]
je 0x41f8bb
movsx ecx, ax
add ebp, ecx
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x41f8fa
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
dec edx
cmp ecx, edx
jne 0x41f8fa
neg eax
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
jge 0x41f8e1
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x20]
cdq
idiv ecx
movsx edx, ax
mov eax, dword [esp + 0x74]
mov dword [eax], edx
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
test eax, eax
jge 0x41f907
neg eax
movsx ecx, word [esp + 0x20]
imul eax, ebp
cdq
idiv ecx
mov ebp, dword [esp + 0x78]
test ebp, ebp
mov esi, eax
mov dword [esp + 0x28], esi
je 0x41fa0a
mov ecx, dword [ebp + 4]
call fcn.0047c140
mov ecx, eax
call fcn.0045efc0
cmp eax, 1
jne 0x41fa0a
test bx, bx
je 0x41fa0a
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x41fa0a
mov edx, dword [esp + 0x18]
cmp word [edx], 0x20
je 0x41fa0a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test eax, eax
jge 0x41f96c
neg eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
add edx, ecx
push 1
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x3c]
push edx
xor edx, edx
mov dx, word [eax + ecx*2]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [eax]
mov dword [esp + 0x5c], 0
push edx
mov edx, dword [esp + 0x4c]
push ecx
push ebx
push edx
mov ecx, ebp
call fcn.0045fc00
fild dword [esp + 0x28]
add ebp, 0x70
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x50], eax
fdiv dword [esp + 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
fmul dword [esp + 0x58]
fld dword [esp + 0x60]
fmul dword [0x53b6a0]
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fistp dword [esp + 0x40]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
add esi, ecx
cmp eax, 7
jl 0x41fa43
mov eax, dword [esp + 0x38]
test byte [eax + 0x30], 0x20
je 0x41fa43
lea ecx, [esi + 0x13]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x6c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
jmp 0x41fa49
mov eax, dword [esp + 0x6c]
add eax, esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
inc eax
add esi, 6
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jl 0x41f860
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00527b30
add esp, 4
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x58
ret 0x14
mov eax, dword [esp + 0x64]
pop edi
pop ebx
add esp, 0x58
ret 0x14