Function at 0x4116a0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46ffd2
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4a3dc0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3dc0]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov edi, dword [esp + 0x144]
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x13c], 1
mov dword [esp + 0x14], ebx
cmp dword [edi + 8], ebx
jle 0x411d0a
xor ebp, ebp
nop
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebp]
add eax, ebp
dec ecx
je 0x4119cc
dec ecx
jne 0x411ce1
mov edx, dword [eax + 0xc]
cmp edx, ebx
je 0x411ce1
mov eax, edx
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411760
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x90]
call fcn.004043a0
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0xfc]
push eax
mov byte [esp + 0x144], 7
call fcn.00437c40
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 8
call fcn.00405310
cmp dword [esp + 0x10c], 0x10
jb 0x4117c9
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.004533ae
add esp, 4
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
mov byte [esp + 0x13c], 1
jb 0x411804
mov edx, dword [esp + 0x88]
push edx
call fcn.004533ae
add esp, 4
xor eax, eax
cmp dword [esp + 0x2c], 0x10
mov word [esp + 0x88], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
jae 0x41182f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41195e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x41195e
push 3
call fcn.00434cf0
mov ecx, eax
call fcn.00434d00
test al, al
je 0x4118e9
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x411874
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0xac]
push str.Executing_DELETE_command_fail_with_error_code__i__dstFile__s
push ecx
call fcn.00437960
add esp, 0x10
push eax
push str.processCommands
push 0x4b
push 0x47bbd0
push 3
mov byte [esp + 0x150], 9
call fcn.00434cf0
mov ecx, eax
call fcn.00434dd0
cmp dword [esp + 0xb8], 0x10
mov byte [esp + 0x13c], 1
jb 0x4118d0
mov edx, dword [esp + 0xa4]
push edx
call fcn.004533ae
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov eax, dword [edi + 0xc]
cmp dword [eax + ebp + 4], 1
jne 0x411918
cmp dword [eax + ebp + 0x14], ebx
je 0x411ce1
mov edx, dword [eax + ebp + 0xc]
mov ecx, dword [eax + ebp + 8]
push edx
mov edx, dword [eax + ebp + 0x14]
push ecx
call edx
add esp, 8
test eax, eax
jne 0x411ce1
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x411930
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004533ae
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], esi
jb 0x411cbb
mov edx, dword [esp + 0x34]
push edx
call fcn.004533ae
add esp, 4
xor eax, eax
jmp 0x411d33
mov eax, dword [edi + 0xc]
cmp dword [eax + ebp + 0x10], ebx
je 0x411ce1
mov edx, dword [eax + ebp + 0xc]
mov ecx, dword [eax + ebp + 8]
push edx
mov edx, dword [eax + ebp + 0x10]
push ecx
call edx
add esp, 8
test eax, eax
jne 0x411ce1
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x41199e
mov eax, dword [esp + 0x18]
push eax
call fcn.004533ae
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], esi
jb 0x411cbb
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004533ae
add esp, 4
xor eax, eax
jmp 0x411d33
mov edx, dword [eax + 8]
cmp edx, ebx
je 0x411ce1
cmp dword [eax + 0xc], ebx
je 0x411ce1
xor eax, eax
mov word [esp + 0x6c], ax
mov eax, edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
lea esi, [eax + 2]
jmp 0x411a00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411a00
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.004043a0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0x144], 2
call fcn.00437c40
add esp, 8
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x140], 3
call fcn.00405310
cmp dword [esp + 0xd4], 0x10
jb 0x411a63
mov eax, dword [esp + 0xc0]
push eax
call fcn.004533ae
add esp, 4
cmp dword [esp + 0x80], 8
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x13c], 1
jb 0x411a9b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004533ae
add esp, 4
mov ecx, dword [edi + 0xc]
mov eax, 7
xor edx, edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
mov ecx, dword [ecx + ebp + 0xc]
mov dword [esp + 0x64], eax
mov eax, ecx
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
lea esi, [eax + 2]
jmp 0x411ad0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x411ad0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004043a0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov byte [esp + 0x144], 4
call fcn.00437c40
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 5
call fcn.00405310
cmp dword [esp + 0xf0], 0x10
jb 0x411b33
mov edx, dword [esp + 0xdc]
push edx
call fcn.004533ae
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x13c], 1
jb 0x411b68
mov eax, dword [esp + 0x50]
push eax
call fcn.004533ae
add esp, 4
xor ecx, ecx
mov esi, 0x10
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x2c], esi
jae 0x411b8e
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x411b9c
lea eax, [esp + 0x34]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x411cbf
push 3
call fcn.00434cf0
mov ecx, eax
call fcn.00434d00
test al, al
je 0x411c5a
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x411bd1
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x411bdf
lea eax, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x120]
push str.Executing_COPY_command_fail_with_error_code__i__srcFile__s__dstFile__s
push edx
call fcn.00437960
add esp, 0x14
push eax
push 0x47baf0
push 0x2c
push 0x47bb00
push 3
mov byte [esp + 0x150], 6
call fcn.00434cf0
mov ecx, eax
call fcn.00434dd0
mov byte [esp + 0x13c], 1
cmp dword [esp + 0x128], esi
jb 0x411c41
mov eax, dword [esp + 0x114]
push eax
call fcn.004533ae
add esp, 4
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
mov ecx, dword [edi + 0xc]
cmp dword [ecx + ebp + 4], 1
lea eax, [ecx + ebp]
jne 0x411c85
cmp dword [eax + 0x14], ebx
je 0x411ce1
mov eax, ecx
mov ecx, dword [eax + ebp + 0xc]
mov edx, dword [eax + ebp + 8]
mov eax, dword [eax + ebp + 0x14]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x411ce1
cmp dword [esp + 0x2c], esi
jb 0x411c98
mov edx, dword [esp + 0x18]
push edx
call fcn.004533ae
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x48], esi
jb 0x411cbb
mov eax, dword [esp + 0x34]
push eax
call fcn.004533ae
add esp, 4
xor eax, eax
jmp 0x411d33
mov ecx, dword [edi + 0xc]
cmp dword [ecx + ebp + 0x10], ebx
je 0x411ce1
mov eax, ecx
mov ecx, dword [eax + ebp + 0xc]
mov edx, dword [eax + ebp + 8]
mov eax, dword [eax + ebp + 0x10]
push ecx
push edx
call eax
add esp, 8
test eax, eax
je 0x411d5b
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x20
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 8]
jl 0x411720
cmp dword [esp + 0x2c], 0x10
jb 0x411d0a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004533ae
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x411d2e
mov edx, dword [esp + 0x34]
push edx
call fcn.004533ae
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0045407e
add esp, 0x12c
ret
lea ecx, [esp + 0x18]
call fcn.00405fd0
lea ecx, [esp + 0x34]
call fcn.00405fd0
xor eax, eax
jmp 0x411d33