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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push ebx
push esi
push edi
lea ecx, [esp + 0x60]
call fcn.0051d410
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x60]
xor edi, edi
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x1d8], edi
call fcn.0050b020
push eax
call fcn.00559830
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
mov dword [esp + 0x50], ecx
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0x3fe00000
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 0x3fe00000
mov dword [esp + 0x70], edi
mov dword [esp + 0x48], edx
call sub.mfc42u.dll_CString::CString_3
mov ecx, dword [ebp + 0x10]
mov eax, 0x66666667
mov byte [esp + 0x1d0], 1
mov esi, dword [ecx + 8]
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov dword [esp + 0x20], eax
dec eax
cmp eax, 0xe
mov dword [esp + 0x38], eax
jl 0x51309b
mov dword [esp + 0x38], 0xe
xor eax, eax
cmp esi, edi
jle 0x5130c0
mov edx, dword [ecx + 4]
inc eax
mov edx, dword [edx + eax*4 - 4]
mov dword [edx + 0x50], edi
mov dword [edx + 0x54], edi
mov edx, dword [ecx + 4]
mov edx, dword [edx + eax*4 - 4]
mov dword [edx + 0x58], edi
mov edx, dword [ecx + 8]
cmp eax, edx
jl 0x5130a1
mov eax, dword [ecx + 8]
cmp eax, edi
je 0x5137c3
push 0
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00436a50
add esp, 0xc
test al, al
je 0x5136f5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x5130fe
cmp eax, 3
jle 0x51311a
mov eax, 3
jmp 0x51311a
cmp eax, dword [esp + 0x38]
jle 0x513110
cmp eax, 4
jle 0x51311a
mov eax, 4
jmp 0x51311a
cmp eax, 6
jle 0x51311a
mov eax, 6
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jle 0x5131b7
mov edi, dword [ebp + 0x10]
mov edx, dword [edi + 4]
mov ecx, dword [edx + esi*4]
fld qword [ecx + 0x50]
fcomp qword [esp + 0x4c]
fnstsw ax
test ah, 1
je 0x513172
mov eax, 1
jmp 0x513174
xor eax, eax
fld qword [esp + 0x54]
mov dword [ecx + 0x58], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
fadd qword [eax + 0x40]
lea ecx, [eax + 0x20]
fstp qword [esp + 0x54]
call fcn.004b7040
fadd qword [esp + 0x2c]
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + esi*4]
fstp qword [esp + 0x2c]
add ecx, 0x20
call fcn.004b7060
fadd qword [esp + 0x3c]
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
fstp qword [esp + 0x3c]
jl 0x513157
fld qword [esp + 0x54]
fdiv qword [esp + 0x2c]
mov edi, dword [ebp + 8]
fstp qword [esp + 0x2c]
fld qword [esp + 0x54]
fdiv qword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [edi + 0x78]
fmul qword [0x5f01d0]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x5131f3
fld qword [edi + 0x78]
fmul qword [0x5f01d0]
fstp qword [esp + 0x2c]
fld qword [edi + 0x78]
fmul qword [0x5f01d0]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x513214
fld qword [edi + 0x78]
fmul qword [0x5f01d0]
fstp qword [esp + 0x3c]
push ebx
mov ecx, edi
call fcn.0050b020
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
push 0x3fe99999
push 0x9999999a
call fcn.0050e7d0
add esp, 0x28
lea ecx, [esp + 0xf0]
call fcn.004b6ca0
xor esi, esi
mov dword [esp + 0x120], 0x5e2824
mov dword [esp + 0x124], esi
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], esi
mov dword [esp + 0x128], esi
lea ecx, [esp + 0x134]
mov byte [esp + 0x1d0], 3
call fcn.005170c0
lea ecx, [esp + 0x158]
mov byte [esp + 0x1d0], 4
call fcn.004b6ca0
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x128]
mov byte [esp + 0x1d8], 5
mov dword [esp + 0x190], esi
call fcn.0046d900
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x124]
mov esi, eax
dec eax
test esi, esi
je 0x5132ed
inc eax
mov esi, dword [edx]
add edx, 4
mov dword [ecx], esi
add ecx, 4
dec eax
jne 0x5132e0
mov eax, dword [esp + 0x128]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x128]
call fcn.0046d900
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax + esi*4], edi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xd8], ecx
lea eax, [esp + 0x70]
mov dword [esp + 0xdc], edx
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd0]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push esi
push ecx
push edx
push eax
push edi
call fcn.00510450
add esp, 0x24
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x5134ed
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc8]
mov edi, eax
push ecx
mov ecx, dword [edx + edi*4]
call fcn.00588720
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [edx + edi*4]
mov dword [esp + 0x28], ecx
mov edi, dword [eax + 0x10]
dec edi
js 0x5133dc
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + edi*4]
call fcn.0050b020
fld qword [eax + 0x10]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
jne 0x5133d9
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + edi*4]
call fcn.0050b020
fld qword [eax + 0x10]
fstp qword [esp + 0x24]
dec edi
jns 0x51339a
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
mov edi, dword [edx + eax*4]
mov eax, dword [ebx + 8]
mov edx, dword [edi + 0x10]
add edi, 8
mov dword [esp + 0x1c], eax
add eax, edx
mov dword [esp + 0x54], ecx
push eax
mov ecx, ebx
call fcn.0046d900
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
lea ecx, [ecx + edx*4]
mov edx, eax
dec eax
test edx, edx
je 0x513434
inc eax
mov edx, dword [edi]
add edi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x513427
mov eax, dword [esi + 8]
mov edx, dword [esp + 0xc]
sub eax, edx
dec eax
je 0x513459
mov ecx, dword [esi + 4]
shl eax, 2
push eax
lea eax, [ecx + edx*4 + 4]
lea ecx, [ecx + edx*4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov edx, dword [esi + 8]
push ebx
dec edx
mov dword [esi + 8], edx
call fcn.0050b8d0
fcomp qword [0x5e4688]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x51348f
push 0
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00436a50
add esp, 0xc
test al, al
je 0x51367c
lea ecx, [esp + 0x158]
mov byte [esp + 0x1d0], 0xc
call fcn.0042bd50
lea eax, [esp + 0x134]
mov dword [esp + 0x134], 0x5e2824
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x138]
mov byte [esp + 0x1d0], 0xd
test eax, eax
je 0x5134d5
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x134], 0x5e262c
mov byte [esp + 0x1d0], 0xa
jmp 0x51364c
mov ecx, edi
call fcn.0050b020
push eax
lea ecx, [esp + 0x8c]
call fcn.004b6cb0
fld qword [esp + 0x88]
fadd qword [esp + 0x44]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
cmp ecx, eax
mov byte [esp + 0x1d0], 0xe
fstp qword [esp + 0x98]
jge 0x51355e
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [edx + eax*4]
lea edx, [esp + 0x64]
push ecx
push ebx
push edx
lea eax, [esp + 0x98]
push edi
push eax
call fcn.0050f530
add esp, 0x18
test al, al
jne 0x51355e
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x513526
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 8]
cmp ecx, eax
jge 0x513731
mov edx, dword [esi + 4]
mov eax, ecx
push 0xffffffffffffffff
mov edi, dword [edx + eax*4]
mov eax, dword [ebx + 8]
add edi, 8
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 8]
add ecx, eax
push ecx
mov ecx, ebx
call fcn.0046d900
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
lea ecx, [edx + ecx*4]
mov edx, eax
dec eax
test edx, edx
je 0x5135b3
inc eax
mov edx, dword [edi]
add edi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x5135a6
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
sub eax, edx
dec eax
je 0x5135d8
mov ecx, dword [esi + 4]
shl eax, 2
push eax
lea eax, [ecx + edx*4 + 4]
lea ecx, [ecx + edx*4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov edx, dword [esi + 8]
lea ecx, [esp + 0x88]
dec edx
mov byte [esp + 0x1d0], 5
mov dword [esi + 8], edx
call fcn.0042bd50
lea ecx, [esp + 0x158]
mov byte [esp + 0x1d0], 0x15
call fcn.0042bd50
lea edx, [esp + 0x134]
mov dword [esp + 0x134], 0x5e2824
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x138]
mov byte [esp + 0x1d0], 0x16
test eax, eax
je 0x513639
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x134], 0x5e262c
mov byte [esp + 0x1d0], 0x13
lea ecx, [esp + 0x120]
call fcn.0040bf90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x1d0], 1
call fcn.0042bd50
mov eax, dword [esi + 8]
test eax, eax
jne 0x5130cb
jmp 0x5137be
lea ecx, [esp + 0x158]
mov byte [esp + 0x1d0], 8
call fcn.0042bd50
lea eax, [esp + 0x134]
mov dword [esp + 0x134], 0x5e2824
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x138]
mov byte [esp + 0x1d0], 9
test eax, eax
je 0x5136c2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x120]
mov dword [esp + 0x134], 0x5e262c
mov byte [esp + 0x1d0], 6
call fcn.0040bf90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x1d0], 1
call fcn.0042bd50
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.0051d670
xor eax, eax
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x88]
mov byte [esp + 0x1d0], 5
call fcn.0042bd50
lea ecx, [esp + 0x158]
mov byte [esp + 0x1d0], 0x11
call fcn.0042bd50
lea ecx, [esp + 0x134]
mov dword [esp + 0x134], 0x5e2824
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x138]
mov byte [esp + 0x1d0], 0x12
test eax, eax
je 0x51378b
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x120]
mov dword [esp + 0x134], 0x5e262c
mov byte [esp + 0x1d0], 0xf
call fcn.0040bf90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x1d0], 1
call fcn.0042bd50
mov ecx, dword [ebp + 0x10]
xor edi, edi
cmp dword [ecx + 8], edi
je 0x513a70
push 0
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00436a50
add esp, 0xc
test al, al
je 0x5136f5
fld qword [0x5e2798]
mov edx, dword [0x628c80]
mov ecx, 5
fst qword [esp + 0x24]
cmp edx, ecx
jle 0x5138f1
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 0x51380a
fstp qword [esp + 0x24]
push ebx
call fcn.0050b840
fsubr qword [esp + 0x28]
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, esi
fmul qword [0x5ebbc0]
fstp qword [esp + 0x24]
call fcn.0050b020
push eax
lea ecx, [esp + 0xac]
call fcn.004b6cb0
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0xa8]
fld qword [esp + 0xa8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
fadd qword [esp + 0x44]
push eax
mov eax, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x68]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push esi
fstp qword [esp + 0xcc]
push edx
push eax
push ecx
mov byte [esp + 0x1f0], 0x17
call fcn.0050f3e0
add esp, 0x20
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x513aaf
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov edi, dword [eax + ecx*4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
add edi, 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
mov esi, dword [edi + 8]
add esi, ecx
mov dword [esp + 0x20], esi
jne 0x5138f8
test eax, eax
je 0x5138e4
push eax
mov dword [esp + 0x24], ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x5139f2
fstp st(0)
jmp 0x513822
test eax, eax
jne 0x513921
lea edx, [esi*4]
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [ebx + 4], eax
push esi
push eax
call fcn.005463a0
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x5139f2
cmp esi, dword [ebx + 0xc]
jg 0x513950
cmp ecx, esi
jge 0x513940
mov edx, esi
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.005463a0
mov dword [ebx + 8], esi
jmp 0x5139f2
jle 0x513948
sub ecx, esi
mov dword [esp + 0x20], ecx
mov dword [ebx + 8], esi
jmp 0x5139f2
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x51397a
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x51396e
mov eax, 4
jmp 0x51397a
cmp eax, 0x400
jle 0x51397a
mov eax, 0x400
mov ecx, dword [ebx + 0xc]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x18], eax
jl 0x51398b
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4]
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x38], eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
mov edx, esi
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.005463a0
mov eax, dword [ebx + 4]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, ecx
dec ecx
test edx, edx
je 0x513a17
inc ecx
mov edx, dword [edi]
add edi, 4
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x513a0a
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax + 8]
sub eax, edx
dec eax
je 0x513a4a
mov ecx, dword [esi + 4]
lea edx, [eax*4]
mov eax, dword [esp + 0xc]
push edx
lea edx, [ecx + eax*4 + 4]
lea eax, [ecx + eax*4]
push edx
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 8]
mov byte [esp + 0x1d0], 1
dec ecx
mov dword [esi + 8], ecx
lea ecx, [esp + 0xa8]
call fcn.0042bd50
mov eax, dword [esi + 8]
test eax, eax
jne 0x5137cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.0051d670
mov eax, 1
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1d0], 1
call fcn.0042bd50
lea ecx, [esp + 0x14]
mov byte [esp + 0x1d0], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.0051d670
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
mov eax, 2
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret