Function at 0x43fab0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537c60
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x464], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x43fe80
mov ecx, dword [eax + 0x60]
cmp byte [ecx + 0xf24], 0
je 0x43fe80
mov edx, ecx
cmp byte [edx + 0x112c], 0
je 0x43fd70
lea eax, [edx + 0xf24]
lea edx, [ebp - 0x118]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x43fb25
lea eax, [ebp - 0x118]
push eax
call fcn.004bf2e0
add esp, 4
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x60]
add eax, 0x112c
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43fb50
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x118]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43fb62
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x118]
push edx
call fcn.004bf2e0
add esp, 4
lea edi, [ebp - 0x118]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43fb90
mov eax, dword [0x550fc0]
mov dword [edi], eax
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x468], eax
cmp eax, 0xffffffff
je 0x43fcb4
mov eax, dword [ebx]
mov eax, dword [eax + 0x60]
add eax, 0xf24
lea edx, [ebp - 0x21c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x43fbd2
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004bf2e0
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
add eax, 0x112c
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43fbf7
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x21c]
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43fc10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x21c]
push eax
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x434]
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43fc40
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x21c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43fc52
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebp - 0x460], 0x10
jne 0x43fc92
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43fc92
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.004cabd0
add esp, 8
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43fbc2
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
add eax, 0xf24
lea edx, [ebp - 0x118]
jmp 0x43fcd0
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x43fcd0
lea eax, [ebp - 0x118]
push eax
call fcn.004bf2e0
add esp, 4
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x60]
add eax, 0x112c
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43fcf5
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x118]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43fd07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x320]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x561b20
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x43fd67
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.004cabd0
add esp, 8
lea edx, [ebp - 0x320]
push edx
call esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x60]
add eax, 0xf24
lea edx, [ebp - 0x118]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x43fd80
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf2e0
add esp, 4
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43fda0
mov edx, dword [0x550fc0]
mov dword [edi], edx
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43fe5e
mov edx, dword [ebp - 0x464]
mov eax, dword [edx]
mov eax, dword [eax + 0x60]
add eax, 0xf24
lea edx, [ebp - 0x21c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x43fde5
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x434]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43fe06
sub eax, edx
lea edi, [ebp - 0x21c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43fe16
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebp - 0x460], 0x10
jne 0x43fe48
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.004cabd0
add esp, 8
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43fdcf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
mov ecx, dword [ebp - 0x464]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
add eax, 0xf24
push eax
call fcn.004cabd0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret