Function at 0x403670
Capabilities:
Connect network resource
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x43a128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x10]
push ebx
mov bl, byte [ebp + 0x14]
mov dword [ebp - 0x630], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x624], edx
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x628], ecx
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x62c], edx
push esi
mov esi, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x403711
cmp word [esi], 0
jne 0x403711
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00408a04
push dword [ebp - 0x620]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00403b70
add esp, 0x18
jmp 0x4037d3
push eax
push ecx
lea eax, [ebp - 0x20c]
push str._sADMIN__s
push eax
call fcn.00403b70
xor eax, eax
add esp, 0x10
mov word [ebp - 0x620], ax
cmp word [esi], ax
je 0x4037d3
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push str._sIPC_
push eax
call fcn.00403b70
add esp, 0xc
mov dword [ebp - 0x650], 0
lea eax, [ebp - 0x620]
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x650]
push 0
push esi
push dword [ebp - 0x62c]
mov dword [ebp - 0x638], 0
push eax
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x644], 3
mov dword [ebp - 0x634], 0
call sub.MPR.dll_WNetAddConnection2W
movzx ecx, byte [0x43aaa8]
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [0x43aaa8], cl
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.00402cd0
add esp, 8
test al, al
jne 0x403927
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], al
jne 0x403806
call esi
cmp eax, 0x20
je 0x403927
call esi
cmp eax, 5
je 0x403820
cmp eax, 0x52e
je 0x403820
cmp eax, 0x3e7
je 0x403820
cmp eax, 0x35
jne 0x40383d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.00402cd0
add esp, 8
test al, al
jne 0x403927
call fcn.00402930
cmp byte [ebp + 0x30], 0
je 0x403906
push 2
call fcn.0040af7e
mov ecx, dword [ebp - 0x630]
test bl, bl
mov edx, str._rCouldnt_install__s_service:_n
cmove ecx, edi
push ecx
mov ecx, str._rCouldnt_access__s:_n
cmovne ecx, edx
push ecx
push eax
call fcn.00402180
add esp, 0x10
call esi
mov esi, eax
push esi
call fcn.00402e00
add esp, 4
cmp esi, 0x43
je 0x4038b0
cmp esi, 0x35
je 0x4038b0
cmp esi, 0x4d0
je 0x40389d
cmp esi, 0x4cf
jne 0x403906
test bl, bl
je 0x4038a8
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled._n
jmp 0x4038b9
push edi
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled_on__s._n
jmp 0x4038f3
test bl, bl
je 0x4038ed
push str._nMake_sure_that_the_admin__share_is_enabled._n
push 2
call fcn.0040af7e
add esp, 4
push eax
call fcn.00402180
add esp, 8
push dword [ebp - 0x628]
call fcn.00403610
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040760d
mov esp, ebp
pop ebp
ret
push edi
push str._nMake_sure_that_the_default_admin__share_is_enabled_on__s._n
push 2
call fcn.0040af7e
add esp, 4
push eax
call fcn.00402180
add esp, 0xc
push dword [ebp - 0x628]
call fcn.00403610
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040760d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040760d
mov esp, ebp
pop ebp
ret