Function at 0x40119f
Capabilities:
Connect network resource
Read .ini file

Disassembly:
jmp 0x40a400
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453772
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x16bbc], ebx
je 0x40a7e4
cmp byte [esi + 0x16cc4], bl
jne 0x40a7e4
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov dword [esp + 0x468], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], 3
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esi + 0x16bc0]
push str.C:PCNUM.ini
push 0x104
push edi
push 0x46b324
push str.REMOTE_PC_NAME
push str.SETTING
mov byte [esp + 0x480], 4
call ebp
push edi
lea eax, [esp + 0x24]
push 0x465e94
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x46b73c]
add esp, 0xc
lea edx, [esp + 0x50]
push ecx
push 0x104
push edx
push 0x46b324
push str.NetworkDriver
push str.LogFile
call ebp
lea eax, [esp + 0x50]
lea ecx, [esp + 0x1c]
push eax
push 0x465e94
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [0x46b73c]
add esp, 0xc
lea eax, [esp + 0x50]
push edx
push 0x104
push eax
push 0x46b324
push str.Password
push str.LogFile
call ebp
lea ecx, [esp + 0x50]
lea edx, [esp + 0x14]
push ecx
push 0x465e94
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x46b73c]
add esp, 0xc
lea ecx, [esp + 0x50]
push eax
push 0x104
push ecx
push 0x46b324
push str.UserName
push str.LogFile
call ebp
lea edx, [esp + 0x50]
lea eax, [esp + 0x18]
push edx
push 0x465e94
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
mov byte [esi + 0x16cc4], bl
add esp, 0xc
cmp dword [eax - 8], ebx
je 0x40a5ad
mov al, byte [eax]
cmp al, 0x61
jl 0x40a597
cmp al, 0x7a
jg 0x40a597
sub al, 0x20
mov byte [esi + 0x16cc4], al
jmp 0x40a5ad
cmp al, 0x41
jl 0x40a5a7
cmp al, 0x5a
jg 0x40a5a7
mov byte [esi + 0x16cc4], al
jmp 0x40a5ad
mov byte [esi + 0x16cc4], bl
mov al, byte [esi + 0x16cc4]
mov dword [esp + 0x2c], 0x104
cmp al, bl
je 0x40a603
movsx ecx, al
push ecx
lea edx, [esp + 0x20]
push 0x465e00
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x35c]
push eax
push ecx
push edx
call sub.MPR.dll_WNetGetConnectionA
cmp eax, ebx
jne 0x40a603
mov ecx, 0x41
lea esi, [esp + 0x35c]
rep movsd dword es:[edi], dword [esi]
jmp 0x40a78d
movsx eax, byte [esi + 0x16cc4]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x25c]
push 0x465e00
push ecx
mov byte [esp + 0x1f], 0x5a
call ebp
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x160]
push edx
push 0x465e94
push eax
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x18
lea ecx, [esp + 0x258]
lea edx, [esp + 0x154]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
push 1
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ebx
mov byte [esi + 0x16cc4], 0x5a
call sub.MPR.dll_WNetAddConnection2A
mov edi, eax
cmp edi, ebx
je 0x40a78d
cmp edi, 0x55
jne 0x40a6e7
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
movsx eax, byte [esi + 0x16cc4]
push eax
lea ecx, [esp + 0x2c]
push 0x465e00
push ecx
mov byte [esp + 0x474], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0xc
push ebx
push 1
push edx
call sub.MPR.dll_WNetCancelConnection2A
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 1
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call sub.MPR.dll_WNetAddConnection2A
lea ecx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0x468], 4
call sub.MFC42.DLL_CString::CString
mov cl, byte [esp + 0x13]
dec cl
cmp edi, ebx
mov byte [esp + 0x13], cl
je 0x40a78d
mov al, cl
cmp al, 0x57
jle 0x40a777
movsx eax, byte [esi + 0x16cc4]
push eax
lea ecx, [esp + 0x25c]
push 0x465e00
push ecx
call ebp
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x160]
push edx
push 0x465e94
push eax
call ebp
mov al, byte [esp + 0x2b]
lea ecx, [esp + 0x270]
add esp, 0x18
lea edx, [esp + 0x154]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
mov byte [esi + 0x16cc4], al
push 1
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ebx
call sub.MPR.dll_WNetAddConnection2A
mov edi, eax
cmp edi, ebx
jne 0x40a681
jmp 0x40a78d
cmp edi, ebx
je 0x40a78d
push ebx
push ebx
push str.Create_Remote_Connection_Error__Check_whether_the_IP_and_Password_were_correctly_set.
mov byte [esi + 0x16cc4], bl
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x24]
mov byte [esp + 0x468], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x468], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x468], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x45c
ret