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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x479fcc]
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 0x403f71
cmp word [esi], 0
jne 0x403f71
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.0041b49a
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.00404410
add esp, 0x18
jmp 0x404033
push eax
push ecx
lea eax, [ebp - 0x20c]
push str._sADMIN__s
push eax
call fcn.00404410
xor eax, eax
add esp, 0x10
mov word [ebp - 0x620], ax
cmp word [esi], ax
je 0x404033
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push str._sIPC_
push eax
call fcn.00404410
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 [0x47ada8]
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [0x47ada8], cl
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.00403530
add esp, 8
test al, al
jne 0x404187
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], al
jne 0x404066
call esi
cmp eax, 0x20
je 0x404187
call esi
cmp eax, 5
je 0x404080
cmp eax, 0x52e
je 0x404080
cmp eax, 0x3e7
je 0x404080
cmp eax, 0x35
jne 0x40409d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.00403530
add esp, 8
test al, al
jne 0x404187
call fcn.00403190
cmp byte [ebp + 0x30], 0
je 0x404166
push 2
call fcn.0041e7a8
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.004029e0
add esp, 0x10
call esi
mov esi, eax
push esi
call fcn.00403660
add esp, 4
cmp esi, 0x43
je 0x404110
cmp esi, 0x35
je 0x404110
cmp esi, 0x4d0
je 0x4040fd
cmp esi, 0x4cf
jne 0x404166
test bl, bl
je 0x404108
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled._n
jmp 0x404119
push edi
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled_on__s._n
jmp 0x404153
test bl, bl
je 0x40414d
push str._nMake_sure_that_the_admin__share_is_enabled._n
push 2
call fcn.0041e7a8
add esp, 4
push eax
call fcn.004029e0
add esp, 8
push dword [ebp - 0x628]
call fcn.00403e70
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004197d1
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.0041e7a8
add esp, 4
push eax
call fcn.004029e0
add esp, 0xc
push dword [ebp - 0x628]
call fcn.00403e70
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004197d1
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.004197d1
mov esp, ebp
pop ebp
ret