Function at 0x4044d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406b23
push eax
mov dword fs:[0], esp
sub esp, 0x188
lea eax, [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1a4]
push edi
push 0
push esi
push eax
call fcn.00402e10
mov eax, dword [eax]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call ebx
mov edi, dword [esp + 0x1bc]
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [edi], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
sub eax, 3
je 0x40453a
sub eax, 2
je 0x40453a
sub eax, 2
jne 0x404560
push 0x1f6
push str.D:2005code_trunkwindowsSsiClientExSsiClientEx.cpp
lea ecx, [esp + 0x4c]
push str.ASSERT_found_at___s____d_lines_._n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x44]
push edx
call fcn.004029f0
add esp, 4
mov eax, dword [esi + 0xc]
cmp eax, 0x12
jg 0x4045a3
push eax
push str.Param_count_is__d__it_must___18__
call fcn.00402a30
add esp, 8
lea eax, [esp + 0x44]
push 0x1fe
push str.D:2005code_trunkwindowsSsiClientExSsiClientEx.cpp
push str.ASSERT_found_at___s____d_lines_._n
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
call fcn.004029f0
add esp, 4
xor eax, eax
jmp 0x404d0c
push 1
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.00402e10
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x38]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x44]
push esi
push eax
mov dword [edi + 0x438], ebp
call fcn.00402e10
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x40]
mov dword [edi + 4], eax
call sub.MFC42.DLL_CString::CString
push 5
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00402e10
add esp, 0xc
push eax
lea ecx, [edi + 0x10]
mov dword [esp + 0x1a4], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 6
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402e10
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x1c]
mov word [edi + 0x14], ax
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00402e10
add esp, 0xc
lea ecx, [esp + 0x18]
push str.third
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x1ac], 1
call sub.MFC42.DLL_operator_2
lea ebp, [edi + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0x1a4], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4046c2
push str.C:Program_Files_sunsi_third
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov ebp, dword [ebp]
push ebp
push str.use_default_path__s_to_try__
call fcn.004029f0
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
push edi
call fcn.00402ed0
add esp, 8
test eax, eax
je 0x404d0c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x4095b0]
mov dx, word [0x4095b4]
mov eax, dword [str._username_]
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov word [esp + 0x4c], dx
mov edx, dword [str._password_]
mov dword [esp + 0x4f], ecx
mov dword [esp + 0x53], ecx
mov dword [esp + 0x58], edx
mov dl, byte [0x4095aa]
mov dword [esp + 0x44], eax
mov al, byte [0x4095b6]
mov byte [esp + 0x57], cl
mov cx, word [0x4095a8]
mov byte [esp + 0x62], dl
mov edx, dword [0x409598]
mov byte [esp + 0x4e], al
mov eax, dword [0x4095a4]
mov word [esp + 0x60], cx
mov ecx, dword [str._address_]
mov dword [esp + 0x70], edx
mov edx, dword [str._port_]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x80], edx
xor edx, edx
mov dword [esp + 0x63], eax
mov dword [esp + 0x87], edx
mov dword [esp + 0x67], eax
mov dword [esp + 0x8b], edx
mov dword [esp + 0x76], ecx
mov dword [esp + 0x8f], edx
mov byte [esp + 0x6b], al
mov ax, word [0x40959c]
mov dword [esp + 0x7a], ecx
mov byte [esp + 0x93], dl
mov dword [esp + 0x9c], edx
mov word [esp + 0x74], ax
mov ax, word [0x409590]
mov word [esp + 0x7e], cx
mov cl, byte [0x409592]
mov dword [esp + 0xa0], edx
mov word [esp + 0x84], ax
mov eax, dword [str._hight_]
mov byte [esp + 0x86], cl
mov ecx, dword [0x409588]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0x94], eax
mov eax, dword [str._width_]
mov dword [esp + 0x98], ecx
mov ecx, dword [0x409580]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xa8], eax
mov eax, dword [str._sizex_]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x409578]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xbc], eax
mov eax, dword [str._sizey_]
mov dword [esp + 0xc0], ecx
mov ecx, dword [0x409570]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xd0], eax
mov eax, dword [str._color_depth_]
mov dword [esp + 0xd4], ecx
mov ecx, dword [0x409560]
mov dword [esp + 0xdc], edx
mov dword [esp + 0x1a0], 3
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], ecx
mov edx, dword [0x409564]
mov ax, word [0x409568]
mov dword [esp + 0xec], edx
mov edx, dword [str._clipboard_]
xor ecx, ecx
mov dword [esp + 0xf8], edx
mov word [esp + 0xf0], ax
mov eax, dword [0x409554]
xor edx, edx
mov dword [esp + 0xf2], ecx
mov dword [esp + 0x104], edx
mov word [esp + 0xf6], cx
mov ecx, dword [0x409558]
mov dword [esp + 0xfc], eax
mov eax, dword [str._console_]
mov dword [esp + 0x108], edx
mov dx, word [0x40954c]
mov dword [esp + 0x100], ecx
mov ecx, dword [0x409548]
mov dword [esp + 0x10c], eax
mov word [esp + 0x114], dx
mov edx, dword [0x409538]
xor eax, eax
mov dword [esp + 0x110], ecx
mov ecx, dword [str._session_id_]
mov dword [esp + 0x116], eax
mov dword [esp + 0x124], edx
mov dword [esp + 0x11a], eax
xor edx, edx
mov dword [esp + 0x120], ecx
mov cl, byte [0x409540]
mov word [esp + 0x11e], ax
mov eax, dword [0x40953c]
mov dword [esp + 0x12d], edx
mov byte [esp + 0x12c], cl
mov ecx, dword [0x409530]
mov word [esp + 0x131], dx
mov dword [esp + 0x128], eax
mov eax, dword [str._token_]
mov byte [esp + 0x133], dl
mov dword [esp + 0x138], ecx
mov ecx, dword [0x409520]
mov dword [esp + 0x13c], edx
mov dword [esp + 0x134], eax
mov eax, dword [str._screen_mode_]
mov dword [esp + 0x140], edx
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x144], edx
mov edx, dword [0x409524]
mov dword [esp + 0x148], eax
mov ax, word [0x409528]
xor ecx, ecx
mov dword [esp + 0x156], ecx
mov dword [esp + 0x150], edx
mov edx, dword [str._disk_mapping_]
mov word [esp + 0x154], ax
mov eax, dword [0x409510]
mov word [esp + 0x15a], cx
mov ecx, dword [0x409514]
mov dword [esp + 0x15c], edx
mov dx, word [0x409518]
mov dword [esp + 0x160], eax
mov al, byte [0x40951a]
mov dword [esp + 0x164], ecx
xor ecx, ecx
mov word [esp + 0x168], dx
mov edx, dword [str._start_program_]
mov byte [esp + 0x16a], al
mov eax, dword [0x409500]
mov dword [esp + 0x16b], ecx
mov byte [esp + 0x16f], cl
mov ecx, dword [0x409504]
mov dword [esp + 0x170], edx
mov edx, dword [0x409508]
mov dword [esp + 0x174], eax
mov eax, dword [str._work_dir_]
xor ebp, ebp
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], edx
mov dword [esp + 0x180], ebp
mov dword [esp + 0x184], eax
mov ecx, dword [0x4094f4]
mov dx, word [0x4094f8]
mov al, byte [0x4094fa]
mov dword [esp + 0x188], ecx
xor ecx, ecx
mov word [esp + 0x18c], dx
mov dword [esp + 0x18f], ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x193], ecx
mov byte [esp + 0x18e], al
mov byte [esp + 0x197], cl
mov dword [esp + 0x10], edx
lea eax, [ebp + 3]
lea ecx, [esp + 0x20]
push eax
push esi
push ecx
call fcn.00402e10
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [edi + 0x20]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 0x14
cmp ebp, 0x11
mov dword [esp + 0x10], ecx
jl 0x404aee
push 5
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00402e10
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a0], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x404c51
lea eax, [ebp + 3]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
call fcn.00402e10
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x1b4], 6
call fcn.004043e0
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a0], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00403fe0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
mov eax, 0x4094ec
jne 0x404be9
mov eax, str.FALSE
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push str.Set_system_host__s_to__s__s__
call fcn.004029f0
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
jne 0x404c40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.Change_host_name__s_to__s__
call fcn.004029f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push ecx
lea ecx, [edi + 0x20]
call sub.MFC42.DLL_CString::Replace
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a0], 3
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 3]
lea ecx, [esp + 0x34]
push eax
push esi
push ecx
call fcn.00402e10
add esp, 0xc
push eax
lea ecx, [edi + 8]
mov byte [esp + 0x1a4], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a0], 3
call sub.MFC42.DLL_CString::CString
add ebp, 4
lea edx, [esp + 0x3c]
push ebp
push esi
push edx
call fcn.00402e10
mov eax, dword [eax]
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x3c]
mov word [edi + 0xc], ax
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404cc1
push eax
push str._db_name_
lea ecx, [edi + 0x20]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404cd9
push eax
push str._db_instance_
lea ecx, [edi + 0x20]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x20]
push eax
push str._privilege_
call sub.MFC42.DLL_CString::Replace
push edi
push esi
call fcn.00404280
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret