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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 1
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x418741
push 0
push dword [ebp + 0x10]
lea eax, [esp + 0x40]
push dword [ebp + 0xc]
push eax
call fcn.0040fdc0
mov eax, dword [esp + 0x38]
mov dword [ebx], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x40]
je 0x4189d5
mov edx, dword [ebp + 0x14]
jmp 0x418680
mov edi, dword [ebx + 8]
sub edi, dword [ebx + 4]
mov ecx, dword [eax + 4]
sar edi, 3
test ecx, ecx
je 0x4186ad
mov edx, dword [eax]
test edx, edx
je 0x4186c5
cmp byte [esi + 3], 2
jne 0x4186c5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edx
push ecx
push ebx
mov ecx, esi
call fcn.0040e1b0
jmp 0x4186c1
mov ecx, dword [eax]
test ecx, ecx
je 0x4186c8
mov eax, dword [ebp + 0x10]
push dword [eax]
push ecx
push ebx
mov ecx, esi
call fcn.0040e310
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x418722
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 3
cmp eax, edi
je 0x41871e
cmp dword [ebx], 1
jne 0x4186e8
test edx, edx
setne al
jmp 0x4186ee
cmp edx, 1
sete al
mov byte [esp + 0x10], al
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jne 0x418703
test al, al
je 0x418703
mov al, 1
jmp 0x418705
xor al, al
push eax
push dword [ebp + 0x10]
push edi
push ebx
call fcn.0040df80
mov ecx, dword [esi]
mov al, byte [esp + 0x10]
test ecx, ecx
jne 0x4186f2
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
add eax, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x40]
jne 0x418680
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
test edi, edi
je 0x4187a0
cmp dword [eax], 0
je 0x418773
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.004123b0
cmp byte [esi + 3], 2
mov ecx, dword [eax]
jne 0x418773
mov eax, dword [ebp + 0x10]
push dword [eax]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0040e1b0
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4189d5
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
test eax, 0xfffffff8
je 0x4189d5
cmp dword [ebx], 1
jne 0x4187b6
cmp dword [ebp + 0x14], 0
setne al
jmp 0x4187bd
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x418776
push dword [edi]
mov ecx, esi
push eax
push ebx
call fcn.0040e310
jmp 0x418776
cmp dword [ebp + 0x14], 1
sete al
mov byte [esp + 0x13], al
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
mov dword [esp + 0x28], edx
jne 0x4187d7
mov byte [esp + 0x10], 1
test al, al
jne 0x4187dc
mov byte [esp + 0x10], 0
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
sub edx, esi
sar edx, 3
mov dword [esp + 0x14], edx
test edx, edx
je 0x4189c0
mov al, byte [ecx + 3]
cmp al, 2
je 0x41890c
cmp al, 3
je 0x41890c
mov eax, dword [ecx + 8]
mov edi, esi
mov ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp byte [eax + 1], 2
jne 0x4188a7
cmp esi, dword [ebx + 8]
je 0x4189bd
jmp 0x418830
mov eax, dword [edi]
push dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x5c], edx
call fcn.0040ea10
mov ecx, dword [esp + 0x18]
fild dword [esp + 0x18]
test ecx, ecx
jns 0x418868
fadd qword [0x474128]
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x418891
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
add esi, 8
cmp byte [esp + 0x10], 0
jne 0x4189bd
mov edx, dword [esp + 0x14]
add edi, 8
inc ecx
mov dword [esp + 0x18], ecx
cmp edi, dword [ebx + 8]
jne 0x418830
jmp 0x4189bd
cmp esi, dword [ebx + 8]
je 0x4189bd
mov eax, dword [edi]
push dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x6c], edx
call fcn.0040e460
test al, al
je 0x4188f2
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
add esi, 8
cmp byte [esp + 0x10], 0
jne 0x4189bd
mov ecx, dword [esp + 0x18]
add edi, 8
mov edx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x18], ecx
cmp edi, dword [ebx + 8]
jne 0x4188b0
jmp 0x4189bd
mov ecx, dword [ecx + 8]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push edi
push eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], edx
call fcn.0040ea10
fld1
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x4189bb
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
test eax, eax
jns 0x418955
fadd qword [0x474128]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x4189bb
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x20], eax
fld st(0)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fldcw word [esp + 0x10]
fild dword [esp + 0x20]
test ecx, ecx
jns 0x418998
fadd qword [0x474128]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4189bd
mov eax, dword [esi + ecx*8 - 8]
mov dword [esi], eax
mov eax, dword [esi + ecx*8 - 4]
mov dword [esi + 4], eax
add esi, 8
jmp 0x4189bd
fstp st(0)
mov dword [ebx + 8], esi
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x10]
mov al, byte [esp + 0x13]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4187c1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14