Function at 0x409c10
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 0x409ea9
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 0x409ec4
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_1
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.004099b4
test eax, eax
je 0x409cb9
mov ax, 3
mov word [ebp - 0xe], 3
jmp 0x409cc1
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x409e7e
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40b144
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x409e71
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 0x409d21
sub edx, 0x51
je 0x409d2b
sub edx, 0x4d8
je 0x409d35
jmp 0x409d3d
mov edx, dword [0x40b168]
inc dword [edx]
jmp 0x409d3d
mov edx, dword [0x40b15c]
inc dword [edx]
jmp 0x409d3d
mov edx, dword [0x40b174]
inc dword [edx]
test eax, eax
jne 0x409e65
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.00409988
test eax, eax
je 0x409e44
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 0x409e3d
mov eax, dword [0x40b178]
inc dword [eax]
mov eax, dword [0x40b18c]
cmp dword [eax], 0
jne 0x409e07
push 0x409ed0
mov eax, dword [0x40b160]
mov eax, dword [eax]
push dword [eax + 0x14]
push 0x409ee4
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x409f00
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.004074e8
call fcn.004099b4
test eax, eax
je 0x409e34
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.004099e0
mov dword [ebp - 0xc], 0xffffffff
jmp 0x409e44
mov eax, dword [0x40b170]
inc dword [eax]
add ebx, 4
dec esi
jne 0x409d4f
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x409e65
dec ebx
jne 0x409e53
add edi, 4
dec dword [ebp - 0x1c]
jne 0x409ced
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x409cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409eb0
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