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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d6d47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0x66666667
push edi
mov edi, dword [ebp + 0x24]
mov ecx, dword [esi + 0x254]
imul ecx, dword [esi + 0x48]
imul ecx
sar edx, 3
mov eax, edx
mov esi, dword [esi + 0x4c]
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 8]
cmp eax, edx
jle 0x510771
cmp eax, 2
jle 0x510769
mov eax, 2
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x510791
cmp eax, esi
jle 0x510781
cmp eax, 3
jle 0x51078b
mov eax, 3
jmp 0x51078b
cmp eax, 5
jle 0x51078b
mov eax, 5
mov dword [esp + 0x10], eax
mov ebx, eax
xor esi, esi
mov dword [esp + 0x24], 0
test ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x510822
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + esi*4]
fld qword [ecx + 0x50]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 1
je 0x5107e1
mov eax, 1
jmp 0x5107e3
xor eax, eax
fld qword [esp + 0x14]
mov dword [ecx + 0x58], eax
mov edx, dword [edi + 4]
mov eax, dword [edx + esi*4]
fadd qword [eax + 0x40]
lea ecx, [eax + 0x20]
fstp qword [esp + 0x14]
call fcn.004b7040
fadd qword [esp + 0x24]
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
fstp qword [esp + 0x24]
add ecx, 0x20
call fcn.004b7060
fadd qword [esp + 0x1c]
inc esi
cmp esi, ebx
fstp qword [esp + 0x1c]
jl 0x5107c7
fld qword [esp + 0x14]
fdiv qword [esp + 0x24]
mov ecx, dword [ebp + 0x18]
fstp qword [esp + 0x24]
fld qword [esp + 0x14]
fdiv qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [ecx + 0x78]
fmul qword [0x5f01d0]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x51085e
fld qword [ecx + 0x78]
fmul qword [0x5f01d0]
fstp qword [esp + 0x24]
fld qword [ecx + 0x78]
fmul qword [0x5f01d0]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x51087f
fld qword [ecx + 0x78]
fmul qword [0x5f01d0]
fstp qword [esp + 0x1c]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x14]
push esi
call fcn.0050b020
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x18]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0050e7d0
fld qword [ebx + 0x18]
fcomp qword [ebx + 0x20]
add esp, 0x28
fnstsw ax
test ah, 1
je 0x510a8d
mov ecx, dword [ebp + 0x18]
call fcn.0050b020
push eax
lea ecx, [esp + 0x34]
call fcn.004b6cb0
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x628c80]
fld qword [0x5e2798]
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], ecx
fst qword [esp + 0x14]
mov ecx, 5
mov dword [esp + 0x178], 0
cmp edx, ecx
mov dword [esp + 0x40], eax
jle 0x510968
mov eax, dword [0x628c7c]
add eax, 0x10
fld qword [eax + 0x10]
fsub qword [eax]
add ecx, 4
add eax, 0x20
cmp ecx, edx
fmul qword [eax - 8]
faddp st(1)
jl 0x510918
fstp qword [esp + 0x14]
push esi
call fcn.0050b840
fsubr qword [esp + 0x18]
add esp, 4
fcom qword [0x5e2798]
fnstsw ax
test ah, 1
je 0x51096c
fstp st(0)
lea ecx, [esp + 0x30]
call fcn.004b71f0
fstp qword [esp + 0x24]
push esi
call fcn.0050b840
fsubr qword [esp + 0x28]
add esp, 4
jmp 0x510972
fstp st(0)
jmp 0x510930
fmul qword [0x5ebbc0]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov edx, dword [ebp + 0x1c]
push ecx
fstp qword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
push esi
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.0050f110
add esp, 0x20
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x510a48
mov ecx, dword [edi + 4]
push 0xffffffffffffffff
mov ebx, dword [ecx + eax*4]
mov eax, dword [esi + 8]
add ebx, 8
mov dword [esp + 0x14], eax
mov ecx, esi
add eax, dword [ebx + 8]
push eax
call fcn.0046d900
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea ecx, [edx + ecx*4]
mov edx, eax
dec eax
test edx, edx
je 0x5109ee
inc eax
mov edx, dword [ebx]
add ebx, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x5109e1
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
sub eax, edx
dec eax
lea esi, [ecx + edx*4]
je 0x510a13
shl eax, 2
lea ecx, [ecx + edx*4 + 4]
push eax
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov eax, dword [edi + 8]
lea ecx, [esp + 0x30]
dec eax
mov dword [esp + 0x178], 0xffffffff
mov dword [edi + 8], eax
call fcn.0042bd50
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
jle 0x510a79
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x50], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x510a56
lea ecx, [esp + 0x30]
mov dword [esp + 0x178], 0xffffffff
call fcn.0042bd50
lea ecx, [esp + 0x98]
call fcn.004b6ca0
xor eax, eax
mov dword [esp + 0x178], 1
mov dword [esp + 0xc8], 0x5e2824
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x178], 2
call fcn.005170c0
lea ecx, [esp + 0x100]
mov byte [esp + 0x178], 3
call fcn.004b6ca0
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x180], 4
mov dword [esp + 0x138], 0
call fcn.0046d900
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, eax
dec eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xcc]
test edx, edx
je 0x510b53
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add eax, 4
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
add ecx, 4
dec edx
mov dword [esp + 0x1c], edx
jne 0x510b3e
mov eax, dword [esp + 0xd0]
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
inc eax
push eax
lea ecx, [esp + 0xd0]
call fcn.0046d900
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ecx + edx*4], eax
lea ecx, [ebx + 0x10]
fld qword [ebx + 0x18]
add ebx, 8
push ecx
fst qword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x78]
fstp qword [esp + 0x88]
push ebx
push edx
mov edx, dword [esp + 0x38]
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
push eax
call fcn.00510450
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
jne 0x510e09
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.0050b020
push eax
lea ecx, [esp + 0x54]
call fcn.004b6cb0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ecx]
push 0
push edx
push esi
push eax
lea ecx, [esp + 0x60]
push ebx
push ecx
mov byte [esp + 0x190], 5
call fcn.0050f530
add esp, 0x18
test al, al
je 0x510d3e
mov edx, dword [edi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
mov ebx, dword [edx]
mov edx, dword [ebx + 0x10]
add ebx, 8
add eax, edx
push eax
mov ecx, esi
call fcn.0046d900
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea ecx, [ecx + edx*4]
mov edx, eax
dec eax
test edx, edx
je 0x510c4f
inc eax
mov edx, dword [ebx]
add ebx, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x510c42
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
dec eax
je 0x510c6a
shl eax, 2
lea edx, [ecx + 4]
push eax
push edx
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov edx, dword [edi + 8]
lea ecx, [esp + 0x50]
dec edx
mov byte [esp + 0x178], 4
mov dword [edi + 8], edx
call fcn.0042bd50
lea ecx, [esp + 0x100]
mov dword [esp + 0x178], 8
call fcn.0042bd50
lea eax, [esp + 0xdc]
mov edi, 0x5e2824
mov dword [esp + 0x14], eax
mov dword [esp + 0xdc], edi
mov eax, dword [esp + 0xe0]
mov byte [esp + 0x178], 9
test eax, eax
je 0x510ccc
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc8], edi
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x178], 0xa
test eax, eax
je 0x510d06
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xc8], esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0042bd50
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x50]
mov byte [esp + 0x178], 4
call fcn.0042bd50
lea ecx, [esp + 0x100]
mov dword [esp + 0x178], 0xd
call fcn.0042bd50
lea edx, [esp + 0xdc]
mov edi, 0x5e2824
mov dword [esp + 0x14], edx
mov dword [esp + 0xdc], edi
mov eax, dword [esp + 0xe0]
mov byte [esp + 0x178], 0xe
test eax, eax
je 0x510d99
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea eax, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc8], edi
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x178], 0xf
test eax, eax
je 0x510dd3
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xc8], esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0042bd50
or eax, 0xffffffff
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [edx + ebx*4]
call fcn.00588720
lea ecx, [esp + 0x100]
mov dword [esp + 0x178], 0x12
call fcn.0042bd50
lea eax, [esp + 0xdc]
mov edi, 0x5e2824
mov dword [esp + 0x14], eax
mov dword [esp + 0xdc], edi
mov eax, dword [esp + 0xe0]
mov byte [esp + 0x178], 0x13
test eax, eax
je 0x510e63
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc8], edi
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x178], 0x14
test eax, eax
je 0x510e9d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xc8], esi
mov dword [esp + 0x178], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x170]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret