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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4979e8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4bb0c8]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], eax
push eax
push eax
push 1
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 2
cmp dword [edi + 0x10], 0
je 0x41d55d
cmp dword [esi + 0x10], 0
je 0x41d55d
push str..tmp
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00409ac0
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x41d237
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41d54b
mov dword [ebp - 0xa0], 0
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
push 0x1194
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.00419800
sub eax, 0
je 0x41d2bc
sub eax, 1
je 0x41d2b2
sub eax, 1
je 0x41d2a8
mov esi, 0xeeac9002
jmp 0x41d4ef
mov esi, 0xeeac9003
jmp 0x41d4ef
mov esi, 0xeeac9004
jmp 0x41d4ef
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x28]
call fcn.0041ccd0
add esp, 4
test al, al
je 0x41d4e2
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov edx, 0x1d
cmovae ecx, dword [ebp - 0x40]
mov eax, edi
cmp edi, edx
cmova eax, edx
mov edx, 0x4b198c
push eax
call fcn.0040acc0
add esp, 4
test eax, eax
jne 0x41d4db
cmp edi, 0x1d
jb 0x41d4db
ja 0x41d4db
xorps xmm0, xmm0
mov dword [ebp - 0xd4], eax
movq qword [ebp - 0xdc], xmm0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 9
cmp byte [ebp + 8], al
jne 0x41d3f0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41d387
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004036a0
mov eax, 1
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xf8], eax
lea edx, [ebp - 0xdc]
mov dword [ebp - 0xfc], eax
lea ecx, [ebp - 0xf4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041ccd0
add esp, 4
test al, al
je 0x41d3f0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0xdc]
ja 0x41d3f0
jne 0x41d3ec
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0xd8]
ja 0x41d3f0
jne 0x41d3ec
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0xd4]
ja 0x41d3f0
xor bl, bl
jmp 0x41d3f2
mov bl, 1
mov dword [ebp - 4], 9
test byte [ebp - 0xf8], 1
je 0x41d40d
lea ecx, [ebp - 0xf4]
call fcn.00403640
test bl, bl
je 0x41d4cc
push str..bak
mov edx, esi
lea ecx, [ebp - 0xb8]
call fcn.00409ac0
add esp, 4
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
mov ecx, esi
cmovae eax, dword [ebp - 0xb8]
cmp dword [esi + 0x14], 8
jb 0x41d448
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41d4ac
cmp dword [esi + 0x14], 8
jb 0x41d45e
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41d4ac
xor esi, esi
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
cmovae eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xb8]
call fcn.00403640
lea ecx, [ebp - 0xdc]
call fcn.00416cc0
jmp 0x41d4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb8]
mov esi, eax
call fcn.00403640
lea ecx, [ebp - 0xdc]
call fcn.00416cc0
jmp 0x41d4e7
lea ecx, [ebp - 0xdc]
xor esi, esi
call fcn.00416cc0
jmp 0x41d4e7
mov esi, 0xeeac9005
jmp 0x41d4e7
mov esi, 0xeeac9006
lea ecx, [ebp - 0x4c]
call fcn.00416cc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x41d553
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d635
push edx
push ecx
call fcn.0046cebb
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41d562
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00403640
jmp 0x41d562
mov esi, 0x57
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x41d58b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x88], 0
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x41d5ca
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d5c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d635
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x41d617
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d60d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d635
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov eax, esi
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.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.00471c84
int3