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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d72e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push ecx
push edi
push edx
call fcn.0050e0b0
fstp qword [ebp + 0x10]
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::CString_3
fld qword [ebp + 0x10]
fmul qword [0x5e2640]
sub esp, 8
xor ebx, ebx
mov dword [esp + 0x368], ebx
fstp qword [esp]
push 0x62066c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x1c]
push eax
call sub.mfc42u.dll_CString::Format_1
push ebx
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00436a50
add esp, 0x1c
test al, al
jne 0x5153e7
lea ecx, [esp + 0x10]
mov dword [esp + 0x360], 0xffffffff
call sub.mfc42u.dll_CString::CString
fld qword [ebp + 0x10]
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5e2824
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov ecx, 0x5e78f8
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x94], 0x5f01b8
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
push 0x40000000
lea edx, [esp + 0xac]
push ebx
lea eax, [esp + 0xc4]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
mov ecx, 0x628bd0
mov byte [esp + 0x374], 6
call fcn.00576c50
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x515549
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
mov esi, dword [edx + eax*4]
mov eax, dword [esp + 0x2c]
add esi, 0x10
mov edi, eax
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0046d900
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edx + edi*4]
mov edx, eax
dec eax
test edx, edx
je 0x515532
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x515525
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5154e8
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc4]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call fcn.0046d900
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc0]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0xc4]
cmp edx, ebx
je 0x51558a
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x51557d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb0]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call fcn.0046d900
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xac]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0xb0]
cmp edx, ebx
je 0x5155cb
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x5155be
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 8]
mov esi, eax
add eax, edx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call fcn.0046d900
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [ecx + esi*4]
mov esi, eax
dec eax
test esi, esi
je 0x515604
inc eax
mov esi, dword [edx]
add edx, 4
mov dword [ecx], esi
add ecx, 4
dec eax
jne 0x5155f7
lea edx, [esp + 0x80]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0050b980
mov eax, 0x5f0240
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0xd8], edx
push ebx
lea eax, [eax + eax*4]
lea edx, [esp + 0x24]
mov byte [esp + 0x364], 8
mov dword [esp + 0xe4], 4
lea eax, [eax + eax*4]
mov dword [esp + 0xe8], 2
mov dword [esp + 0x104], 0x66666666
mov dword [esp + 0x108], 0x3fe66666
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 0x20]
shl ecx, 3
mov dword [esp + 0xd4], ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe0], eax
push ecx
mov eax, 3
push edi
push edx
mov dword [esp + 0x118], eax
mov dword [esp + 0x120], 0xcccccccd
mov dword [esp + 0x124], 0x3ff0cccc
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0x400c0000
mov dword [esp + 0xf8], 0x33333333
mov dword [esp + 0xfc], 0x3ff33333
mov dword [esp + 0x100], 0x9999999a
mov dword [esp + 0x104], 0x3fe99999
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], 0xf
call fcn.0050b8d0
fmul qword [0x5e27e0]
mov eax, dword [ebp + 8]
push ecx
fadd qword [0x5e2858]
fmul qword [ebp + 0x10]
fstp qword [esp]
push eax
call fcn.005127f0
lea ecx, [esp + 0x74]
lea edx, [esp + 0x38]
push ecx
push edx
fstp st(0)
call fcn.0050b980
mov eax, dword [esp + 0x364]
add esp, 0x20
cmp eax, ebx
jne 0x51578e
push ebx
push 0x6206b8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
push 0x6206b8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c700
add esp, 0xc
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xd0]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00517a60
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0xd0]
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.00517a60
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea edi, [esp + 0xd0]
lea eax, [eax + eax*8]
lea ecx, [eax + eax*8]
lea esi, [edx + ecx*8 - 0x288]
mov ecx, 0xa2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x118], 2
mov dword [esp + 0x11c], 0xb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0xd0]
push ebx
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.005127f0
lea edx, [esp + 0xe8]
lea eax, [esp + 0x4c]
push edx
push eax
fstp st(0)
call fcn.00515110
mov esi, dword [esp + 0x5c]
add esp, 0x20
lea ecx, [esi + 1]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x3c]
call fcn.005178e0
lea eax, [esi + esi*8]
mov ecx, 0xa2
lea esi, [esp + 0xd0]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x38]
lea edi, [eax + edx*8]
lea edx, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd0]
push ecx
push edx
call fcn.00514f50
add esp, 8
test al, al
je 0x515881
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0050b980
add esp, 8
lea edx, [esp + 0x80]
push edx
call fcn.0050bb60
mov eax, dword [esp + 0x120]
add esp, 4
add eax, 2
cmp eax, 0xf
mov dword [esp + 0x11c], eax
jle 0x5157f3
mov eax, dword [esp + 0x118]
inc eax
cmp eax, 4
mov dword [esp + 0x118], eax
jl 0x5157e8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0xd0]
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
lea esi, [ecx + eax*8 - 0x288]
mov ecx, 0xa2
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xe8], 0x33333333
mov dword [esp + 0xec], 0x3fe33333
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0x3fe00000
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0xd0]
push ebx
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.005127f0
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x60]
push ecx
push edx
fstp st(0)
call fcn.00514f50
add esp, 0x20
test al, al
je 0x51595d
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0050b980
add esp, 8
lea edx, [esp + 0x80]
push edx
call fcn.0050bb60
fld qword [esp + 0xf4]
fadd qword [0x5e78f0]
add esp, 4
fst qword [esp + 0xf0]
fcomp qword [0x5e2858]
fnstsw ax
test ah, 1
jne 0x515912
push 0x6206ac
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.005c0e66
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00436a50
add esp, 0xc
test al, al
je 0x5159dd
fld qword [esp + 0xe8]
fadd qword [0x5e9c30]
fst qword [esp + 0xe8]
fcomp qword [0x5e79e0]
fnstsw ax
test ah, 1
jne 0x5158fc
push 0x3002
push 0x620688
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x74]
push eax
call sub.mfc42u.dll_CFile::CFile_1
lea ecx, [esp + 0x70]
mov byte [esp + 0x360], 9
call sub.mfc42u.dll_CFile::GetLength
cmp eax, ebx
jne 0x515a14
mov dword [esp + 0x14], ebx
jmp 0x515a54
add eax, 0xfffffd78
push ebx
push eax
lea ecx, [esp + 0x78]
call sub.mfc42u.dll_CFile::Seek
lea ecx, [esp + 0xd0]
push 0x288
push ecx
lea ecx, [esp + 0x78]
call sub.mfc42u.dll_CFile::Read
mov edx, dword [esp + 0x70]
push 2
push ebx
lea ecx, [esp + 0x78]
call dword [edx + 0x30]
mov eax, dword [esp + 0x354]
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x3c]
xor edx, edx
cmp ecx, ebx
jle 0x515a8f
xor eax, eax
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
inc edx
mov dword [ecx + eax + 0x284], esi
mov ecx, dword [esp + 0x38]
mov esi, dword [ebp + 0x24]
lea edi, [ecx + eax + 0x50]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
add eax, 0x288
cmp edx, ecx
jl 0x515a60
mov eax, dword [esp + 0x50]
xor edx, edx
cmp eax, ebx
jle 0x515ace
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
inc edx
mov dword [ecx + eax + 0x284], esi
mov ecx, dword [esp + 0x4c]
mov esi, dword [ebp + 0x24]
lea edi, [ecx + eax + 0x50]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
add eax, 0x288
cmp edx, ecx
jl 0x515a9b
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + ecx*8]
lea ecx, [esp + 0x70]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x38]
shl edx, 3
push edx
push eax
call sub.mfc42u.dll_CFile::Write
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0xd0]
lea edx, [esp + 0xd0]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push 0x288
mov dword [esp + 0x358], ecx
push edx
lea ecx, [esp + 0x78]
call sub.mfc42u.dll_CFile::Write
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*8]
lea eax, [eax + eax*8]
shl eax, 3
push eax
push ecx
lea ecx, [esp + 0x78]
call sub.mfc42u.dll_CFile::Write
lea ecx, [esp + 0x70]
call sub.mfc42u.dll_CFile::Close
push ebx
push 0x61d8b8
push 0x61d8b8
call fcn.0046c700
lea edx, [esp + 0x68]
push edx
call fcn.0050bb60
lea eax, [esp + 0x30]
push 1
push eax
call fcn.004f0d90
mov ecx, dword [esp + 0x350]
mov edx, dword [esp + 0x354]
mov dword [esp + 0x2c], ecx
add esp, 0x18
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], edx
mov byte [esp + 0x360], 8
call fcn.005c111e
mov esi, 0x5f0240
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x360], 0xa
cmp eax, ebx
je 0x515bae
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5e262c
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x360], 0xb
cmp eax, ebx
je 0x515bd4
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x94], 0x5f01b8
mov eax, dword [esp + 0x98]
mov byte [esp + 0x360], 0xc
cmp eax, ebx
je 0x515bff
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e2824
mov dword [esp + 0x94], edi
mov dword [esp + 0xbc], esi
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x360], 0xd
cmp eax, ebx
je 0x515c2e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xa8], esi
mov eax, dword [esp + 0xac]
mov byte [esp + 0x360], 0xe
cmp eax, ebx
je 0x515c58
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xa8], edi
mov dword [esp + 0x5c], 0x5e78f8
mov esi, dword [esp + 0x60]
mov byte [esp + 0x360], 0xf
cmp esi, ebx
je 0x515ca3
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x515c9a
add esi, 8
lea edi, [eax]
mov ecx, esi
call fcn.0042bd50
add esi, 0x58
dec edi
jne 0x515c84
mov esi, dword [esp + 0x60]
mov edi, 0x5e262c
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x80], 0x5e78f8
mov eax, dword [esp + 0x84]
mov byte [esp + 0x360], 0x10
cmp eax, ebx
je 0x515cf7
mov ecx, dword [esp + 0x88]
cmp ecx, ebx
je 0x515cee
lea esi, [eax + 8]
lea edi, [ecx]
mov ecx, esi
call fcn.0042bd50
add esi, 0x58
dec edi
jne 0x515cd5
mov eax, dword [esp + 0x84]
mov edi, 0x5e262c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x80], edi
mov dword [esp + 0x20], 0x5e2824
mov eax, dword [esp + 0x24]
mov byte [esp + 0x360], 0x11
cmp eax, ebx
je 0x515d1f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x360], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x358]
pop edi
fld qword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret