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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d09b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], 0x5ec09c
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov eax, dword [edi + 0x800]
mov dword [esp + 0x68], edx
cmp eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
jle 0x49b820
mov eax, dword [edi + 0x7fc]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x148]
cmp dword [edi + edx*4 + 0xc04], eax
jne 0x49b7fb
mov ecx, esi
call fcn.004ed430
test al, al
jne 0x49b7f7
mov ecx, esi
call fcn.004eb780
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x1c]
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x49b7f7
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test edx, edx
jle 0x49b6f3
mov edi, dword [esi + 0x1c0]
mov ecx, ebx
cmp dword [ecx], edi
je 0x49b6ef
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x49b6e3
mov edi, dword [esp + 0x10]
cmp eax, edx
jne 0x49b7e9
lea ecx, [esp + 0x58]
call sub.mfc42u.dll_CString::CString_3
mov eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x194]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1c0]
add esi, 0x1b8
mov dword [esp + 0x54], ecx
mov ecx, esi
mov byte [esp + 0x68], 1
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], eax
call fcn.004b0a70
push eax
lea ecx, [esp + 0x5c]
call sub.mfc42u.dll_CString::operator_2
mov edx, dword [esp + 0x48]
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x38], esp
mov dword [eax], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
lea edx, [esp + 0x70]
mov dword [eax + 0xc], ecx
push edx
lea ecx, [eax + 0x10]
call sub.mfc42u.dll_CString::CString_1
lea ecx, [esp + 0x4c]
call fcn.0049d970
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
add ecx, 0x3e8
mov dword [esp + 0x24], eax
add eax, 0x3e8
mov dword [esp + 0x30], ecx
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004b0a70
mov eax, dword [eax]
mov edx, dword [ebp + 8]
lea ebx, [esp + 0x24]
push 0x520
mov ecx, dword [eax - 8]
mov esi, dword [edx]
push ebx
push ecx
push eax
mov ecx, edx
call dword [esi + 0x70]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub eax, edx
cmp ecx, eax
jg 0x49b7d9
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x68], 0
call sub.mfc42u.dll_CString::CString
jmp 0x49b7f7
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*8 + 4]
lea eax, [ebx + eax*8 + 4]
inc ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x800]
inc edx
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x49b67f
mov eax, dword [esp + 0x14]
xor edx, edx
cmp eax, edx
jne 0x49b857
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], 0x5ec09c
cmp esi, edx
mov dword [esp + 0x68], 2
je 0x49baeb
cmp ecx, edx
je 0x49b84d
lea ebx, [ecx]
push 0
mov ecx, esi
call fcn.0049def0
add esi, 0x18
dec ebx
jne 0x49b83e
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x49bae3
cmp ecx, edx
jle 0x49b952
mov ebx, 1
xor edi, edi
mov dword [esp + 0x1c], ebx
cmp ebx, ecx
jge 0x49b93f
lea esi, [edi + 0x18]
mov eax, dword [esp + 0x38]
fld qword [esi + eax + 8]
fcomp qword [edi + eax + 8]
fnstsw ax
test ah, 0x41
jne 0x49b92f
lea ecx, [esp + 0x58]
call sub.mfc42u.dll_CString::CString_3
mov eax, dword [esp + 0x38]
mov byte [esp + 0x68], 3
mov edx, dword [esi + eax]
mov dword [esp + 0x48], edx
mov ecx, dword [esi + eax + 4]
mov dword [esp + 0x4c], ecx
lea edx, [esi + eax + 0x10]
fld qword [esi + eax + 8]
push edx
lea ecx, [esp + 0x5c]
fstp qword [esp + 0x54]
call sub.mfc42u.dll_CString::operator_2
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + ecx]
lea eax, [edi + ecx]
add ecx, esi
add eax, 0x10
push eax
mov dword [ecx], edx
mov edx, dword [eax - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [eax - 8]
mov dword [ecx + 8], edx
mov edx, dword [eax - 4]
mov dword [ecx + 0xc], edx
add ecx, 0x10
call sub.mfc42u.dll_CString::operator_2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
add eax, edi
mov dword [eax], ecx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x58]
mov dword [eax + 0xc], edx
push ecx
lea ecx, [eax + 0x10]
call sub.mfc42u.dll_CString::operator_2
lea ecx, [esp + 0x58]
mov byte [esp + 0x68], 0
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x3c]
inc ebx
add esi, 0x18
cmp ebx, ecx
jl 0x49b875
mov ebx, dword [esp + 0x1c]
inc ebx
add edi, 0x18
mov dword [esp + 0x1c], ebx
lea edx, [ebx - 1]
cmp edx, ecx
jl 0x49b86a
lea ecx, [esp + 0x18]
call sub.mfc42u.dll_CString::CString_3
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x68], 4
mov ecx, dword [eax + 0x1c]
push ecx
push 0x61e020
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea edx, [esp + 0x1c]
push eax
push edx
call sub.mfc42u.dll_CString::Format_1
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edi
push ebx
call fcn.00497200
push 0x61ca4c
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.005c0fb0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push ebx
mov byte [esp + 0x78], 5
call fcn.00497200
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x68], 4
call sub.mfc42u.dll_CString::CString
mov eax, dword [0x6274d4]
test eax, eax
je 0x49b9eb
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
lea eax, [eax + eax*2]
lea ebx, [ecx + eax*2]
jmp 0x49b9f6
mov eax, dword [esp + 0x14]
mov edx, edi
sub edx, esi
lea ebx, [eax + edx*4]
lea eax, [edi + esi]
xor esi, esi
cdq
sub eax, edx
mov dword [esp + 0x14], esi
mov edi, eax
mov eax, dword [esp + 0x3c]
sar edi, 1
cmp eax, esi
jle 0x49ba9e
cmp dword [ebp + 0x1c], 1
jne 0x49ba3d
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + esi + 4]
lea edx, [eax + esi + 0x10]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
push edi
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00497500
mov edi, eax
jmp 0x49ba86
mov edx, dword [esp + 0x14]
and edx, 0x80000001
jns 0x49ba4e
dec edx
or edx, 0xfffffffe
inc edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + esi + 4]
lea edx, [eax + esi + 0x10]
mov eax, dword [ebp + 0x14]
push ecx
push edx
push ebx
push edi
je 0x49ba78
mov edx, dword [ebp + 8]
lea ecx, [ebx + eax]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00497500
mov edi, eax
jmp 0x49ba86
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00497500
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x49ba12
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x34], 0x5ec09c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], 6
test eax, eax
je 0x49baeb
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x49bae2
lea esi, [eax + 0x10]
lea edi, [ecx]
mov ecx, esi
call sub.mfc42u.dll_CString::CString
add esi, 0x18
dec edi
jne 0x49bad1
mov eax, dword [esp + 0x38]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18