Function at 0x40f010
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x40f018
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004034f8
mov eax, dword [ebp - 8]
call fcn.004034f8
xor eax, eax
push ebp
push 0x40f43f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40f3f3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40f458
push dword [ebp - 4]
lea edx, [ebp - 0x6c]
mov eax, 0x40f464
call fcn.00404cc0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004033c8
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
call fcn.00403508
mov esi, eax
mov dword [ebp - 0x44], esi
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x70]
mov eax, 0x40f474
call fcn.00404cc0
mov eax, dword [ebp - 0x70]
call fcn.00403508
mov edx, eax
mov eax, 0x4129c4
call fcn.004045dc
mov byte [0x418dc4], 0
push 0
push 0x4129c4
push 0x418dc4
lea eax, [ebp - 0x58]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete bl
test bl, bl
jne 0x40f0f8
push 0
push 0x4129c4
push 0
lea eax, [ebp - 0x58]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete bl
test bl, bl
jne 0x40f110
push 0
push 0
push 0
lea eax, [ebp - 0x58]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete bl
test bl, bl
jne 0x40f14f
push 0
push 0x40f484
push 0x40f484
lea eax, [ebp - 0x58]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40f13f
mov eax, dword [ebp - 4]
call fcn.0040e864
cmp dword [0x4129c0], 0
setg bl
mov byte [ebp - 0xd], 0
push 0xffffffffffffffff
push 1
push esi
call sub.mpr.dll_WNetCancelConnection2A
jmp 0x40f15d
mov dword [0x4129c0], 1
mov byte [ebp - 0xd], 1
test bl, bl
je 0x40f3e9
mov eax, dword [0x4129c0]
dec eax
test eax, eax
jl 0x40f3d1
inc eax
mov dword [ebp - 0x38], eax
mov esi, 0x418dc4
mov edi, 0x4129c4
cmp byte [ebp - 0xd], 0
je 0x40f18c
mov bl, byte [ebp - 0xd]
jmp 0x40f1dd
push 0x40f458
push dword [ebp - 4]
lea edx, [ebp - 0x74]
mov eax, 0x40f490
call fcn.00404cc0
push dword [ebp - 0x74]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004033c8
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
call fcn.00403508
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
push 0
push edi
push esi
lea eax, [ebp - 0x58]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete bl
test bl, bl
je 0x40f3bc
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004046f4
push 0x40f458
push dword [ebp - 4]
lea edx, [ebp - 0x78]
mov eax, 0x40f4a0
call fcn.00404cc0
push dword [ebp - 0x78]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004033c8
mov eax, dword [ebp - 0x20]
call fcn.00404a74
test al, al
je 0x40f230
mov dword [ebp - 0xc], 2
jmp 0x40f39e
push 0
mov eax, dword [ebp - 0x20]
call fcn.00403508
push eax
mov eax, dword [ebp - 8]
call fcn.00403508
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0x20]
call fcn.00404a74
test al, al
je 0x40f39e
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x40f458
call fcn.00403354
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x24]
call fcn.004037dc
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004037ec
mov ebx, eax
push ebx
call dword [0x41f1cc]
test eax, eax
jne 0x40f39e
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, 0x3c
cdq
idiv ecx
neg eax
mov edx, dword [ebp - 0x2c]
add dword [edx + 8], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0x18
jb 0x40f2bc
mov eax, dword [ebp - 0x2c]
sub dword [eax + 8], 0x18
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, 0x3c
cdq
idiv ecx
neg edx
mov eax, dword [ebp - 0x2c]
add dword [eax + 0xc], edx
mov eax, dword [ebp - 0x2c]
inc dword [eax + 0xc]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 0x3c
jb 0x40f2e8
mov eax, dword [ebp - 0x2c]
sub dword [eax + 0xc], 0x3c
mov eax, dword [ebp - 0x2c]
add dword [eax + 0x10], 0x32
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x10], 0x3c
jb 0x40f32b
mov eax, dword [ebp - 0x2c]
sub dword [eax + 0x10], 0x3c
mov eax, dword [ebp - 0x2c]
inc dword [eax + 0xc]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 0x3c
jb 0x40f32b
mov eax, dword [ebp - 0x2c]
sub dword [eax + 0xc], 0x3c
mov eax, dword [ebp - 0x2c]
inc dword [eax + 8]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0x18
jb 0x40f32b
mov eax, dword [ebp - 0x2c]
sub dword [eax + 8], 0x18
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
imul eax, dword [eax + 0x10], 0x3e8
mov ecx, 0x3c
xor edx, edx
div ecx
mov edx, dword [ebp - 0x2c]
imul edx, dword [edx + 8], 0x3c
imul edx, edx, 0x3c
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ecx + 0xc], 0x3c
add edx, ecx
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 1
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
call fcn.004037dc
mov eax, dword [ebp - 0x28]
call fcn.004037ec
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [0x41f1c8]
test eax, eax
jne 0x40f39e
mov dword [ebp - 0xc], 1
cmp byte [ebp - 0xd], 0
jne 0x40f3b6
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 0x18]
call fcn.00403508
push eax
call sub.mpr.dll_WNetCancelConnection2A
cmp dword [ebp - 0xc], 0
jne 0x40f3d1
add edi, 0x100
add esi, 0x100
dec dword [ebp - 0x38]
jne 0x40f181
cmp byte [ebp - 0xd], 0
je 0x40f3e9
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 0x14]
call fcn.00403508
push eax
call sub.mpr.dll_WNetCancelConnection2A
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f3fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f446
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00403198
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004036e4
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403198
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403198
ret