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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be8b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x5210b0]
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 0x437c0c
call fcn.00499d18
test al, al
je 0x437b15
lea eax, [ebp - 0xa0]
push eax
call fcn.004930ed
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x437ba2
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 0x4db368
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00404150
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 0x4db368
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.0049353e
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 0x437bc4
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004044f0
mov dword [ebp - 4], 1
test bl, 2
je 0x437be8
and ebx, 0xfffffffd
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00404be0
mov dword [ebp - 4], 0
test bl, 1
je 0x437c0c
and ebx, 0xfffffffe
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404be0
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], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
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 0x4e7228
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push 1
push eax
mov byte [ebp - 4], 0
call fcn.0049353e
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 0x437c9a
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x437cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x437e88
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042b730
mov byte [ebp - 4], 0x10
push 0x4e0968
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c930
mov byte [ebp - 4], 0x11
push edi
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040caa0
add esp, 0x18
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa0]
call fcn.00404be0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00404be0
push 0
xor ebx, ebx
mov dword [ebp - 0x70], 0x4e1680
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x101]
push eax
push str.open
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4e1670
setne bl
call fcn.00404150
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 0x4db368
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00404150
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], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
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 0x4db368
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x18
call fcn.0049397e
add esp, 0xa4
test eax, eax
setne bl
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x70]
call fcn.00404be0
test bl, bl
je 0x437e11
mov edi, 0x8004070c
jmp 0x437e79
cmp byte [ebp + 8], 0
je 0x437e77
push dword [0x5268a0]
mov edi, dword [0x526898]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x52689c]
call esi
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042b670
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00404be0
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 0x437e79
xor edi, edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x100]
call fcn.00404be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404be0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404be0
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.0049c22a
mov esp, ebp
pop ebp
ret