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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x569550
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x444]
cmp eax, 1
jl 0x4227dd
cmp eax, 3
jg 0x4227dd
mov eax, dword [ebx + 0xac]
cmp eax, 2
je 0x422247
cmp eax, 3
jne 0x4227dd
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
push 0x5d0258
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x74], 1
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
add ecx, 0x25
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
add eax, 0xd
mov dword [esp + 0x28], ecx
push 0x5d0248
lea ecx, [esp + 8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebx + 0x444]
cmp eax, 1
jne 0x4222d2
push 0x5d0024
lea ecx, [esp + 8]
call fcn.00564d16
push 0x5d0024
jmp 0x422304
cmp eax, 2
jne 0x4222ec
push 0x5d0008
lea ecx, [esp + 8]
call fcn.00564d16
push 0x5d0008
jmp 0x422304
cmp eax, 3
jne 0x42230d
push 0x5cffec
lea ecx, [esp + 8]
call fcn.00564d16
push 0x5cffec
lea ecx, [esp + 0x14]
call fcn.00564d16
push ebp
push esi
push edi
push 0x5d0244
lea ecx, [esp + 0x20]
call fcn.00564d16
push 0x5d0238
lea ecx, [esp + 0x14]
call fcn.00564d16
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00564cce
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CString::CString_3
push 0x5cf448
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 3
call sub.MFC42.DLL_CString::Find_2
mov esi, dword [esp + 0x80]
mov ebp, dword [sym.imp.USER32.dll_DrawTextA]
mov edi, eax
cmp edi, 0xffffffff
je 0x422522
lea ecx, [esp + 0x80]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
inc edi
lea edx, [esp + 0x20]
push edi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
push 0x5cf448
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x422455
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov edx, dword [ebx + 0xa4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push 0x420
push eax
push 0xffffffffffffffff
push ecx
push esi
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push 0x20
push edx
push 0xffffffffffffffff
push eax
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], edx
sub eax, ecx
push 0
lea edx, [esp + 0x44]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0xa8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0x20
push ecx
push 0xffffffffffffffff
push edx
push esi
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub eax, ecx
lea ecx, [esp + 0x30]
add eax, 6
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp edi, 0xffffffff
jne 0x422373
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x42267a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
cmp edi, 0xffffffff
je 0x4225b8
lea edx, [esp + 0x80]
push edi
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x80]
push edi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.USER32.dll_SetRectEmpty]
lea ecx, [esp + 0x60]
push ecx
call edi
mov edx, dword [ebx + 0xa4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push 0x420
push eax
push 0xffffffffffffffff
push ecx
push esi
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push 0x20
push edx
push 0xffffffffffffffff
push eax
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], edx
sub eax, ecx
push 0
lea edx, [esp + 0x44]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0xa8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0x20
push ecx
push 0xffffffffffffffff
push edx
push esi
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 0x40]
push eax
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub eax, ecx
lea ecx, [esp + 0x30]
add eax, 6
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0xac]
cmp eax, 2
jne 0x4226c3
push 0x7e7e7e
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x5d0220
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
add ecx, 0x57
jmp 0x422764
cmp eax, 3
jne 0x42276f
push 0x5d0210
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
test byte [ebx + 0xb8], 6
je case.default.0x4226ef
mov eax, dword [ebx + 0x448]
dec eax
cmp eax, 5
ja case.default.0x4226ef
jmp dword [eax*4 + 0x4227f0]
push 0x5d020c
jmp 0x42271e
push 0x5d0208
jmp 0x42271e
push 0x5d0204
jmp 0x42271e
push 0x5d0200
jmp 0x42271e
push 0x5d01fc
jmp 0x42271e
push 0x5d01f8
lea ecx, [esp + 0x14]
call fcn.00564d16
test byte [ebx + 0xb8], 0x14
jne 0x422737
push 0x5d01ec
jmp 0x42273c
push 0x5d01e0
lea ecx, [esp + 0x14]
call fcn.00564d16
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
add ecx, 0x53
add eax, 0xd
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xa4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push 0x20
push ecx
push 0xffffffffffffffff
push edx
push esi
call ebp
cmp dword [ebx + 0xac], 2
jne 0x42279f
push esi
mov ecx, ebx
call fcn.00422810
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4