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

Disassembly:
push 0xffffffffffffffff
push 0x4027f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
mov eax, dword [ebp + 0x74]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x23
lea ecx, [esp + 0x14]
mov dword [esp + 0x9c], 0
call sub.MFC42.DLL_CString::Find
or edi, 0xffffffff
cmp eax, edi
je 0x402136
mov ecx, dword [esp + 0x10]
movsx edx, byte [eax + ecx + 1]
lea esi, [edx - 0x61]
cmp esi, 0x15
ja case.0x40182c.102
xor edx, edx
mov dl, byte [esi + 0x4021b0]
jmp dword [edx*4 + 0x402198]
mov ecx, dword [ecx - 8]
sub ecx, eax
lea eax, [esp + 0x30]
sub ecx, 2
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.004022fe
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::Find
cmp eax, edi
je 0x4018cc
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 2
call sub.MFC42.DLL_CString::CString
jmp 0x4018da
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::operator
lea esi, [ebp + 0xdc]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402164
cmp byte [eax], 0x20
jne 0x401937
mov eax, dword [eax - 8]
lea ecx, [esp + 0x38]
dec eax
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, esi
mov byte [esp + 0x9c], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x98], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
cmp byte [eax], 0x20
je 0x4018fe
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
jne 0x40197e
dec eax
lea edx, [esp + 0x3c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x9c], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
je 0x401943
mov eax, dword [esi]
mov byte [esp + 0x98], 0
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x24]
je 0x40217e
call sub.MFC42.DLL_CString::CString
jmp case.0x40182c.102
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 2
push ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call fcn.004022fe
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::Find
cmp eax, edi
je 0x401a3a
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_CString::CString
jmp 0x401a48
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
lea esi, [ebp + 0xd8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402172
cmp byte [eax], 0x20
jne 0x401aa5
mov eax, dword [eax - 8]
lea edx, [esp + 0x48]
dec eax
mov ecx, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, esi
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x48]
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
cmp byte [eax], 0x20
je 0x401a6c
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
jne 0x401aec
dec eax
mov ecx, esi
push eax
lea eax, [esp + 0x50]
push eax
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x9c], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
je 0x401ab1
mov ecx, dword [esi]
mov byte [esp + 0x98], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
test eax, eax
je 0x40217e
call sub.MFC42.DLL_CString::CString
jmp case.0x40182c.102
mov ecx, dword [ecx - 8]
lea edx, [esp + 0x50]
sub ecx, eax
sub ecx, 2
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
call fcn.004022fe
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xc
call sub.MFC42.DLL_CString::Find
cmp eax, edi
je 0x401ba8
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::CString
jmp 0x401bb6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
lea esi, [ebp + 0xc4]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
cmp byte [eax], 0x20
jne 0x401c08
mov eax, dword [eax - 8]
mov ecx, esi
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, esi
mov byte [esp + 0x9c], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
cmp byte [eax], 0x20
je 0x401bcf
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
jne 0x401c4f
dec eax
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x9c], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
je 0x401c14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
jmp case.0x40182c.102
mov ecx, dword [ecx - 8]
lea edx, [esp + 0x60]
sub ecx, eax
sub ecx, 2
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x10
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x60]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call fcn.004022fe
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x11
call sub.MFC42.DLL_CString::Find
cmp eax, edi
je 0x401cfe
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x64]
mov byte [esp + 0x98], 0x11
call sub.MFC42.DLL_CString::CString
jmp 0x401d0c
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Remove
lea ecx, [esp + 0x18]
call fcn.004022fe
push 0x2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x13
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x68]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0x14
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x68]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0xc8], eax
add esp, 4
mov eax, dword [ecx - 8]
mov ebx, dword [edx - 8]
sub eax, ebx
lea ecx, [esp + 0x14]
dec eax
push eax
lea eax, [esp + 0x70]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
push 0x2c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0xcc], eax
mov eax, dword [esp + 0x18]
add esp, 4
mov ebx, dword [ecx - 8]
lea edx, [esp + 0x74]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x14]
sub eax, ebx
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x17
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
push 0x2c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 0x18
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [ebp + 0xc8]
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0xd0], eax
mov eax, dword [edx - 8]
mov ebx, dword [ecx - 8]
add esp, 4
sub eax, ebx
lea edx, [esp + 0x7c]
dec eax
lea ecx, [esp + 0x14]
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0x19
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [ebp + 0xcc]
add esp, 4
add eax, ecx
lea ecx, [esp + 0x18]
mov dword [ebp + 0xd4], eax
mov byte [esp + 0x98], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
jmp case.0x40182c.102
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 2
push ecx
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1a
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x80]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call fcn.004022fe
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1b
call sub.MFC42.DLL_CString::Find
cmp eax, edi
je 0x401fca
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x84]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 0x1c
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x84]
mov byte [esp + 0x98], 0x1b
call sub.MFC42.DLL_CString::CString
jmp 0x401fd8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push 0x20
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Remove
lea ecx, [esp + 0x20]
call fcn.004022fe
push 0x2c
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 0x1d
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 0x1e
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x88]
mov byte [esp + 0x98], 0x1d
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push edx
call edi
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
mov ebx, dword [ecx - 8]
lea edx, [esp + 0x8c]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
sub eax, ebx
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 0x1f
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x8c]
mov byte [esp + 0x98], 0x1d
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
push eax
call edi
add esp, 4
mov edi, eax
test esi, esi
jne 0x4020ca
test edi, edi
jne 0x4020ca
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call edi
cdq
sub eax, edx
push 0x11
mov esi, eax
sar esi, 1
call edi
push 4
mov ebx, eax
call edi
add eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, dword [ebp + 0xd4]
mov edx, dword [ebp + 0xcc]
lea ecx, [ebp + 0xc8]
add eax, edx
cdq
sub eax, edx
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [ecx + 8]
add eax, edx
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub edi, ebx
sub esi, eax
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
or edi, 0xffffffff
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, edi
jne 0x40180f
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x24]
jmp 0x40217e
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40214b