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

Disassembly:
push 0xffffffffffffffff
push 0x5d70fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::CString_3
xor ebx, ebx
mov dword [esp + 0x28], 0x5f01d8
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0xf0]
mov byte [esp + 0xd8], 1
mov esi, dword [edi + 8]
cmp esi, ebx
jne 0x513b77
mov dword [esp + 0x34], ebx
xor eax, eax
jmp 0x513b98
lea eax, [esi*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x34], esi
mov eax, esi
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x30], eax
jle 0x513bd4
xor edx, edx
mov esi, dword [edi + 4]
mov eax, edx
add eax, esi
mov esi, dword [esp + 0x2c]
add edx, 0x220
mov dword [esi + ecx*4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
inc ecx
mov esi, dword [eax + 0x40]
mov dword [eax + 0x48], esi
mov esi, dword [eax + 0x44]
mov dword [eax + 0x4c], esi
mov eax, dword [esp + 0x30]
cmp ecx, eax
jl 0x513ba4
mov ecx, dword [esp + 0x2c]
push 0x50d2f0
push 4
push eax
push ecx
call dword [sym.imp.msvcrt.dll_qsort]
mov eax, 0x5e2824
add esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov ebp, dword [esp + 0xe8]
xor edi, edi
mov byte [esp + 0xd8], 3
cmp dword [ebp + 8], ebx
jle 0x513cb4
fld qword [esp + 0xf4]
fsub qword [0x5e46c8]
fstp qword [esp + 0x6c]
fld qword [esp + 0xf4]
fchs
fstp qword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edx, dword [ebp + 4]
mov esi, dword [edx + edi*4]
mov ecx, esi
call fcn.0050b020
fld qword [eax]
fcomp qword [esp + 0x6c]
push esi
fnstsw ax
test ah, 1
je 0x513c82
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x5c]
push eax
call fcn.0040c9d0
mov edx, dword [esi]
push 0
jmp 0x513c94
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.0040c9d0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push 0
push 0
push ebx
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x513c53
xor ebx, ebx
mov edx, dword [esp + 0xec]
push ebx
push edx
call fcn.004f0d90
add esp, 8
mov dword [esp + 0x88], 0x5f01d8
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x9c], 0x5e78f8
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x44], 0x5e2824
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xd8], 6
cmp eax, ebx
mov dword [esp + 0x6c], ebx
jne 0x513d47
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x30], ebx
je 0x514110
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x4c]
call fcn.0046d900
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebx
jle 0x513db3
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
mov esi, dword [eax + ebp*4]
mov eax, dword [esp + 0x50]
add esi, 8
mov edi, eax
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0046d900
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edx + edi*4]
mov edx, eax
dec eax
test edx, edx
je 0x513daa
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x513d9d
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jl 0x513d67
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0050b980
mov edx, dword [esp + 0x38]
add esp, 8
lea ecx, [esp + 0x88]
push 0xffffffffffffffff
push edx
call fcn.0046d900
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
cmp edx, ebx
je 0x513dfb
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x513dee
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x4c]
call fcn.0046d900
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
cmp edx, ebx
je 0x513e28
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x513e1b
mov ebp, dword [esp + 0xe4]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
call fcn.00512fd0
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x60]
call fcn.0046d900
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x513e7c
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x513e6f
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.004f0d90
mov ecx, dword [esp + 0x74]
add esp, 8
inc ecx
cmp edi, ebx
mov dword [esp + 0x6c], ecx
je 0x513f1c
mov esi, 1
cmp edi, esi
je 0x513f1c
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00436a50
add esp, 0xc
test al, al
je 0x513f1c
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x513ed0
cmp dword [esp + 0x1c], ebx
je 0x513f1c
cmp dword [esp + 0xe0], esi
je 0x513f1c
jmp 0x513edf
cmp dword [esp + 0x1c], eax
jle 0x513edf
cmp dword [esp + 0xe0], esi
je 0x513f1c
fld qword [esp + 0xfc]
push ebx
push ebx
sub esp, 8
lea edx, [esp + 0x68]
fchs
fstp qword [esp]
push edx
call fcn.004f0c50
add esp, 0x14
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
push ebx
call fcn.0046d900
cmp dword [esp + 0x30], ebx
jne 0x513d51
mov ebp, dword [esp + 0xe4]
jmp 0x513f26
cmp dword [esp + 0x30], ebx
jne 0x514110
cmp dword [esp + 0x90], 3
jle 0x514110
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00436a50
add esp, 0xc
test al, al
je 0x514110
mov edi, 0x5e78f8
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x74]
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0xe0], 7
call fcn.0050b980
mov eax, dword [esp + 0x24]
add esp, 8
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jle 0x513fd4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
call fcn.0050b020
fld qword [eax + 0x10]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x513fcb
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4]
call fcn.0050b020
fld qword [eax + 0x10]
fstp qword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x513f9e
lea edx, [esp + 0x9c]
push edx
call fcn.0050bb60
mov eax, dword [esp + 0xe4]
add esp, 4
cmp eax, 3
jne 0x514013
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x104]
add eax, 0x14
imul eax, dword [esp + 0x108]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esi], ecx
jmp 0x514032
mov eax, dword [esp + 0x108]
mov esi, dword [esp + 0x104]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 4
mov dword [esi], edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x88]
push esi
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
push ebp
call fcn.00511030
fcomp qword [esp + 0x54]
add esp, 0x18
fnstsw ax
test ah, 1
je 0x5140b9
push ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00436a50
add esp, 0xc
test al, al
je 0x5140c6
lea edx, [esp + 0x74]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0050b980
mov eax, dword [esp + 0xe8]
add esp, 8
cmp eax, 3
jne 0x5140c6
lea ecx, [esp + 0x9c]
push esi
lea edx, [esp + 0x8c]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
push ebp
call fcn.005129e0
add esp, 0x14
test al, al
jne 0x5140c6
lea ecx, [esp + 0x74]
push ecx
jmp 0x5140be
lea edx, [esp + 0x74]
push edx
call fcn.0050bb60
add esp, 4
mov dword [esp + 0x74], edi
mov esi, dword [esp + 0x78]
mov byte [esp + 0xd8], 8
cmp esi, ebx
je 0x5140fd
mov edi, dword [esp + 0x7c]
cmp edi, ebx
je 0x5140f4
push ebx
mov ecx, esi
call fcn.00464ac0
add esi, 0x58
dec edi
jne 0x5140e2
mov esi, dword [esp + 0x78]
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebp, 0x5e262c
mov byte [esp + 0xd8], 6
mov dword [esp + 0x74], ebp
jmp 0x514115
mov ebp, 0x5e262c
lea ecx, [esp + 0xb0]
call fcn.004b6ca0
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x58]
push eax
push ecx
mov byte [esp + 0xe0], 9
call fcn.0050b890
mov ecx, dword [esp + 0xec]
add esp, 8
push ebx
push ebx
call fcn.0050b020
fld qword [eax]
fsub qword [esp + 0xb8]
sub esp, 8
lea edx, [esp + 0x68]
fstp qword [esp]
push edx
call fcn.004f0c50
add esp, 0x14
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::Empty
mov eax, dword [esp + 0xec]
push ebx
push eax
call fcn.004f0d90
lea ecx, [esp + 0x60]
push 1
push ecx
call fcn.004f0d90
push ebx
lea edx, [esp + 0x24]
push 1
push edx
call fcn.00436a50
add esp, 0x1c
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd8], 6
call fcn.0042bd50
mov dword [esp + 0x44], 0x5e2824
mov eax, dword [esp + 0x48]
mov byte [esp + 0xd8], 0xa
cmp eax, ebx
je 0x5141d0
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x9c], 0x5e78f8
mov esi, dword [esp + 0xa0]
mov byte [esp + 0xd8], 0xb
cmp esi, ebx
je 0x51421b
mov edi, dword [esp + 0xa4]
cmp edi, ebx
je 0x514212
push ebx
mov ecx, esi
call fcn.00464ac0
add esi, 0x58
dec edi
jne 0x5141fd
mov esi, dword [esp + 0xa0]
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5f01d8
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x88], edi
mov eax, dword [esp + 0x8c]
mov byte [esp + 0xd8], 0xc
cmp eax, ebx
je 0x51424a
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e2824
mov dword [esp + 0x88], ebp
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x5c]
mov byte [esp + 0xd8], 0xd
cmp eax, ebx
je 0x514273
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0xd8], 0xe
cmp eax, ebx
je 0x514294
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xd8], 0xf
cmp eax, ebx
je 0x5142b5
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebp
mov dword [esp + 0xd8], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret