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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x46a124]
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 0x404ad1
cmp word [esi], 0
jne 0x404ad1
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.0040ab3b
push dword [ebp - 0x620]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x45b7b8
push eax
call fcn.004020d0
add esp, 0x18
jmp 0x404b93
push eax
push ecx
lea eax, [ebp - 0x20c]
push 0x45bac8
push eax
call fcn.004020d0
xor eax, eax
add esp, 0x10
mov word [ebp - 0x620], ax
cmp word [esi], ax
je 0x404b93
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push 0x45bab4
push eax
call fcn.004020d0
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 [0x46ab74]
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [0x46ab74], cl
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.004037d0
add esp, 8
test al, al
jne 0x404d13
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], al
jne 0x404bc6
call esi
cmp eax, 0x20
je 0x404d13
call esi
cmp eax, 5
je 0x404be0
cmp eax, 0x52e
je 0x404be0
cmp eax, 0x3e7
je 0x404be0
cmp eax, 0x35
jne 0x404bfd
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
call fcn.004037d0
add esp, 8
test al, al
jne 0x404d13
call fcn.00403060
cmp byte [ebp + 0x30], 0
je 0x404cf2
push 2
call fcn.00413ed7
mov ecx, dword [ebp - 0x630]
test bl, bl
mov edx, 0x45bae8
cmove ecx, edi
push ecx
mov ecx, 0x45bb28
cmovne ecx, edx
push ecx
push eax
call fcn.00402680
add esp, 0x10
call esi
mov esi, eax
push esi
call fcn.004040a0
add esp, 4
cmp esi, 0x43
je 0x404ca6
cmp esi, 0x35
je 0x404ca6
cmp esi, 0x4d0
je 0x404c61
cmp esi, 0x4cf
jne 0x404cf2
push 2
call fcn.00413ed7
add esp, 4
test bl, bl
je 0x404c9e
push 0x45bc30
push eax
call fcn.00402680
add esp, 8
push dword [ebp - 0x628]
call fcn.004049d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
mov esp, ebp
pop ebp
ret
push edi
push 0x45bcb0
jmp 0x404ce9
push 2
call fcn.00413ed7
add esp, 4
test bl, bl
je 0x404ce3
push 0x45bb58
push eax
call fcn.00402680
add esp, 8
push dword [ebp - 0x628]
call fcn.004049d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
mov esp, ebp
pop ebp
ret
push edi
push 0x45bbb8
push eax
call fcn.00402680
add esp, 0xc
push dword [ebp - 0x628]
call fcn.004049d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
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.004093c1
mov esp, ebp
pop ebp
ret