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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402819
push eax
mov dword fs:[0], esp
sub esp, 0x80
xor eax, eax
push ebx
push ebp
mov ebp, ecx
push esi
or ebx, 0xffffffff
push edi
mov edx, dword [ebp + 0x74]
mov ecx, ebx
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4021b4
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x23
lea ecx, [esp + 0x14]
mov dword [esp + 0x9c], 0
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x402157
mov ecx, dword [esp + 0x10]
movsx edx, byte [eax + ecx + 1]
lea esi, [edx - 0x61]
cmp esi, 0x15
ja case.0x40184d.102
xor edx, edx
mov dl, byte [esi + 0x4021d0]
jmp dword [edx*4 + 0x4021b8]
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.0040231e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x4018ed
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 0x4018fb
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 0x402185
cmp byte [eax], 0x20
jne 0x401958
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 0x40191f
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
jne 0x40199f
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 0x401964
mov eax, dword [esi]
mov byte [esp + 0x98], 0
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x24]
je 0x40219f
call sub.MFC42.DLL_CString::CString
jmp case.0x40184d.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.0040231e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401a5b
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 0x401a69
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 0x402193
cmp byte [eax], 0x20
jne 0x401ac6
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 0x401a8d
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [ecx + eax - 1], 0x20
jne 0x401b0d
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 0x401ad2
mov ecx, dword [esi]
mov byte [esp + 0x98], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
test eax, eax
je 0x40219f
call sub.MFC42.DLL_CString::CString
jmp case.0x40184d.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.0040231e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xc
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401bc9
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 0x401bd7
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 0x401c29
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 0x401bf0
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
jne 0x401c70
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 0x401c35
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
jmp case.0x40184d.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.0040231e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x11
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401d1f
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 0x401d2d
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.0040231e
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 edi, dword [edx - 8]
sub eax, edi
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 edi, dword [ecx - 8]
lea edx, [esp + 0x74]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x14]
sub eax, edi
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 edi, dword [ecx - 8]
add esp, 4
sub eax, edi
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.0x40184d.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.0040231e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1b
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401feb
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 0x401ff9
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.0040231e
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 0x4020eb
test edi, edi
jne 0x4020eb
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 ebx, 0xffffffff
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401830
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], ebx
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 0x40219f
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40216c