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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5193
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 0x43a9ec
call fcn.0049eb2a
test al, al
je 0x43a8f5
lea eax, [ebp - 0xa0]
push eax
call fcn.00497f4d
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x43a982
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.0049839e
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 0x43a9a4
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404530
mov dword [ebp - 4], 1
test bl, 2
je 0x43a9c8
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 0x43a9ec
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
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 0x4ee83c
mov dword [ecx], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push 1
push eax
mov byte [ebp - 4], 0
call fcn.0049839e
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 0x43aa7a
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43aa95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x43ac68
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042ce60
mov byte [ebp - 4], 0x10
push 0x4e79b0
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], 0x4e7908
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x101]
push eax
push str.open
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4e793c
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x18
call fcn.004988af
add esp, 0xa4
test eax, eax
setne bl
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x70]
call fcn.00404c20
test bl, bl
je 0x43abf1
mov edi, 0x8004070c
jmp 0x43ac59
cmp byte [ebp + 8], 0
je 0x43ac57
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.0042cda0
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 0x43ac59
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.004a103a
mov esp, ebp
pop ebp
ret