Function at 0x45f4b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push 0
push eax
call sub.ConnectDialog62U.dll_int___cdecl_ShowConnectDialog_wchar_t_const___bool__bool_
add esp, 0xc
cmp eax, 1
jne 0x45f79a
call sub.ConnectDialog62U.dll_unsigned_int___cdecl_GetConnectDialogSessionConfigCount_void_
mov edi, eax
cmp edi, 1
jbe 0x45f69a
test bl, bl
jne 0x45f69a
mov eax, dword [0x741c2c]
add eax, 0x88c
call fcn.00407bf0
test al, al
jne 0x45f69a
mov esi, dword [ebp + 8]
call fcn.0045fd80
test al, al
jne 0x45f69a
mov eax, dword [0x741c2c]
add eax, 0x778
call fcn.00407bf0
test al, al
je 0x45f604
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x28], 0
xor esi, esi
test edi, edi
jbe 0x45f5d3
jmp 0x45f570
push 0
push 0x737744
push 0x737798
push 0
push esi
call sub.ConnectDialog62U.dll_class_ISessionConfig____cdecl_GetConnectDialogSessionConfig_unsigned_int_
add esp, 4
push eax
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00505700
mov byte [esp + 0x28], 1
call fcn.004221b0
push eax
lea ecx, [esp + 0x18]
call dword [0x6125bc]
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x18]
call fcn.004740c0
push 0x6bdc38
lea ecx, [esp + 0x18]
call dword [0x6125bc]
inc esi
cmp esi, edi
jb 0x45f570
lea edx, [esp + 0x14]
push edx
call fcn.00426890
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 4
push 0
push 0
call fcn.0044c9c0
push eax
call sub.mfc90u.dll_AfxBeginThread
push 0
push 0x739800
push 0x73905c
push 0
push eax
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
xor esi, esi
mov ebx, eax
test edi, edi
jbe 0x45f64f
push 0
push 0
push esi
call sub.ConnectDialog62U.dll_class_ISessionConfig____cdecl_GetConnectDialogSessionConfig_unsigned_int_
add esp, 4
push eax
push ebx
call fcn.0044d260
inc esi
cmp esi, edi
jb 0x45f636
push 0
push 0x737744
push 0x737798
push 0
push 0
call sub.ConnectDialog62U.dll_class_ISessionConfig____cdecl_GetConnectDialogSessionConfig_unsigned_int_
add esp, 4
push eax
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
call fcn.00460f50
mov eax, dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
test edi, edi
jbe 0x45f737
push 0
push 0x737744
push 0x737798
push 0
push ebx
call sub.ConnectDialog62U.dll_class_ISessionConfig____cdecl_GetConnectDialogSessionConfig_unsigned_int_
add esp, 4
push eax
call sub.MSVCR90.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
mov dword [esp + 0x18], esi
test esi, esi
je 0x45f72e
mov eax, dword [0x741c2c]
add eax, 0x17a0
call fcn.00407bf0
test al, al
je 0x45f6f6
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
add esi, 0xb8
call fcn.00484ea0
jmp 0x45f72e
mov eax, dword [0x741c2c]
add eax, 0x88c
call fcn.00407bf0
test al, al
jne 0x45f713
cmp byte [ebp + 0x10], al
jne 0x45f713
cmp edi, 1
jbe 0x45f718
mov eax, 1
mov edx, dword [ebp + 8]
push 0
push eax
push edx
mov ecx, esi
call fcn.0045f7b0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
inc ebx
cmp ebx, edi
jb 0x45f6a4
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0xb8]
mov eax, esi
call fcn.0048d510
test al, al
jne 0x45f795
mov ecx, esi
call fcn.00466cc0
mov esi, eax
mov eax, dword [0x741c2c]
add eax, 0x88c
call fcn.00407bf0
test al, al
jne 0x45f771
cmp byte [ebp + 0x10], al
jne 0x45f771
cmp edi, 1
jbe 0x45f776
mov eax, 1
cmp edi, 1
seta dl
movzx ecx, dl
push ecx
push eax
push ebx
mov ecx, esi
call fcn.0045f7b0
test esi, esi
je 0x45f795
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
call sub.ConnectDialog62U.dll_void___cdecl_CleanupConnectDialogSessionConfigs_void_
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc