Function at 0x4592f0
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f5855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x24d]
mov byte [esp + 0x24c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0x1ff
stosb byte es:[edi], al
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x28]
mov dword [esp + 0x454], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x38]
mov byte [esp + 0x454], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov byte [esp + 0x454], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x44]
mov byte [esp + 0x454], 3
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 0x168]
push ebx
push ebx
push 0x147
push eax
mov byte [esp + 0x464], 4
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [ebp + 0x148]
call sub.MFC42.DLL_CComboBox::GetLBText
mov esi, 1
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040dae0
add esp, 8
push 0x524458
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x45c], 5
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x460], 6
call sub.MFC42.DLL_operator_2
push str.UserData.ini
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x45c], 7
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push eax
push 0x1ff
push ecx
push 0x5307a8
push str.Password
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 4
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 0x64], 2
je 0x4594ae
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00458950
cmp eax, ebx
mov dword [esp + 0x18], esi
jne 0x4594b2
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00458c00
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0040dae0
add esp, 8
push 0x524458
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x45c], 8
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x460], 9
call sub.MFC42.DLL_operator_2
push str.UserData.ini
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x45c], 0xa
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push eax
push ebx
push str.Mode
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x454], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 4
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x24], ebx
je 0x4595bf
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x210]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x24]
mov edx, eax
and edx, 3
cmp dl, 2
jne 0x45958e
or al, 3
test al, 7
jne 0x459597
mov eax, 3
mov edx, eax
mov dword [ebp + 0x68], eax
mov ecx, eax
mov dword [esp + 0x2c], esi
shr edx, 1
shr eax, 2
and ecx, esi
and edx, esi
and eax, esi
mov dword [ebp + 0x220], ecx
mov dword [ebp + 0x224], edx
mov dword [ebp + 0x228], eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jbe 0x4597be
lea eax, [esp + 0x10]
lea ecx, [ebp + 0x210]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x34]
lea edx, [esp + 0x4c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.0040bfd0
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
add esp, 0xc
lea ecx, [esp + 0x28]
push str.1a2b3c4d5e6f7g8h
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24c]
push eax
push ecx
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push edx
push eax
call fcn.00463fd0
add esp, 0x14
test eax, eax
je 0x459786
push 0x529dcc
lea ecx, [ebp + 0x214]
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x24c]
push ecx
lea ecx, [ebp + 0xe4]
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x20]
push 1
push edx
call fcn.0040dae0
add esp, 8
push 0x524458
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x45c], 0xb
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0x460], 0xc
call sub.MFC42.DLL_operator_2
push str.UserData.ini
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x45c], 0xd
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push eax
push ebx
push str.SavePwd
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov dword [ebp + 0x20c], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x454], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x454], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push 0x47a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov dword [ebp + 0x94], ebx
je 0x45976c
lea edx, [esp + 0x10]
lea ecx, [ebp + 0xa0]
push edx
call sub.MFC42.DLL_CString::operator_2
jmp 0x4597b3
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00457610
jmp 0x4597b3
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00458c00
push 0x5307a8
lea ecx, [ebp + 0x214]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [ebp + 0x20]
push ebx
push ebx
push 0x47a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp dword [esp + 0x2c], ebx
je 0x4597d5
mov eax, dword [ebp + 0x20]
push ebx
push ebx
push 0x47a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x44]
mov byte [esp + 0x454], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x454], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x454], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x448
ret