Function at 0x403d80
Capabilities:
Connect network resource

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406c30
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x5c], ebp
je 0x403db1
cmp ebx, ebp
je 0x404085
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1009
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0x105
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov al, byte [0x40a818]
test al, 1
jne 0x403e01
or al, 1
push 0x40a48c
mov ecx, 0x40a814
mov byte [0x40a818], al
call sub.MFC42.DLL_CString::CString_2
push 0x4040a0
call fcn.004063ae
add esp, 4
push 0x40a814
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
xor eax, eax
cmp ebx, ebp
sete al
mov dword [esi + 0x5c], eax
cmp eax, ebp
mov dword [esp + 0x44], ebp
mov eax, 0x40a48c
jne 0x403e28
mov eax, ebx
push eax
mov ecx, 0x40a814
call fcn.00406008
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebp
je 0x403e45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x403e47
xor eax, eax
mov ecx, dword [0x40a814]
mov edx, dword [eax + 0x20]
push ecx
push 2
push 0x401
push edx
call edi
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebp
je 0x403e6d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x403e6f
xor eax, eax
mov eax, dword [eax + 0x20]
push 0x40a740
push 1
push 0x401
push eax
call edi
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 0xf003f
push ebp
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call ebx
mov ebp, eax
test ebp, ebp
jne 0x403ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403f66
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x14]
push ecx
push 0x40a480
push edx
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::Format
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x30], eax
jne 0x403f00
xor eax, eax
jmp 0x403f03
mov eax, dword [esi + 0x20]
push 0x18
push 0x40a740
lea ecx, [esp + 0x24]
push 0x40a740
push ecx
push eax
call sub.MPR.dll_WNetAddConnection3A
test eax, eax
jne 0x403f2f
mov edx, dword [esp + 0x4c]
push 0xf003f
push eax
push edx
call ebx
mov ebp, eax
jmp 0x403f3e
cmp eax, 0x4c7
jne 0x403f3e
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.00405ea6
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40400a
test ebp, ebp
jne 0x403ff7
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.004032a0
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x403f89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x403f8b
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 0x20]
push ecx
push 1
push 0x401
push edx
call edi
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
push eax
push 0x40a468
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0x10
push 0
push eax
mov ecx, esi
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.00405ea6
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x403fe0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x4c]
mov dword [esi + 0x4c], 0
mov byte [esp + 0x44], 0
call fcn.00405ea6
jmp 0x404074
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x404005
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi + 0x4c], ebp
jmp 0x404060
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40401c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40401e
xor eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x20]
push ecx
push 2
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x10]
mov ecx, 0x40a814
push eax
call fcn.00405f0c
mov ecx, dword [0x40a814]
push 0x40a48c
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x5c], eax
mov ecx, esi
call fcn.004020f0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00405ea6
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4