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

Disassembly:
push 0xffffffffffffffff
push 0x4bcf83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], esi
call fcn.004961f0
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0xb8], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xb4], 1
test ah, 0xf
jne 0x497c24
mov dword [esp + 0x2c], 0x100
push 0x4df68c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
push 0x4df68c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4e58d8
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x497c85
lea ecx, [esp + 0x14]
call fcn.00423170
test eax, eax
jne 0x498717
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x498717
lea edx, [esp + 0x14]
mov ecx, esi
push edx
jmp 0x498cb0
mov eax, dword [esp + 0x2c]
mov ecx, eax
and ecx, 0xf00
cmp ecx, 0x100
je 0x498174
cmp ecx, 0x200
je 0x497cc6
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
lea eax, [esp + 0xa4]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4df1dc
push eax
call ebp
add esp, 8
test eax, eax
jne 0x497cf9
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x497cf9
mov bl, 1
jmp 0x497cfb
xor bl, bl
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x497d2c
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
push 0x4df1dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x4df1dc
push 0x4e2838
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
je 0x497d68
push 0x4df1dc
push 0x4e2838
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
jne 0x497d51
lea ecx, [esp + 0x6c]
push 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x4df1dc
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x6c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x497e3b
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx]
cmp edi, ebx
je 0x497dd6
mov esi, edi
mov edi, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x24], ecx
jne 0x497da5
push 0x4df1dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [esp + 0xc0]
or ebp, 0xffffffff
test eax, eax
je 0x497ef6
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, ebp
jne 0x497e69
push 0x4e161c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebp
jne 0x497fd4
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov dword [esp + 0x18], 0
jmp 0x498986
lea ecx, [esp + 0x14]
call fcn.00423170
test eax, eax
je 0x497dd6
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
lea esi, [edi + 1]
lea ecx, [esp + 0x10]
push esi
push 0x4e161c
call sub.MFC42.DLL_CString::Find_3
cmp eax, ebp
jne 0x497fd4
lea ecx, [esp + 0x90]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0xbc]
push eax
mov byte [esp + 0xb8], 0x14
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x90]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xa0]
push edi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0x15
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4e161c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 1
jne 0x498012
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx]
cmp edi, ebx
je 0x497f48
mov esi, edi
mov edi, dword [edi]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [edx + 4], eax
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x24], ecx
jne 0x497f17
lea ecx, [esp + 0xa8]
push 2
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0x16
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x4c]
push 2
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df1dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
push 0x4e161c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebp
je 0x498016
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], ebp
lea ecx, [esp + 0x14]
call fcn.00496360
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 8
cmp eax, ebp
jne 0x497fd4
push 0x4df1dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, ebp
je 0x4980fd
lea eax, [esp + 0x7c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x20]
push 0xc
mov byte [esp + 0xb8], 0x18
mov ebx, dword [edi + 4]
lea ebp, [edi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test edi, edi
jne 0x498063
mov edi, eax
test ebx, ebx
mov dword [eax], edi
jne 0x49806b
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [ebp], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [eax + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], ecx
test ecx, ecx
mov byte [esp + 0xb4], 0x19
je 0x498097
mov edx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x7c]
inc ebx
mov byte [esp + 0xb4], 1
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString
inc esi
lea eax, [esp + 0x54]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0x1a
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df1dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x49802e
mov ecx, dword [esp + 0x10]
push 0x4e58d8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x498c9f
mov esi, dword [esp + 0x20]
push 0xc
mov ebx, dword [esi + 4]
lea edi, [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test esi, esi
jne 0x498132
mov esi, eax
test ebx, ebx
mov dword [eax], esi
jne 0x49813a
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0xb4], 0x1b
je 0x498167
lea edx, [esp + 0x10]
mov ecx, eax
push edx
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0xb4], 1
jmp 0x498c9b
and eax, 0xf
dec eax
je 0x49892b
sub eax, 3
je 0x49855a
sub eax, 4
jne 0x4981d6
push 0x2f
push 0x2e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x94]
push eax
push 0x4df98c
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x94]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df98c
push 0x4df1dc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x4df98c
push 0x4e366c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
je 0x498217
push 0x4df98c
push 0x4e366c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
jne 0x498200
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x2f
jne 0x4982c8
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx]
cmp edi, ebx
je 0x498277
mov eax, edi
mov edi, dword [edi]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00426e60
mov esi, dword [eax]
push 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [edx + 4], eax
call fcn.00416090
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x24], ecx
jne 0x49822e
mov ecx, dword [esp + 0x10]
push 0x4df98c
push ecx
call ebp
add esp, 8
test eax, eax
je 0x498298
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea edx, [esp + 0x5c]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4df98c
push eax
call ebp
mov edi, dword [esp + 0xc8]
add esp, 8
test eax, eax
jne 0x4982f6
test edi, edi
je 0x4982f6
mov bl, 1
jmp 0x4982f8
lea ecx, [esp + 0x14]
call fcn.00423170
test eax, eax
je 0x498298
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
xor bl, bl
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x498326
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x2f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test edi, edi
mov esi, eax
je 0x4983ef
cmp esi, 0xffffffff
jne 0x498371
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
push ecx
jmp 0x498cac
lea edx, [esi + 1]
lea eax, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0xbc]
push eax
mov byte [esp + 0xb8], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x84]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x4984e0
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x20]
push 0xc
mov byte [esp + 0xb8], 0x10
mov ebx, dword [edi + 4]
lea ebp, [edi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test edi, edi
jne 0x49843d
mov edi, eax
test ebx, ebx
mov dword [eax], edi
jne 0x498445
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [ebp], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [eax + 8]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x3c], ecx
test ecx, ecx
mov byte [esp + 0xb4], 0x11
je 0x498474
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
inc ebx
mov byte [esp + 0xb4], 1
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x8c]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x498408
mov edx, dword [esp + 0x10]
push 0x4e58d8
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x498c9f
mov esi, dword [esp + 0x20]
push 0xc
mov ebx, dword [esi + 4]
lea edi, [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test esi, esi
jne 0x498515
mov esi, eax
test ebx, ebx
mov dword [eax], esi
jne 0x49851d
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x98], eax
test eax, eax
mov byte [esp + 0xb4], 0x13
je 0x49854d
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0xb4], 1
jmp 0x498c9b
push 0x4df98c
push 0x4df1dc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x4df98c
push 0x4e366c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
je 0x49859b
push 0x4df98c
push 0x4e366c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
jne 0x498584
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, 2
jl 0x4985d9
cmp byte [eax + 1], 0x3a
jne 0x4985d9
mov eax, dword [esp + 0x20]
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x4986aa
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0043d4a0
cmp esi, edi
jne 0x4985bd
jmp 0x4986aa
cmp byte [eax], 0x2f
jne 0x4986aa
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb4], 8
test eax, eax
jne 0x49860b
push 0x4e5168
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
jmp 0x49861e
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
mov eax, dword [eax]
add eax, 8
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x20]
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x498645
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0043d4a0
cmp esi, edi
jne 0x49862a
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 4]
lea edi, [eax + 4]
push 0xc
mov esi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
test esi, esi
jne 0x49865d
mov esi, eax
test ebx, ebx
mov dword [eax], esi
mov ecx, ebx
jne 0x498667
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [edi], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x30]
push edx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00416040
mov ecx, dword [esp + 0x2c]
add esp, 8
inc ecx
mov dword [esp + 0x24], ecx
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call fcn.00423170
test eax, eax
je 0x4986d8
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
lea eax, [esp + 0x74]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4df98c
push eax
call ebp
mov edi, dword [esp + 0xc8]
add esp, 8
test eax, eax
jne 0x498708
test edi, edi
je 0x498708
mov bl, 1
jmp 0x49870a
xor bl, bl
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x498738
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
jmp 0x497fec
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x2f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test edi, edi
mov esi, eax
je 0x498801
cmp esi, 0xffffffff
jne 0x498783
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc0]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0
push edx
jmp 0x498cac
lea eax, [esi + 1]
lea ecx, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0xbc]
push eax
mov byte [esp + 0xb8], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x9c]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x48]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x48]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x4988da
lea eax, [esp + 0x50]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ebx, eax
mov ebp, dword [esp + 0x20]
push 0xc
mov byte [esp + 0xb8], 0xb
mov ecx, dword [ebp + 4]
lea edi, [ebp + 4]
mov dword [esp + 0x38], ecx
call sub.MFC42.DLL_operatornew
add esp, 4
test ebp, ebp
jne 0x498851
mov ebp, eax
mov ecx, dword [esp + 0x34]
mov dword [eax], ebp
test ecx, ecx
jne 0x49885d
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [edi], eax
mov ecx, dword [eax + 4]
push ebx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00416040
mov ebx, dword [esp + 0x2c]
add esp, 8
inc ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], ebx
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
inc esi
lea edx, [esp + 0x58]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x58]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4df98c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x49881a
mov eax, dword [esp + 0x10]
push 0x4e58d8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x498c9f
mov esi, dword [esp + 0x20]
push 0xc
mov ebx, dword [esi + 4]
lea edi, [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test esi, esi
jne 0x49890f
mov esi, eax
test ebx, ebx
mov dword [eax], esi
jne 0x498917
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x498c8f
push 0x4e515c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
push 0x5d
lea ecx, [esp + 0x14]
jne 0x4989e8
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebp
jne 0x497fd4
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x4989b1
lea ecx, [esp + 0x14]
call fcn.00423170
test eax, eax
jne 0x497fd4
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
call fcn.00497150
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], ebp
jmp 0x498cd1
push 0x4e16e0
push 0x4e1890
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
je 0x498b63
push 0x4e16e0
push 0x4e1890
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
test eax, eax
jne 0x4989cc
jmp 0x498b63
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, ebp
je 0x497fd4
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x498a13
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
cmp esi, eax
jne 0x498a23
jmp 0x497fd4
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
dec eax
cmp esi, eax
jne 0x497fd4
cmp esi, edi
jle 0x497fd4
test ecx, ecx
je 0x498a67
lea ecx, [esi + 2]
lea edx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [esp + 0xbc]
push eax
mov byte [esp + 0xb8], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x60]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x68]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x68]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x498ad1
lea ecx, [esp + 0x70]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x498adf
push 0x4e58d8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x20]
mov ebx, eax
mov esi, dword [eax]
cmp esi, eax
je 0x498b02
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0043d4a0
cmp esi, ebx
jne 0x498aeb
inc edi
lea eax, [esp + 0x78]
push edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4e515c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
push 0x4e5154
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::Find_2
cmp esi, ebp
jne 0x497fd4
cmp eax, ebp
jne 0x497fd4
push 0x4e16e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, ebp
je 0x498c47
lea ecx, [esp + 0x80]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov ebx, eax
mov ebp, dword [esp + 0x20]
push 0xc
mov byte [esp + 0xb8], 6
mov edx, dword [ebp + 4]
lea edi, [ebp + 4]
mov dword [esp + 0x38], edx
call sub.MFC42.DLL_operatornew
add esp, 4
test ebp, ebp
jne 0x498bb5
mov ebp, eax
mov ecx, dword [esp + 0x34]
mov dword [eax], ebp
test ecx, ecx
jne 0x498bc1
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [edi], eax
mov ecx, dword [eax + 4]
push ebx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00416040
mov ebx, dword [esp + 0x2c]
add esp, 8
inc ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x24], ebx
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
inc esi
lea eax, [esp + 0x88]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
push 0x4e16e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x498b7b
mov ecx, dword [esp + 0x10]
push 0x4e58d8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x498c9f
mov esi, dword [esp + 0x20]
push 0xc
mov ebx, dword [esi + 4]
lea edi, [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
test esi, esi
jne 0x498c78
mov esi, eax
test ebx, ebx
mov dword [eax], esi
jne 0x498c80
mov ebx, eax
mov dword [eax + 4], ebx
mov dword [edi], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00416040
add esp, 8
inc dword [esp + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
mov ecx, dword [esp + 0x3c]
call fcn.00497150
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00496360
mov eax, 1
jmp 0x497ff7