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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb65a
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x51c0b0]
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 - 0x13c], 0
call fcn.00497159
test al, al
je 0x436045
lea eax, [ebp - 0xd0]
push eax
call fcn.0049065a
add esp, 4
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x4360d3
sub esp, 0x30
lea eax, [ebp - 0x131]
mov ecx, esp
mov dword [ebp - 0x140], esp
mov dword [ebp - 0x138], ecx
push 0
push eax
push 0x4d7438
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 2
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x138], esp
lea eax, [ebp - 0x131]
mov dword [ebp - 0x144], ecx
push 0
push eax
push 0x4d7438
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa0]
push 0
push eax
mov byte [ebp - 4], 0
call fcn.00490aab
add esp, 0x68
mov dword [ebp - 4], 5
mov ebx, 2
push 0
mov dword [ebp - 0x13c], ebx
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x4dd804
mov dword [ebp - 0x48], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 8
test bl, 2
je 0x436116
and ebx, 0xfffffffd
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.00404db0
mov byte [ebp - 4], 0xa
test bl, 1
je 0x436137
and ebx, 0xfffffffe
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd0]
call fcn.00404db0
sub esp, 0x30
lea eax, [ebp - 0x70]
mov ecx, esp
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x138], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 0xd
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x138], esp
lea eax, [ebp - 0x131]
mov dword [ebp - 0x140], ecx
push 0
push eax
push 0x4e3160
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x40]
push 1
push eax
mov byte [ebp - 4], 0xa
call fcn.00490aab
add esp, 0x68
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
lea eax, [esi + 4]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x4361c5
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4361e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4363bf
push 0
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042aa70
mov byte [ebp - 4], 0x13
push 0x4dcb38
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0040c740
mov byte [ebp - 4], 0x14
push edi
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0040c8b0
add esp, 0x18
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xd0]
call fcn.00404db0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x100]
call fcn.00404db0
push 0
xor ebx, ebx
mov dword [ebp - 0xa0], 0x4dd804
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x131]
push eax
push str.open
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x78], 0x4dcac4
setne bl
call fcn.004042c0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0xa0]
push eax
push 0
push 1
push 0xffffffffffffffff
push ebx
sub esp, 0x30
lea eax, [ebp - 0x131]
mov ecx, esp
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x138], ecx
push 0
push eax
push 0x4d7438
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 0x1d
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x138], esp
lea eax, [ebp - 0x130]
mov dword [ebp - 0x140], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 0x1f
sub esp, 0x30
mov dword [ebp - 0x140], esp
mov ecx, esp
lea eax, [ebp - 0x131]
push 0
push eax
mov dword [ebp - 0x148], ecx
push 0x4d7438
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1b
call fcn.00490f12
add esp, 0xa4
test eax, eax
setne bl
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa0]
call fcn.00404db0
test bl, bl
je 0x436348
mov edi, 0x8004070c
jmp 0x4363b0
cmp byte [ebp + 8], 0
je 0x4363ae
push dword [0x5218f4]
mov edi, dword [0x5218ec]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x5218f0]
call esi
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042a9b0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x100]
call fcn.00404db0
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 - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4363b0
xor edi, edi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x130]
call fcn.00404db0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00404db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404db0
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.004996ca
mov esp, ebp
pop ebp
ret