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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5de185
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.004b6ca0
lea esi, [ebx + 0x20]
mov dword [esp + 0x180], 0
mov ecx, esi
call fcn.004b7040
fdivr qword [ebx + 0x40]
mov ecx, esi
fstp qword [esp + 0xc]
call fcn.004b7060
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1e4]
fdivr qword [ebx + 0x40]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + ecx - 8]
cmp eax, 2
je 0x587f5f
cmp eax, 5
je 0x587f5f
mov edi, dword [ebp + 8]
mov ecx, esi
fld qword [edi]
fsub st(1)
fstp qword [esp + 0x2c]
fstp st(0)
fld qword [edi + 8]
fsub qword [esp + 0xc]
fstp qword [esp + 0x34]
call fcn.004b7040
fadd qword [edi]
fadd qword [0x5e7ac0]
fld qword [edi + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x587e85
mov ecx, esi
call fcn.004b7040
fadd qword [edi]
fadd qword [0x5e7ac0]
jmp 0x587e88
fld qword [edi + 0x10]
fstp qword [esp + 0x3c]
mov ecx, esi
call fcn.004b7060
fadd qword [edi + 8]
fadd qword [0x5e7ac0]
fld qword [edi + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x587eba
mov ecx, esi
call fcn.004b7060
fadd qword [edi + 8]
fadd qword [0x5e7ac0]
jmp 0x587ebd
fld qword [edi + 0x18]
fstp qword [esp + 0x44]
lea ecx, [esp + 0x2c]
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7040
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x587f0e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x180], 0xffffffff
call fcn.0042bd50
or eax, 0xffffffff
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [esp + 0x2c]
call fcn.004b7060
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x588184
lea ecx, [esp + 0x2c]
mov dword [esp + 0x180], 0xffffffff
call fcn.0042bd50
or eax, 0xffffffff
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fld qword [esp + 0xc]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x587f70
fld st(0)
jmp 0x587f72
fld st(1)
mov edi, dword [ebp + 8]
fld qword [edi]
fsub st(1)
fstp qword [esp + 0x2c]
fstp st(0)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x587f8e
fstp st(0)
fld qword [esp + 0xc]
fld qword [edi + 8]
fsub st(1)
mov ecx, esi
fstp qword [esp + 0x34]
fstp st(0)
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x587fbf
call fcn.004b7040
jmp 0x587fc4
call fcn.004b7060
fadd qword [edi]
fadd qword [0x5e7ac0]
fld qword [edi + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x588015
mov ecx, esi
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x588006
call fcn.004b7040
fadd qword [edi]
fadd qword [0x5e7ac0]
jmp 0x588018
call fcn.004b7060
fadd qword [edi]
fadd qword [0x5e7ac0]
jmp 0x588018
fld qword [edi + 0x10]
fstp qword [esp + 0x3c]
mov ecx, esi
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x588042
call fcn.004b7040
jmp 0x588047
call fcn.004b7060
fadd qword [edi + 8]
fadd qword [0x5e7ac0]
fld qword [edi + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x58809b
mov ecx, esi
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x58808b
call fcn.004b7040
fadd qword [edi + 8]
fadd qword [0x5e7ac0]
jmp 0x58809e
call fcn.004b7060
fadd qword [edi + 8]
fadd qword [0x5e7ac0]
jmp 0x58809e
fld qword [edi + 0x18]
fstp qword [esp + 0x44]
mov ecx, esi
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 0x41
jne 0x5880c8
call fcn.004b7040
jmp 0x5880cd
call fcn.004b7060
fstp qword [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b7040
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 1
je 0x588113
lea ecx, [esp + 0x2c]
mov dword [esp + 0x180], 0xffffffff
call fcn.0042bd50
or eax, 0xffffffff
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 0x41
jne 0x588139
call fcn.004b7040
jmp 0x58813e
call fcn.004b7060
fstp qword [esp + 0xc]
lea ecx, [esp + 0x2c]
call fcn.004b7060
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 1
je 0x588184
lea ecx, [esp + 0x2c]
mov dword [esp + 0x180], 0xffffffff
call fcn.0042bd50
or eax, 0xffffffff
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
xor edi, edi
push edi
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, 0x62ac78
call fcn.0051f880
lea ecx, [esp + 0xd0]
call fcn.0056b6a0
mov eax, dword [ebx + 0x10]
mov byte [esp + 0x180], 1
cmp eax, 1
jne 0x5881fb
push 0x140
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x180], 2
je 0x588221
mov ecx, eax
call fcn.0058dea0
jmp 0x588223
push 0x168
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x180], 3
je 0x588221
mov ecx, eax
call fcn.0058e520
jmp 0x588223
xor eax, eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x28], eax
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x34]
push edx
lea ecx, [ebx + 8]
push eax
push ecx
mov byte [esp + 0x194], 1
call fcn.0050b840
push ecx
fstp qword [esp]
call fcn.00591fb0
add esp, 0x18
lea edx, [esp + 0xd0]
mov ecx, 0x62ac78
push edx
push edi
call fcn.0056fd10
lea ecx, [esp + 0x110]
call fcn.00589140
lea ecx, [esp + 0x90]
mov byte [esp + 0x180], 4
call fcn.0056b6a0
mov esi, dword [ebx + 0x10]
mov ebx, dword [ebp + 0x14]
cmp esi, edi
mov byte [esp + 0x180], 5
mov dword [esp + 0x1c], esi
jne 0x5882bd
mov eax, dword [ebx + 0x70]
cmp eax, edi
je 0x5882b2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x74], edi
jmp 0x5883af
mov edx, dword [ebx + 0x70]
cmp edx, edi
jne 0x5882f8
lea edi, [esi*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x70], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x74], esi
jmp 0x5883af
mov ecx, dword [ebx + 0x78]
cmp esi, ecx
jg 0x588319
mov eax, dword [ebx + 0x74]
cmp esi, eax
jle 0x588311
mov ecx, esi
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x74], esi
jmp 0x5883af
mov eax, dword [ebx + 0x7c]
cmp eax, edi
jne 0x588344
mov eax, dword [ebx + 0x74]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x588338
mov eax, 4
jmp 0x588344
cmp eax, 0x400
jle 0x588344
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x18], eax
jl 0x588352
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
lea ecx, [eax*4]
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0x74]
mov esi, dword [ebx + 0x70]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x74]
mov esi, dword [esp + 0x20]
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x70]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], ecx
mov eax, dword [esp + 0x20]
lea esi, [ebx + 0xc0]
lea edi, [esp + 0x50]
mov dword [esp + 0x1c], 0xffffffff
mov edx, dword [eax + 0x40]
mov dword [esp + 0x18], 0
mov dword [ebx + 0x80], edx
mov ecx, dword [eax + 0x44]
mov dword [ebx + 0x84], ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1e8]
test ecx, ecx
jle 0x5886a2
lea edx, [eax + 0x60]
add eax, 0xe0
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x90]
call fcn.0056b6f0
mov edi, dword [esp + 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x28]
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [ecx + 0x10]
test eax, eax
jle 0x588476
imul eax, dword [esp + 0x18]
add eax, esi
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x20]
shl edx, 6
mov ecx, dword [eax + 0x1f8]
add edx, ecx
mov ecx, dword [ebx + 0x70]
mov dword [ecx + esi*4], edx
mov eax, dword [ebx + 0x70]
lea edx, [esp + 0x90]
mov ecx, dword [eax + esi*4]
push edx
push 0
call fcn.0050c660
mov eax, dword [ebx + 0x70]
mov edx, dword [edi]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, edi
call dword [edx + 0x24]
mov edx, dword [esp + 0x20]
inc esi
mov eax, dword [edx + 0x10]
cmp esi, eax
jl 0x588428
lea esi, [ebx + 0x90]
lea eax, [ebx + 0x6c]
push esi
push eax
call fcn.0050b890
mov ecx, dword [esp + 0x54]
lea eax, [ebx + 0xb0]
add esp, 8
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [eax]
mov dword [ebx + 0x88], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0x8c], eax
fld qword [esi]
fsub qword [0x5e2858]
fstp qword [esi]
fld qword [esi + 8]
fsub qword [0x5e2858]
fstp qword [esi + 8]
fld qword [esi + 0x10]
fadd qword [0x5e2858]
fstp qword [esi + 0x10]
fld qword [esi + 0x18]
fadd qword [0x5e2858]
fstp qword [esi + 0x18]
call fcn.004b7040
mov eax, dword [ebp + 8]
fadd qword [eax]
fld qword [eax + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x588512
mov ecx, esi
call fcn.004b7040
mov ecx, dword [ebp + 8]
fadd qword [ecx]
jmp 0x588518
mov edx, dword [ebp + 8]
fld qword [edx + 0x10]
fstp qword [esp + 0x3c]
mov ecx, esi
call fcn.004b7060
mov eax, dword [ebp + 8]
fadd qword [eax + 8]
fld qword [eax + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x588544
mov ecx, esi
call fcn.004b7060
mov eax, dword [ebp + 8]
fadd qword [eax + 8]
jmp 0x58854a
mov ecx, dword [ebp + 8]
fld qword [ecx + 0x18]
fstp qword [esp + 0x44]
lea ecx, [esp + 0x2c]
call fcn.004b7040
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7040
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
je 0x588671
lea ecx, [esp + 0x2c]
call fcn.004b7060
fstp qword [esp + 0xc]
mov ecx, esi
call fcn.004b7060
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
je 0x588671
sub esp, 0x20
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004b6cb0
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xf0]
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.00589720
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x5885f5
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push 1
push edx
mov edx, dword [ebx + 0x70]
push ebx
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [edx]
push edi
call fcn.0050b0a0
push eax
lea ecx, [esp + 0x12c]
call fcn.0058c0d0
jmp 0x58861b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x70]
push ebx
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [eax]
push edx
push edi
call fcn.0050b0a0
push eax
lea ecx, [esp + 0x128]
call fcn.0058c310
test al, al
je 0x588671
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0x6c]
mov dword [esp + 0x1c], ecx
lea esi, [edx + 0x20]
push esi
push eax
call fcn.0050b890
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
add esp, 8
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004b6fc0
mov ecx, 0x10
lea esi, [esp + 0x50]
lea edi, [ebx + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0xf4], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
add edx, 8
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
inc eax
add esi, 0x10
mov ecx, dword [edx + 0x1e8]
mov dword [esp + 0x18], eax
cmp eax, ecx
mov dword [esp + 0x4c], esi
jl 0x588404
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5886b2
mov ecx, eax
push 1
mov eax, dword [ecx]
call dword [eax]
lea ecx, [esp + 0x90]
mov byte [esp + 0x180], 4
call fcn.004b7310
lea ecx, [esp + 0x110]
mov byte [esp + 0x180], 1
call fcn.005891c0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x180], 0
call fcn.004b7310
lea ecx, [esp + 0x2c]
mov dword [esp + 0x180], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14