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

Disassembly:
push 0xffffffffffffffff
push 0x5a6c96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx]
push edi
xor esi, esi
mov dword [esp + 0x18], ebx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], esi
mov cx, word [eax + 0x42]
mov ax, word [eax + 0x44]
movsx edi, ax
movsx eax, cx
mov dword [esp + 0x2c], eax
imul eax, edi
cmp word [esp + 0x78], si
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
je 0x4181b2
push 0x3840
call fcn.00586401
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
cmp ebp, esi
mov dword [esp + 0x70], esi
je 0x4181a2
mov esi, ebp
mov edi, 0x4b0
mov ecx, esi
call fcn.00479c40
add esi, 0xc
dec edi
jne 0x418183
mov edi, dword [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x20], ebp
jmp 0x4181e5
xor ebp, ebp
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x20], ebp
jmp 0x4181e5
push 0xc
call fcn.00586401
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov dword [esp + 0x70], 1
je 0x4181d7
mov ecx, esi
call fcn.00479c40
jmp 0x4181d9
xor esi, esi
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x20], esi
mov ecx, dword [ebx]
mov esi, 1
mov dword [esp + 0x10], esi
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x4181fc
add eax, 0x1c
jmp 0x418211
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x74]
call fcn.0041e260
mov edx, dword [eax]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 8]
test edi, edi
mov dword [esp + 0x4c], edx
jle 0x41847b
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x8c], edi
test si, si
je 0x4184a6
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x28], ebp
jle 0x418457
test si, si
je 0x418457
mov eax, dword [ebx]
mov edx, dword [esp + 0x1c]
push edx
push ebp
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x64]
push eax
call fcn.00421060
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [edi]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88]
fld dword [ecx + 0x2c]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
test eax, eax
mov dword [edx + ebp*4], 0
je 0x4182e6
mov ecx, dword [esp + 0x14]
inc ecx
test cl, 3
mov dword [esp + 0x14], ecx
jne 0x4182e6
fild dword [esp + 0x14]
push ecx
fidiv dword [esp + 0x38]
fstp dword [esp]
call eax
add esp, 4
mov dword [esp + 0x10], eax
test ax, ax
jne 0x4182e6
mov eax, dword [esp + 0x90]
mov dword [eax], 3
mov eax, dword [ebx]
cmp word [eax + 0x2a], 1
je 0x4183d4
mov esi, dword [eax + 0x20]
add esi, 0x28
movsx edi, word [esi]
dec edi
cmp word [esp + 0x10], 0
je 0x4183ba
lea ebx, [edi + edi*2]
shl ebx, 2
test edi, edi
jl 0x4183b6
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x88]
mov eax, dword [ecx + ebx + 8]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push ecx
push edx
push eax
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push edx
call fcn.00418fe0
push edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00426200
test ax, ax
je 0x418391
mov eax, dword [esp + 0x8c]
push edi
mov ecx, dword [eax]
lea ebp, [ecx + ebp*4]
mov ecx, esi
call fcn.004261d0
fmul dword [esp + 0x24]
fadd dword [ebp]
fstp dword [ebp]
mov ebp, dword [esp + 0x28]
jmp 0x4183a6
mov edx, dword [esp + 0x8c]
fld dword [esp + 0x24]
mov eax, dword [edx]
fadd dword [eax + ebp*4]
lea eax, [eax + ebp*4]
fstp dword [eax]
dec edi
sub ebx, 0xc
cmp word [esp + 0x10], 0
jne 0x41830f
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
fld dword [esp + 0x80]
mov edx, dword [ecx]
mov edi, ecx
fmul dword [edx + ebp*4]
lea eax, [edx + ebp*4]
fstp dword [eax]
cmp word [esp + 0x10], 0
je 0x418436
mov eax, dword [ebx]
cmp word [eax + 0x2a], 0
je 0x418436
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x418436
lea edx, [eax + 0x38]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x58], edx
mov esi, dword [eax + 0x20]
mov ecx, esi
call fcn.00450fb0
mov ecx, dword [edi]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x50]
lea edi, [ecx + ebp*4]
lea ecx, [esp + 0x38]
push edx
push ecx
push esi
mov ecx, eax
call fcn.0044da10
fadd dword [edi]
fstp dword [edi]
mov edi, dword [esp + 0x8c]
mov edx, dword [edi]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x10]
fld dword [ecx + 0x30]
lea eax, [edx + ebp*4]
inc ebp
fmul dword [eax]
mov dword [esp + 0x28], ebp
fstp dword [eax]
cmp ebp, dword [esp + 0x2c]
jl 0x41825e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x8c], edi
jl 0x418243
test si, si
je 0x4184a6
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4184a6
push 0x3f800000
call eax
add esp, 4
mov dword [esp + 0x10], eax
test ax, ax
jne 0x4184a6
mov edx, dword [esp + 0x90]
mov dword [edx], 3
mov eax, dword [esp + 0x20]
push eax
call fcn.0058642a
mov ecx, dword [esp + 0x6c]
mov ax, word [esp + 0x14]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x1c