Function at 0x5e2920
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x74a9b5
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
cmp eax, 1
jne 0x5e2970
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5e2b64
mov dword [esi], 0
call fcn.005dc9c0
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x5e2a6a
cmp eax, 0xb
je 0x5e2a6a
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00483da0
movups xmm0, xmmword [str.boost::filesystem::remove]
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x7a2fb8]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x7a2fc0]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x5e29ee
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete byte [ebp + 0xf]
test eax, eax
je 0x5e2a16
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5e2a33
mov dword [esi], 0
call fcn.005dc9c0
mov dword [esi + 4], eax
jmp 0x5e2a33
mov edi, dword [ebp + 0x10]
call fcn.005dc9c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x5e2b88
mov dword [edi], eax
mov dword [edi + 4], esi
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5e2b5e
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e2b54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e2bb4
jmp 0x5e2b54
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push 0x20
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00483da0
movups xmm0, xmmword [str.boost::filesystem::remove]
mov dword [ebp - 0x34], 0x19
mov dword [ebp - 0x30], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x7a2fb8]
movq qword [eax + 0x10], xmm0
mov cl, byte [0x7a2fc0]
mov byte [eax + 0x18], cl
mov byte [eax + 0x19], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x5e2ad6
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
sete byte [ebp + 0xf]
test eax, eax
je 0x5e2afe
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5e2b2e
mov dword [esi], 0
call fcn.005dc9c0
mov dword [esi + 4], eax
jmp 0x5e2b2e
mov edi, dword [ebp + 0x10]
call fcn.005dc9c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x5e2b29
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004e6020
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x44]
push dword [ebp + 8]
jmp 0x5e2b9d
mov dword [edi], eax
mov dword [edi + 4], esi
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x5e2b5e
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e2b54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e2bb9
push edx
push ecx
call fcn.00512900
add esp, 8
cmp byte [ebp + 0xf], 0
je 0x5e2b76
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004e6020
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.005e0750
push 0x83a780
lea eax, [ebp - 0x78]
push eax
call fcn.00700933
call fcn.0070b6e4
call fcn.0070b6e4
int3