Function at 0x43aaa0
Capabilities:
Copy file
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c56b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x52a0b0]
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 edi, edx
mov esi, ecx
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x20], 0
jne 0x43ac0c
call fcn.0049efb0
test al, al
je 0x43ab15
lea eax, [ebp - 0xa0]
push eax
call fcn.00498417
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x43aba2
sub esp, 0x30
lea eax, [ebp - 0x101]
mov ecx, esp
mov dword [ebp - 0x110], esp
mov dword [ebp - 0x108], ecx
push 0
push eax
push 0x4e23a8
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov dword [ebp - 4], 3
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x108], esp
lea eax, [ebp - 0x101]
mov dword [ebp - 0x114], ecx
push 0
push eax
push 0x4e23a8
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.00498868
add esp, 0x68
mov ecx, eax
mov dword [ebp - 4], 6
mov ebx, 2
lea eax, [ecx + 4]
mov dword [ebp - 0x10c], ebx
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp + 0x10]
cmp eax, ecx
je 0x43abc4
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404530
mov dword [ebp - 4], 1
test bl, 2
je 0x43abe8
and ebx, 0xfffffffd
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov dword [ebp - 4], 0
test bl, 1
je 0x43ac0c
and ebx, 0xfffffffe
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404c20
sub esp, 0x30
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x114], esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
mov byte [ebp - 4], 0xa
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x108], esp
lea eax, [ebp - 0x101]
mov dword [ebp - 0x110], ecx
push 0
push eax
push 0x4ef144
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push 1
push eax
mov byte [ebp - 4], 0
call fcn.00498868
add esp, 0x68
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
lea eax, [esi + 4]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x43ac9a
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43acb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x43ae88
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042cfb0
mov byte [ebp - 4], 0x10
push 0x4e8228
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c970
mov byte [ebp - 4], 0x11
push edi
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040cae0
add esp, 0x18
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa0]
call fcn.00404c20
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00404c20
push 0
xor ebx, ebx
mov dword [ebp - 0x70], 0x4e81b4
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x101]
push eax
push str.open
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4e8f38
setne bl
call fcn.00404190
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x70]
push eax
push 0
push 1
push 0xffffffffffffffff
push ebx
sub esp, 0x30
lea eax, [ebp - 0x101]
mov ecx, esp
mov dword [ebp - 0x114], esp
mov dword [ebp - 0x108], ecx
push 0
push eax
push 0x4e23a8
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov byte [ebp - 4], 0x1a
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x108], esp
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], ecx
push 0
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
mov byte [ebp - 4], 0x1c
sub esp, 0x30
mov dword [ebp - 0x110], esp
mov ecx, esp
lea eax, [ebp - 0x101]
push 0
push eax
mov dword [ebp - 0x118], ecx
push 0x4e23a8
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x18
call fcn.00498d79
add esp, 0xa4
test eax, eax
setne bl
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x70]
call fcn.00404c20
test bl, bl
je 0x43ae11
mov edi, 0x8004070c
jmp 0x43ae79
cmp byte [ebp + 8], 0
je 0x43ae77
push dword [0x52f8d0]
mov edi, dword [0x52f8c8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x52f8cc]
call esi
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042cef0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00404c20
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43ae79
xor edi, edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x100]
call fcn.00404c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404c20
mov eax, edi
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.004a14ba
mov esp, ebp
pop ebp
ret