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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df241
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea eax, [esp + 0x4c]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x40590000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x40590000
call fcn.004b8150
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004b8150
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.004b8150
fld qword [esp + 0x60]
fsub qword [esp + 0x50]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
fstp qword [esp + 0x60]
fld qword [esp + 0x68]
fsub qword [esp + 0x58]
mov dword [esp + 0x10], ecx
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fsub qword [esp + 0x50]
fstp qword [esp + 0x70]
fld qword [esp + 0x78]
fsub qword [esp + 0x58]
fstp qword [esp + 0x78]
jle 0x5a1187
mov eax, dword [ebx + 8]
mov esi, dword [edi + 0x1c]
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov edx, dword [edx + 0xd8]
cmp edx, esi
jne 0x5a1177
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x40590000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x40590000
mov esi, dword [eax]
lea eax, [esp + 0x20]
add esi, 0xe0
push eax
mov ecx, esi
call fcn.004b8150
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004b8150
lea edx, [esp + 0x40]
mov ecx, esi
push edx
call fcn.004b8150
fld qword [esp + 0x30]
fsub qword [esp + 0x20]
sub esp, 8
sub esp, 8
fstp qword [esp + 0x40]
fld qword [esp + 0x48]
fsub qword [esp + 0x38]
fstp qword [esp + 0x48]
fld qword [esp + 0x50]
fsub qword [esp + 0x30]
fstp qword [esp + 0x50]
fld qword [esp + 0x58]
fsub qword [esp + 0x38]
fstp qword [esp + 0x58]
fld qword [esp + 0x78]
fsub qword [esp + 0x48]
fstp qword [esp + 8]
fld qword [esp + 0x70]
fsub qword [esp + 0x40]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fcomp qword [0x5edc38]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x5a1173
fld qword [esp + 0x78]
fsub qword [esp + 0x48]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x80]
fsub qword [esp + 0x50]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fcomp qword [0x5edc38]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x5a11b4
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x5a1034
push 0x170
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x138], ecx
je 0x5a11d5
mov ecx, eax
call fcn.005a09a0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x5a11db
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x14], ecx
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x138], 0xffffffff
call fcn.0050b0a0
push eax
mov ecx, esi
call fcn.00520110
lea ecx, [esp + 0xe0]
call fcn.004ccd50
lea ecx, [esp + 0x90]
mov dword [esp + 0x138], 1
call fcn.004ccd50
mov edx, dword [edi]
lea eax, [esp + 0xe0]
push eax
mov ecx, edi
mov byte [esp + 0x13c], 2
call dword [edx + 0x14]
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x94]
call fcn.004b7e30
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x90]
push edx
call fcn.004b80e0
lea eax, [esp + 0x80]
lea ecx, [esi + 0x28]
push eax
call fcn.004b6ed0
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x94]
call fcn.004b8150
fld qword [esp + 0x88]
sub esp, 8
lea ecx, [esp + 0x98]
fchs
fstp qword [esp]
fld qword [esp + 0x88]
sub esp, 8
fchs
fstp qword [esp]
call fcn.004b7fd0
mov edx, dword [esi]
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call dword [edx + 0x1c]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esi + 0xe0]
fstp st(0)
call fcn.004b7e20
mov edx, dword [edi + 0x1c]
xor edi, edi
mov dword [esi + 0xd8], edx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xd4], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, edx
mov dword [esp + 0x10], ecx
inc ecx
cmp ecx, edi
jne 0x5a1301
cmp eax, edi
je 0x5a12f6
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
jmp 0x5a13fd
cmp eax, edi
jne 0x5a133e
lea edi, [ecx*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 8], 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 eax, dword [esp + 0x10]
inc eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
jmp 0x5a13fd
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jg 0x5a1361
cmp ecx, edx
jle 0x5a1352
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [ebx + 0xc], eax
jmp 0x5a13fd
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x5a138b
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5a137f
mov eax, 4
jmp 0x5a138b
cmp eax, 0x400
jle 0x5a138b
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x18], eax
jl 0x5a1399
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
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 + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0xc]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
push eax
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x138], 1
mov dword [ecx + edx*4], esi
lea ecx, [esp + 0x90]
call fcn.0042bd50
lea ecx, [esp + 0xe0]
mov dword [esp + 0x138], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8