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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov ecx, ebx
mov dword [esp + 0x10], edi
call fcn.004b7040
fcomp qword [esi + 0x290]
fnstsw ax
test ah, 1
jne 0x53637d
mov ecx, ebx
call fcn.004b7060
fcomp qword [esi + 0x298]
fnstsw ax
test ah, 1
jne 0x53637d
mov eax, dword [ebp + 0x18]
mov ecx, esi
push eax
call fcn.0059eda0
mov edi, eax
test edi, edi
je 0x536399
lea ecx, [esp + 0x68]
call fcn.004b6ca0
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0
call fcn.00527630
mov cx, word [ebp + 0x10]
push ebx
mov word [esp + 0x42], cx
lea ecx, [esp + 0x6c]
call fcn.004b6d90
xor eax, eax
cmp word [esi], ax
jne 0x536126
mov ecx, ebx
call fcn.004b7040
fsub qword [esi + 0x290]
fdiv qword [esi + 0x2b8]
call sub.msvcrt.dll__ftol
inc eax
mov ecx, ebx
mov word [esp + 0x42], ax
call fcn.004b7060
fsub qword [esi + 0x298]
fdiv qword [esi + 0x2b0]
call sub.msvcrt.dll__ftol
movsx ebx, word [esp + 0x42]
inc eax
mov edx, ebx
movsx ecx, ax
imul edx, ecx
cmp edx, edi
mov word [esp + 0x40], ax
jl 0x53602d
fld qword [esi + 0x290]
fsub qword [esi + 0x2b8]
mov word [esp + 0x44], di
fmul qword [esi + 0x298]
fld qword [esi + 0x298]
fsub qword [esi + 0x2b0]
fmul qword [esi + 0x290]
fcompp
fnstsw ax
test ah, 1
mov eax, edi
cdq
je 0x535fee
idiv ebx
mov cx, ax
mov eax, edi
cdq
idiv ebx
mov word [esp + 0x40], cx
test edx, edx
je 0x535fc2
inc cx
mov word [esp + 0x40], cx
mov eax, edi
movsx ebx, cx
cdq
idiv ebx
mov bx, ax
mov eax, edi
movsx edi, cx
cdq
idiv edi
mov word [esp + 0x42], bx
test edx, edx
je 0x536086
inc bx
mov word [esp + 0x42], bx
jmp 0x536086
idiv ecx
mov bx, ax
mov eax, edi
cdq
idiv ecx
mov word [esp + 0x42], bx
test edx, edx
je 0x536008
inc bx
mov word [esp + 0x42], bx
mov eax, edi
movsx ecx, bx
cdq
idiv ecx
mov cx, ax
mov eax, edi
movsx edi, bx
cdq
idiv edi
mov word [esp + 0x40], cx
test edx, edx
je 0x536086
inc cx
mov word [esp + 0x40], cx
jmp 0x536086
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x18]
imul eax, dword [esp + 0x42]
movsx edx, ax
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
mov word [esp + 0x50], ax
call fcn.00530600
test al, al
je 0x53607c
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov cx, word [esp + 0x40]
mov bx, word [esp + 0x42]
cmp word [esi + 8], 1
jne 0x53610c
movsx eax, bx
dec eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
movsx ecx, cx
fmul qword [esi + 0x2b8]
dec ecx
mov dword [esp + 0x14], ecx
fadd qword [esp + 0x68]
fadd qword [esi + 0x290]
fstp qword [esp + 0x78]
fild dword [esp + 0x14]
fmul qword [esi + 0x2b0]
fadd qword [esp + 0x70]
fadd qword [esi + 0x298]
fst qword [esp + 0x80]
fcomp qword [edx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x536287
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x30]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00535b20
fstp st(0)
jmp 0x536287
cmp edi, 1
jne 0x536156
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esp + 0x1c], 0x5f07a0
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
push edi
push ebx
mov byte [esp + 0xa4], 1
call fcn.0059bc30
mov eax, dword [esp + 0x24]
test eax, eax
je 0x536256
mov ecx, 1
mov word [esp + 0x40], ax
mov word [esp + 0x42], cx
mov word [esp + 0x3c], cx
lea ecx, [esp + 0x68]
mov word [esp + 0x44], ax
call fcn.004b6ff0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test eax, eax
jle 0x536232
mov ecx, edi
mov edx, eax
fld qword [ecx + 8]
fld qword [ecx]
fcom qword [esp + 0x68]
fnstsw ax
test ah, 1
je 0x5361d6
fst qword [esp + 0x68]
fld qword [esp + 0x70]
fld st(2)
fcompp
fnstsw ax
test ah, 1
je 0x5361e9
fld st(1)
jmp 0x5361ed
fld qword [esp + 0x70]
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x536206
fstp st(0)
fld qword [esp + 0x78]
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x536225
fstp st(0)
fld qword [esp + 0x80]
fstp qword [esp + 0x80]
add ecx, 0x10
dec edx
jne 0x5361c2
fld qword [esp + 0x78]
fadd qword [esi + 0x290]
fstp qword [esp + 0x78]
fld qword [esp + 0x80]
fadd qword [esi + 0x298]
fstp qword [esp + 0x80]
jmp 0x53625a
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1c], 0x5f07a0
test edi, edi
mov byte [esp + 0x98], 2
je 0x536277
push edi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov byte [esp + 0x98], 0
mov dword [esp + 0x1c], 0x5e262c
mov al, byte [ebp + 8]
test al, al
jne 0x536352
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ecx, dword [eax + 0x24]
push edi
movsx eax, word [ebx + 0xe]
lea edx, [eax + eax*4]
lea edx, [edx + edx*8]
lea eax, [eax + edx*2]
lea esi, [ecx + eax*8]
movsx eax, word [esp + 0x42]
lea edx, [eax + eax*4]
lea edx, [edx + edx*8]
lea eax, [eax + edx*2]
lea ecx, [ecx + eax*8]
push ecx
lea ecx, [esp + 0x38]
call fcn.005277b0
fstp qword [esp + 0x14]
push edi
push esi
mov ecx, ebx
call fcn.005277b0
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x536352
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [ebx + 8], ecx
mov cx, word [esp + 0x40]
mov dword [ebx], edx
mov dx, word [esp + 0x3c]
mov dword [ebx + 4], eax
mov ax, word [esp + 0x3e]
mov word [ebx + 0x10], cx
mov cx, word [esp + 0x46]
mov word [ebx + 0xc], dx
mov dx, word [esp + 0x42]
mov word [ebx + 0xe], ax
mov ax, word [esp + 0x44]
mov word [ebx + 0x16], cx
lea edi, [ebx + 0x18]
mov ecx, 8
lea esi, [esp + 0x48]
mov word [ebx + 0x12], dx
mov word [ebx + 0x14], ax
lea edx, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [ebx + 0x38]
call fcn.004b6d90
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x58], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp word [esi + 8], 2
jg 0x536399
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push esi
push eax
push ebx
mov ecx, edi
call fcn.005301e0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18