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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x104]
test eax, eax
jne 0x418855
mov eax, dword [edi + 0x100]
test eax, eax
jne 0x41885c
mov ecx, edi
call fcn.00413300
fld qword [ebp + 0x10]
mov eax, dword [edi + 0xcc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
fstp qword [esp + 0x88]
fld qword [ebp + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
fstp qword [esp + 0x90]
test eax, eax
mov dword [esp + 0x10], 0x93369d1b
mov dword [esp + 0x14], 0x50c0de15
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
jle 0x418925
mov dword [esp + 0xc], esi
mov eax, dword [edi + 0xc8]
mov ecx, dword [esp + 0xc]
add eax, ecx
lea edx, [esp + 0x98]
push edx
fld qword [eax]
fstp qword [esp + 0x9c]
fld qword [eax + 8]
fstp qword [esp + 0xa4]
fld qword [eax + 0x10]
lea eax, [esp + 0x84]
fstp qword [esp + 0xac]
push eax
call fcn.0040bcf0
fcom qword [esp + 0x18]
add esp, 8
fnstsw ax
test ah, 1
je 0x41890b
fcom qword [0x42bea0]
fnstsw ax
test ah, 0x41
jne 0x418950
fstp qword [esp + 0x10]
mov ebx, esi
jmp 0x41890d
fstp st(0)
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [esp + 0xc], ecx
jl 0x4188aa
test ebx, ebx
jne 0x41899f
mov eax, dword [edi + 0xdc]
mov esi, 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x4189f0
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp + 0x20]
mov edx, dword [ecx + esi*8]
mov dword [eax], edx
lea edx, [esi + esi*2]
mov ecx, dword [ecx + esi*8 + 4]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0xc8]
mov ecx, dword [ebp + 0x24]
lea eax, [eax + edx*8]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x14], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x4189c7
mov eax, dword [edi + 0xdc]
mov esi, 1
fld qword [eax + ecx*8 - 0x10]
fstp qword [esp + 0x30]
fld qword [eax + ecx*8 - 8]
fstp qword [esp + 0x20]
jmp 0x4189f0
mov eax, dword [edi + 0xdc]
mov esi, 2
fld qword [eax + ebx*8 - 8]
fstp qword [esp + 0x30]
fld qword [eax + ebx*8]
fstp qword [esp + 0x20]
fld qword [eax + ebx*8]
fstp qword [esp + 0x38]
fld qword [eax + ebx*8 + 8]
fstp qword [esp + 0x28]
lea ecx, [esp + 0x40]
call fcn.00425b00
lea ecx, [esp + 0x58]
call fcn.00425b00
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
mov dword [esp + 0x40], 0
push edx
mov dword [esp + 0x48], 0x4197d784
call fcn.00425b50
mov ecx, edi
call fcn.00418520
fstp qword [esp + 0x18]
cmp esi, 2
jne 0x418a83
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00425b50
mov ecx, edi
call fcn.00418520
jmp 0x418a87
fld qword [esp + 0x10]
fld qword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x418ad1
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
fstp st(0)
fld qword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
fstp qword [eax]
fld qword [esp + 0x70]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x20]
fstp qword [eax]
fld qword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
pop edi
fld qword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
fstp qword [eax]
fld qword [esp + 0x74]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x20]
pop esi
pop ebx
fstp qword [eax]
mov esp, ebp
pop ebp
ret 0x20