Function at 0x40358d
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x20
call fcn.00459b2c
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
jne 0x403601
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call sub.wmvert.dll_wm_Chr
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4035fb
push ebx
call fcn.00459b32
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], 0
jne 0x403648
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call sub.wmvert.dll_wm_Chr
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403642
push ebx
call fcn.00459b32
add esp, 4
pop eax
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x403669
mov eax, 0x4600b7
push eax
push 2
mov ebx, 0x138
call sub.wmvert.dll_wm_Right
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x4ff070
push dword [ebp - 0xc]
call fcn.0040260d
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4036ad
push ebx
call fcn.00459b32
add esp, 4
push 0x4ff070
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.0040271d
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4036f2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4036ed
push eax
mov ebx, eax
call fcn.004026b2
inc eax
push eax
call fcn.00459b2c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403710
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x403710
push eax
mov ebx, eax
call fcn.004026b2
inc eax
push eax
call fcn.00459b2c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403723
push ebx
call fcn.00459b32
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403739
push ebx
call fcn.00459b32
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 2
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 3
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4037ab
push eax
mov ebx, eax
call fcn.004026b2
inc eax
push eax
call fcn.00459b2c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4037be
push ebx
call fcn.00459b32
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4037eb
push eax
mov ebx, eax
call fcn.004026b2
inc eax
push eax
call fcn.00459b2c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4037fe
push ebx
call fcn.00459b32
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0xc], esp
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 0x18]
push dword [ebx]
push dword [ebp - 4]
mov eax, 0xa
call sub.mpr.dll_WNetAddConnection2A
cmp dword [ebp - 0xc], esp
je 0x40383f
push 0x2b1
push 0x40150b7
push 6
call fcn.00459b38
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40384a
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403862
push ebx
call fcn.00459b32
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403876
push ebx
call fcn.00459b32
add esp, 4
pop ebx
call fcn.00459b32
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18