Function at 0x435310
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
push edi
test ebx, ebx
je 0x43569a
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x43569a
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x43569a
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x43569a
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x43569a
mov eax, dword [ebp + 0x24]
test eax, eax
jle 0x43569a
fild dword [ebp + 0xc]
fidiv dword [ebp + 0x20]
fstp qword [esp + 0x48]
fild dword [ebp + 0x10]
fidiv dword [ebp + 0x24]
fstp qword [esp + 0x58]
fild dword [ebp + 0x14]
fadd qword [0x4c4a88]
fstp qword [esp + 0x68]
fild dword [ebp + 0x18]
fadd qword [0x4c4a88]
fstp qword [esp + 0x70]
fld qword [ebp + 0x30]
fld st(0)
fmul qword [0x4c5bd8]
fstp qword [esp + 0x40]
fcom qword [0x4c4a78]
fnstsw ax
test ah, 0x40
jne 0x4353ff
fcom qword [0x4c4c98]
fnstsw ax
test ah, 0x40
jne 0x4353ff
fcom qword [0x4c5bd0]
fnstsw ax
test ah, 0x40
je 0x4353d4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3ff00000
jmp 0x43540f
fcom qword [0x4c5bc8]
fnstsw ax
test ah, 0x40
je 0x4353f3
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xbff00000
jmp 0x43540f
fld qword [esp + 0x40]
fsin
fstp qword [esp + 0x38]
jmp 0x43540f
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
fcom qword [0x4c5bd0]
fnstsw ax
test ah, 0x40
jne 0x435475
fcom qword [0x4c5bc8]
fnstsw ax
test ah, 0x40
jne 0x435475
fcom qword [0x4c4a78]
fnstsw ax
test ah, 0x40
je 0x43544a
fstp st(0)
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x3ff00000
jmp 0x435487
fcomp qword [0x4c4c98]
fnstsw ax
test ah, 0x40
je 0x435469
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xbff00000
jmp 0x435487
fld qword [esp + 0x40]
fcos
fstp qword [esp + 0x30]
jmp 0x435487
fstp st(0)
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00435eb0
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
jle 0x43569a
fild dword [ebp + 0x28]
fstp qword [esp + 0x50]
fild dword [ebp + 0x2c]
fstp qword [esp + 0x60]
jmp 0x4354ba
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi + 4]
sub esp, 8
mov ecx, dword [eax + edi*8]
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
mov edx, dword [eax + edi*8 + 4]
mov dword [esp + 0x4c], edx
fmul qword [esp + 0x50]
fsub qword [esp + 0x58]
fstp qword [esp + 0x18]
fild dword [esp + 0x4c]
fmul qword [esp + 0x60]
fsub qword [esp + 0x68]
fstp qword [esp + 0x28]
fld qword [esp + 0x18]
fmul qword [esp + 0x38]
fadd qword [esp + 0x70]
fld qword [esp + 0x28]
fmul qword [esp + 0x40]
fsubp st(1)
fstp qword [esp]
call fcn.0049ac00
call fcn.004989f0
fld qword [esp + 0x28]
fmul qword [esp + 0x38]
fld qword [esp + 0x18]
fmul qword [esp + 0x40]
mov dword [esp + 0x48], eax
faddp st(1)
fadd qword [esp + 0x78]
fstp qword [esp]
call fcn.0049ac00
add esp, 8
call fcn.004989f0
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 4]
mov esi, ecx
mov dword [esp + 0x10], esi
inc esi
test esi, esi
jne 0x435576
test eax, eax
je 0x435569
push eax
mov dword [esp + 0x24], ecx
call fcn.004b2da3
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x435673
test eax, eax
jne 0x43559f
lea eax, [esi*8]
push eax
call fcn.004b2d7a
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00436130
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x435673
cmp esi, dword [ebx + 0xc]
jg 0x4355ce
cmp ecx, esi
jge 0x4355be
mov edx, esi
lea eax, [eax + ecx*8]
sub edx, ecx
push edx
push eax
call fcn.00436130
mov dword [ebx + 8], esi
jmp 0x435673
jle 0x4355c6
sub ecx, esi
mov dword [esp + 0x20], ecx
mov dword [ebx + 8], esi
jmp 0x435673
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4355f8
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4355ec
mov eax, 4
jmp 0x4355f8
cmp eax, 0x400
jle 0x4355f8
mov eax, 0x400
mov ecx, dword [ebx + 0xc]
add eax, ecx
cmp esi, eax
mov dword [esp + 0xc], eax
jl 0x435609
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0xc]
lea edx, [ecx*8]
push edx
call fcn.004b2d7a
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x20], eax
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.00436130
mov ecx, dword [ebx + 4]
push ecx
call fcn.004b2da3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
add esp, 4
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc edi
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
mov dword [ecx + eax*8 + 4], edx
mov eax, dword [esp + 0x2c]
cmp edi, eax
jl 0x4354b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30