Function at 0x40cf60
Capabilities:
Copy file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531cf8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 0x68]
test ecx, ecx
push esi
push edi
jne 0x40cfa4
mov eax, 0x193
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x11b5]
push eax
lea ecx, [esp + 0x1c]
push 0x58d23c
push ecx
mov dword [esp + 0x30], 0
call fcn.00406c70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.004038f0
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d00a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
mov bl, 2
push eax
mov ecx, str.Destination
mov edx, ebp
mov byte [esp + 0x28], bl
call fcn.00407550
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004038f0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
push 7
push str.http:__
push esi
call fcn.004bacee
add esp, 0xc
test eax, eax
jne 0x40d0e5
cmp dword [esi - 0xc], 7
jg 0x40d088
or eax, 0xffffffff
jmp 0x40d0a1
lea eax, [esi + 7]
push 0x2f
push eax
call fcn.004bbf88
add esp, 8
test eax, eax
jne 0x40d09f
or eax, 0xffffffff
jmp 0x40d0a1
sub eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040e020
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.004038f0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
push ecx
mov dword [esp + 0x1c], esp
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x20]
add esp, 4
push eax
call fcn.00408130
add esp, 8
mov byte [esp + 0x24], 5
mov ebx, dword [eax]
lea edi, [esp + 0x10]
call fcn.004034e0
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d13d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [ebp + 0x31fc], 1
jne 0x40d1e7
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
push 0
mov byte [esp + 0x28], 6
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
mov ebp, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push 0
push eax
push edi
push 0
push 0xfde9
call ebp
mov esi, eax
mov eax, dword [ebx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, esi
or eax, ecx
jge 0x40d1a1
push esi
lea ecx, [esp + 0x1c]
call fcn.004048a0
mov ebx, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push esi
push ebx
push eax
push edi
push 0
push 0xfde9
call ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.0040e2c0
lea edi, [esp + 0x10]
call fcn.004034e0
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x2c]
push 0x104
call fcn.0051fe94
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov byte [edi], 0
mov bl, 7
mov byte [esp + 0x24], bl
mov edx, dword [esp + 0x10]
xor eax, eax
lea esi, [esp + 0x2c]
call fcn.004062f0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d217
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00403060
mov eax, dword [ebp + 0x31c4]
mov ecx, dword [eax - 0xc]
mov esi, dword [esp + 0x10]
push ecx
push esi
push eax
call fcn.004bacee
add esp, 0xc
test eax, eax
je 0x40d2b4
push edi
mov byte [esp + 0x28], 2
call fcn.0051fe99
add esi, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d274
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d29a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x199
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [ebp + 0x31c4]
mov ecx, dword [ebp + 0x70]
mov eax, dword [eax - 0xc]
mov ecx, dword [ecx + 0x28]
add eax, esi
mov edx, ecx
lea esi, [esp + 0x2c]
call fcn.004062f0
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x1c]
push 0x58d23c
push edx
call fcn.00406c70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004038f0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
test eax, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
je 0x40d39c
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x40d409
push edi
mov byte [esp + 0x28], 2
call fcn.0051fe99
add esi, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d367
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40d3ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xc9
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40d409
push edi
mov byte [esp + 0x28], 2
call fcn.0051fe99
add esi, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d3d4
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40d3ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xc9
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
push edi
mov byte [esp + 0x28], 2
call fcn.0051fe99
add esi, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d435
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40d450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 0x194
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8