Function at 0x40d6f0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab5f5
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.0053f090
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1834], eax
mov dword [ebp - 0x182c], edi
test ebx, ebx
je 0x40dcd2
test esi, esi
je 0x40dcd2
push esi
push ebx
lea eax, [ebp - 0x818]
push 0x650ba0
push eax
call fcn.0040cfa0
add esp, 0xc
mov dword [ebp - 4], 0
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
cmp eax, ecx
je 0x40d78e
push eax
call fcn.0053eac5
add esp, 4
mov ecx, 4
mov dword [ebp - 0x1844], 4
call fcn.0040ce70
mov dword [ebp - 4], 1
test edi, edi
je 0x40d7b3
mov dword [edi], 0
push 0
push ebx
call fcn.005870e6
add esp, 8
cmp eax, 0xffffffff
jne 0x40d7ea
push ecx
push 0x650bc4
push 2
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov ecx, 0xfffffffc
xor bl, bl
call fcn.0040ce70
mov al, bl
jmp 0x40dcd4
mov ecx, esi
call fcn.0042d960
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
push esi
push ebx
call edi
test eax, eax
je 0x40d855
mov edi, dword [ebp - 0x1834]
test edi, edi
je 0x40d842
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
push 3
push ebx
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040f070
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [ebp - 0x1834], eax
lea eax, [ebp - 0x1834]
push eax
call fcn.00413a50
mov ecx, 0xfffffffc
mov bl, 1
call fcn.0040ce70
mov al, bl
jmp 0x40dcd4
push esi
lea ecx, [ebp - 0x183c]
call fcn.00404ca0
push 0x650bd4
push eax
lea eax, [ebp - 0x1830]
mov byte [ebp - 4], 3
push eax
call fcn.00413ba0
add esp, 0xc
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x183c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d89c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push dword [ebp - 0x1830]
push esi
call edi
test eax, eax
je 0x40d9b2
push 3
push esi
push ebx
call edi
test eax, eax
je 0x40d998
push dword [ebp - 0x1830]
lea eax, [ebp - 0x818]
push 0x650be0
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 6
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x810]
mov eax, dword [ebp - 0x818]
cmp eax, ecx
je 0x40d908
push eax
call fcn.0053eac5
add esp, 4
push 4
push 0
push dword [ebp - 0x1830]
call edi
mov edi, dword [ebp - 0x1834]
test edi, edi
je 0x40d991
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
push 3
push ebx
push esi
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040f070
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x1834], eax
lea eax, [ebp - 0x1834]
push eax
call fcn.00413a50
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
push 3
push esi
mov byte [ebp - 4], 8
mov ecx, eax
push dword [ebp - 0x1830]
call fcn.0040f070
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x1834], eax
lea eax, [ebp - 0x1834]
push eax
call fcn.00413a50
mov bl, 1
jmp 0x40dca2
push 1
push esi
push dword [ebp - 0x1830]
call edi
test eax, eax
jne 0x40d9b2
push 4
push eax
push dword [ebp - 0x1830]
call edi
push esi
lea ecx, [ebp - 0x1840]
call fcn.00404ca0
push str..pending
push eax
lea eax, [ebp - 0x1838]
mov byte [ebp - 4], 9
push eax
call fcn.00413ba0
add esp, 0xc
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0x1840]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d9f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], 0
je 0x40daaf
push 1
push dword [ebp - 0x1838]
push ebx
call edi
test eax, eax
je 0x40daaf
push 5
push esi
push dword [ebp - 0x1838]
call edi
test eax, eax
je 0x40daaf
push esi
lea eax, [ebp - 0x818]
push 0x650c28
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 0xc
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x810]
mov eax, dword [ebp - 0x818]
cmp eax, ecx
je 0x40da6f
push eax
call fcn.0053eac5
add esp, 4
mov eax, dword [ebp - 0x182c]
test eax, eax
je 0x40da7f
mov dword [eax], 1
mov edi, dword [ebp - 0x1834]
test edi, edi
je 0x40dbdb
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
push 3
push ebx
mov byte [ebp - 4], 0xd
push dword [ebp - 0x1838]
jmp 0x40dbbc
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40daff
push 4
push 0
push ebx
call edi
push ecx
push 0x650c58
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov edi, dword [ebp - 0x1834]
test edi, edi
je 0x40dbdb
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
mov byte [ebp - 4], 0xe
jmp 0x40dbb8
push 0
push dword [ebp - 0x1838]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40dbfa
push 1
push dword [ebp - 0x1830]
push esi
call edi
test eax, eax
je 0x40dbef
push 3
push esi
push dword [ebp - 0x1838]
call edi
test eax, eax
je 0x40dbe2
push 4
push 0
push dword [ebp - 0x1830]
call edi
push 4
push 0
push ebx
call edi
push dword [ebp - 0x1830]
lea eax, [ebp - 0x818]
push 0x650c78
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 0xf
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x810]
mov eax, dword [ebp - 0x818]
cmp eax, ecx
je 0x40db9a
push eax
call fcn.0053eac5
add esp, 4
mov edi, dword [ebp - 0x1834]
test edi, edi
je 0x40dbdb
push 0x24
call fcn.0053ea92
add esp, 4
mov dword [ebp - 0x182c], eax
mov byte [ebp - 4], 0x10
push 4
push ebx
push esi
mov ecx, eax
call fcn.0040f070
mov byte [ebp - 4], 0xb
mov ecx, edi
mov dword [ebp - 0x182c], eax
lea eax, [ebp - 0x182c]
push eax
call fcn.00413a50
mov bl, 1
jmp 0x40dc80
push 1
push esi
push dword [ebp - 0x1830]
call edi
jmp 0x40dbfa
mov ecx, dword [ebp - 0x1838]
call fcn.0042e4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1828]
call fcn.0040c120
sub esp, 0x808
mov byte [ebp - 4], 0x11
mov esi, eax
mov edi, esp
lea eax, [ebp - 0x1020]
mov ecx, 0x202
rep movsd dword es:[edi], dword [esi]
push 0x650cbc
push eax
call fcn.0040cfa0
add esp, 0x80c
mov byte [ebp - 4], 0x12
push dword [eax]
push 2
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1018]
cmp eax, ecx
je 0x40dc65
push eax
call fcn.0053eac5
add esp, 4
mov eax, dword [ebp - 0x1828]
lea ecx, [ebp - 0x1820]
cmp eax, ecx
je 0x40dc7e
push eax
call fcn.0053eac5
add esp, 4
xor bl, bl
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x1838]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or edx, 0xffffffff
mov eax, dword [ebp - 0x1830]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edx
dec edx
test edx, edx
jg 0x40dcc4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, 0xfffffffc
call fcn.0040ce70
mov al, bl
jmp 0x40dcd4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret