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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ax, word [esi + 0x2d4]
test ax, ax
jne 0x42d45a
cmp word [esi + 0x2f0], 4
jne 0x42d45a
movsx eax, word [esi + 0x2f4]
fld qword [esi + 0x2e0]
fabs
mov ecx, dword [esi + 0x2f8]
fadd qword [ecx + eax*8 - 8]
fstp qword [esp + 0x40]
jmp 0x42d4f6
cmp ax, 1
jne 0x42d4e6
cmp word [esi + 0x2f2], ax
jne 0x42d48c
movsx edx, word [esi + 0x2f6]
fld qword [esi + 0x2e0]
fabs
mov eax, dword [esi + 0x2fc]
fadd qword [eax + edx*8 - 8]
fstp qword [esp + 0x40]
jmp 0x42d4f6
cmp ax, 1
jne 0x42d4e6
cmp word [esi + 0x2f2], 4
jne 0x42d4e6
movsx ecx, word [esi + 0x2f6]
mov eax, dword [esi + 0x2fc]
fld qword [eax + ecx*8 - 8]
fsub qword [esi + 0x2e0]
fld qword [eax]
fsub qword [esi + 0x2e0]
fabs
fstp qword [esp + 0x18]
fcom qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x42d4d2
fstp qword [esp + 0x40]
jmp 0x42d4f6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
fstp st(0)
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x42d4f6
mov dword [esp + 0x40], 0x54442d18
mov dword [esp + 0x44], 0x400921fb
mov ecx, esi
call fcn.00430f00
mov ebp, eax
mov ecx, esi
mov dword [esp + 0x10], ebp
call fcn.00430f50
mov edi, 1
mov ebx, eax
cmp word [esi + 0x2d4], di
mov dword [esp + 0x3c], ebx
je 0x42d5f1
fld qword [esi + 0x2e0]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x42d5f1
movsx eax, word [esi + 0x2f4]
fld qword [0x5cb400]
dec eax
test eax, eax
jle 0x42d58a
mov ecx, dword [esi + 0x2f8]
mov edx, eax
fld qword [ecx + 8]
fsub qword [ecx]
fstp qword [esp + 0x18]
fcom qword [esp + 0x18]
fnstsw ax
test ah, 1
jne 0x42d56d
fstp st(0)
fld qword [esp + 0x18]
add ecx, 8
dec edx
jne 0x42d553
fld qword [0x5cb410]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x42d58a
fstp st(0)
fld qword [0x5cb410]
movsx eax, word [esi + 0x2f6]
dec eax
mov dword [esp + 0x28], 0x54442d18
test eax, eax
mov dword [esp + 0x2c], 0x401921fb
jle 0x42d607
mov ecx, dword [esi + 0x2fc]
mov edx, eax
fld qword [ecx + 8]
fsub qword [ecx]
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x42d5c6
fstp qword [esp + 0x28]
jmp 0x42d5c8
fstp st(0)
add ecx, 8
dec edx
jne 0x42d5ae
fld qword [0x5cb410]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x42d607
mov dword [esp + 0x28], 0x3b761f5
mov dword [esp + 0x2c], 0x3f5c9871
jmp 0x42d607
fld qword [0x5cb230]
mov dword [esp + 0x28], 0xa2529d39
mov dword [esp + 0x2c], 0x3f91df46
fld qword [0x5cb430]
fdiv st(1)
call fcn.0056b454
cmp eax, edi
fstp st(0)
jl 0x42d61c
mov edi, eax
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
test bp, bp
fdivr qword [0x5cb298]
fstp qword [esp + 0x88]
je 0x42d679
test bx, bx
je 0x42d653
fld qword [0x5cb3c8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x42d65a
fld qword [esp + 0x80]
test bx, bx
jne 0x42d6ac
fstp st(0)
fld qword [0x5cb298]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x42d6ac
test bx, bx
je 0x42d696
fld qword [0x5cb3f8]
mov dword [esp + 0x30], 0x54442d18
mov dword [esp + 0x34], 0x3ff921fb
jmp 0x42d6ac
fld qword [0x5cb400]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
fsub qword [esp + 0x30]
fld st(0)
fdiv qword [esp + 0x28]
call fcn.0056b454
cmp eax, 1
mov dword [esp + 0x14], 1
jl 0x42d6cc
mov dword [esp + 0x14], eax
test bp, bp
jne 0x42d6e8
mov ecx, dword [esp + 0x14]
and ecx, 0x80000001
jns 0x42d6e2
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42d6e8
inc dword [esp + 0x14]
fild dword [esp + 0x14]
lea ebp, [edi*4 + 4]
push ebp
fdivr st(1)
fstp qword [esp + 0x9c]
fstp st(0)
call fcn.00586401
push ebp
mov ebx, eax
call fcn.00586401
fld qword [esp + 0xa0]
fmul qword [0x5cb338]
add esp, 8
cmp word [esp + 0x3c], 0
mov ebp, eax
fstp qword [esp + 0x18]
je 0x42d734
fld qword [esp + 0x18]
fadd st(0), st(0)
fstp qword [esp + 0x18]
fld qword [0x5cb1a0]
mov dword [ebp], 0
cmp edi, 1
mov dword [ebx], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x24], 1
jl 0x42d8e8
mov edx, ebp
lea ecx, [ebx + 4]
sub edx, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edx
fild dword [esp + 0x24]
fmul qword [esp + 0x88]
fstp qword [esp + 0x60]
fld qword [esp + 0x70]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
je 0x42d8b1
fld qword [esp + 0x88]
fmul qword [0x5cb320]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], 0
test eax, eax
fsubr qword [esp + 0x60]
fstp qword [esp + 0x58]
fld qword [esp + 0x60]
fcos
fstp qword [esp + 0x80]
fsub qword [esp + 0x80]
fstp qword [esp + 0x90]
jle 0x42d896
fild dword [esp + 0x4c]
push 0
push 1
fadd qword [0x5cb320]
fmul qword [esp + 0xa0]
fadd qword [esp + 0x38]
fst qword [esp + 0x58]
fcomp qword [0x5cb298]
fnstsw ax
test ah, 1
je 0x42d853
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0042c650
fmul qword [esp + 0x90]
fadd qword [esp + 0x78]
fstp qword [esp + 0x78]
jmp 0x42d87d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042c650
fmul qword [esp + 0x90]
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x42d7fd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
fld qword [esp + 0x80]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
fld qword [esp + 0x78]
fmul qword [esp + 0x18]
cmp word [esp + 0x10], 0
fst dword [edx + ecx]
jne 0x42d8ce
fstp st(0)
fld qword [esp + 0x68]
fmul qword [esp + 0x18]
mov eax, dword [esp + 0x24]
fstp dword [ecx]
inc eax
add ecx, 4
cmp eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
jle 0x42d797
push 0x400921fb
push 0x54442d18
push ebp
push edi
fstp st(0)
mov ecx, esi
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3ff921fb
push 0x54442d18
push ebp
push edi
mov ecx, esi
call fcn.0042ae90
fstp dword [esp + 0x28]
push 0x400921fb
push 0x54442d18
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3ff921fb
push 0x54442d18
push ebx
push edi
mov ecx, esi
fstp dword [esp + 0x34]
call fcn.0042ae90
fadd dword [esp + 0x28]
fst dword [esp + 0x14]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x42d9ba
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], ecx
mov dword [esi + 0x20c], eax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], eax
jmp 0x42dc7b
fld qword [0x5cb428]
call fcn.0056c350
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
push edi
mov ecx, esi
call fcn.0042ae90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x10]
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
fdiv dword [esp + 0x14]
fstp dword [esi + 0x1f8]
fld qword [0x5cb320]
call fcn.0056c350
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0042ae90
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x10]
push edx
push eax
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
fdiv dword [esp + 0x14]
fstp dword [esi + 0x1fc]
fld qword [str.egI_]
call fcn.0056c350
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
push edi
mov ecx, esi
call fcn.0042ae90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x10]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push 0x3fc65718
push 0x4ae74487
push ebp
fdiv dword [esp + 0x20]
mov dword [esi + 0x208], edx
push edi
fstp dword [esi + 0x200]
fld dword [esp + 0x24]
fdiv dword [esp + 0x34]
fstp dword [esi + 0x204]
mov ecx, esi
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3fc65718
push 0x4ae74487
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3fd65718
push 0x4ae74487
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x20c]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3fd65718
push 0x4ae74487
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3fe0c152
push 0x382d7365
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x210]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3fe0c152
push 0x382d7365
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3fe65718
push 0x4ae74487
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x214]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3fe65718
push 0x4ae74487
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3febecde
push 0x5da115a9
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x218]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3febecde
push 0x5da115a9
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3ff0c152
push 0x382d7365
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x21c]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3ff0c152
push 0x382d7365
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3ff38c35
push 0x418a5bf6
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x220]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3ff38c35
push 0x418a5bf6
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3ff65718
push 0x4ae74487
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x224]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3ff65718
push 0x4ae74487
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
push 0x3ff921fb
push 0x54442d18
push ebp
push edi
mov ecx, esi
fstp dword [esi + 0x228]
call fcn.0042ae90
fstp dword [esp + 0x10]
push 0x3ff921fb
push 0x54442d18
push ebx
push edi
mov ecx, esi
call fcn.0042ae90
fadd dword [esp + 0x10]
fstp dword [esi + 0x22c]
push ebx
call fcn.0058642a
push ebp
call fcn.0058642a
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret