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

Disassembly:
push 0xffffffffffffffff
push 0x402869
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov eax, dword [edi + 0x74]
push eax
call sub.MFC42.DLL_CString::CString_2
xor ebp, ebp
push 0x23
lea ecx, [esp + 0x14]
mov dword [esp + 0x9c], ebp
call sub.MFC42.DLL_CString::Find
or ebx, 0xffffffff
cmp eax, ebx
je 0x4021a1
mov ecx, dword [esp + 0x10]
movsx edx, byte [eax + ecx + 1]
lea esi, [edx - 0x61]
cmp esi, 0x15
ja case.0x40182a.102
xor edx, edx
mov dl, byte [esi + 0x40221c]
jmp dword [edx*4 + 0x402204]
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.0040236e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x4018ca
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 0x4018d8
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::operator
lea esi, [edi + 0xdc]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
cmp dword [eax - 8], ebp
je 0x4021cf
cmp byte [eax], 0x20
jne 0x401933
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 0x4018fa
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
jne 0x40197a
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 [eax + ecx - 1], 0x20
je 0x40193f
mov eax, dword [esi]
mov byte [esp + 0x98], 0
mov ecx, dword [eax - 8]
cmp ecx, ebp
lea ecx, [esp + 0x24]
je 0x4021e9
call sub.MFC42.DLL_CString::CString
jmp case.0x40182a.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.0040236e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401a36
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 0x401a44
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
lea esi, [edi + 0xd8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
cmp dword [eax - 8], ebp
je 0x4021dd
cmp byte [eax], 0x20
jne 0x401a9f
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 0x401a66
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
jne 0x401ae6
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 [eax + ecx - 1], 0x20
je 0x401aab
mov ecx, dword [esi]
mov byte [esp + 0x98], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x28]
cmp eax, ebp
je 0x4021e9
call sub.MFC42.DLL_CString::CString
jmp case.0x40182a.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.0040236e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xc
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401ba2
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 0x401bb0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
lea esi, [edi + 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 0x401c02
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 0x401bc9
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
cmp byte [eax + ecx - 1], 0x20
jne 0x401c49
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 0x401c0e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CString::CString
jmp case.0x40182a.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.0040236e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x11
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401cf8
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 0x401d06
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.0040236e
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 ebx, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [edi + 0xc8], eax
add esp, 4
mov eax, dword [ecx - 8]
mov esi, dword [edx - 8]
sub eax, esi
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 ebx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xcc], eax
mov eax, dword [esp + 0x18]
add esp, 4
mov esi, dword [ecx - 8]
lea edx, [esp + 0x74]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x14]
sub eax, esi
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 ebx
mov ecx, dword [edi + 0xc8]
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xd0], eax
mov eax, dword [edx - 8]
mov esi, dword [ecx - 8]
add esp, 4
sub eax, esi
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]
mov esi, dword [edi + 0xcc]
push eax
call ebx
add esp, 4
add eax, esi
cmp esi, ebp
mov dword [edi + 0xd4], eax
jge 0x401f0a
sub eax, esi
mov dword [edi + 0xcc], ebp
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xc8]
cmp eax, ebp
jge 0x401f28
mov ecx, dword [edi + 0xd0]
mov dword [edi + 0xc8], ebp
sub ecx, eax
mov dword [edi + 0xd0], ecx
lea ecx, [esp + 0x18]
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.0x40182a.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.0040236e
push 0x23
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x1b
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401ff4
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 0x402002
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.0040236e
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 ebx, dword [sym.imp.MSVCRT.dll_atoi]
push edx
call ebx
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
sub eax, edx
lea edx, [esp + 0x8c]
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 ebx
add esp, 4
cmp esi, ebp
mov ecx, eax
jne 0x4020f4
cmp ecx, ebp
jne 0x4020f4
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call ebx
cdq
sub eax, edx
push 0x11
mov esi, eax
sar esi, 1
call ebx
push 4
mov ebp, eax
call ebx
add eax, ebp
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [edi + 0xd4]
mov edx, dword [edi + 0xcc]
lea ebp, [edi + 0xc8]
add eax, edx
cdq
sub eax, edx
mov edx, dword [ebp]
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, edx
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ecx, ebx
sub esi, eax
push ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0xcc]
test eax, eax
jge 0x40214b
mov ecx, dword [edi + 0xd4]
mov dword [edi + 0xcc], 0
sub ecx, eax
mov dword [edi + 0xd4], ecx
mov eax, dword [ebp]
test eax, eax
jge 0x402167
mov ecx, dword [edi + 0xd0]
mov dword [ebp], 0
sub ecx, eax
mov dword [edi + 0xd0], ecx
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
xor ebp, ebp
push 0x23
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40180d
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 0x4021e9
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 0x4021b6