Function at 0x42a740
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x44a7ac
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x45c020]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c020]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [0x45f304]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x298]
xor edi, edi
xor ebp, ebp
mov ecx, 0x45f304
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ebp
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x290], edi
mov eax, dword [0x45f304]
mov edx, dword [eax + 0xc]
mov ecx, 0x45f304
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
cmp esi, edi
mov byte [esp + 0x290], 1
jne 0x42a7d1
xor eax, eax
jmp 0x42a7e5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42a7d6
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.0040cba0
lea esi, [esp + 0x14]
call fcn.0042a100
mov eax, dword [esp + 0x14]
push eax
push str._s.
lea edi, [esp + 0x28]
call fcn.0040dd60
mov edx, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x42aa04
mov ebp, dword [esp + 0x29c]
mov ecx, 0x450da8
lea eax, [esp + 0x60]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42a866
test dx, dx
je 0x42a862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42a866
add eax, 4
add ecx, 4
test dx, dx
jne 0x42a840
xor eax, eax
jmp 0x42a86b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42a9d5
mov ecx, 0x450cf0
lea eax, [esp + 0x60]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42a8a6
test dx, dx
je 0x42a8a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42a8a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42a880
xor eax, eax
jmp 0x42a8ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42a9d5
test byte [esp + 0x34], 0x10
je 0x42a92a
mov eax, dword [0x45f304]
mov edx, dword [eax + 0xc]
mov ecx, 0x45f304
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x60]
mov byte [esp + 0x290], 2
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0x450dac
lea edi, [esp + 0x30]
call fcn.0040dd60
mov esi, dword [esp + 0x30]
add esp, 0xc
push ebp
push esi
call fcn.0042a740
add esp, 8
test eax, eax
jne 0x42a90d
test ebp, ebp
je 0x42aa9a
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42a9c9
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.0040c420
lea edi, [esp + 0x1c]
mov byte [esp + 0x290], 3
call fcn.0042af20
mov edx, edi
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x1c]
call fcn.0040c850
mov eax, dword [eax]
or dword [esp + 0x20], 1
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42a977
test ebp, ebp
jne 0x42a977
mov bl, 1
jmp 0x42a979
xor bl, bl
test byte [esp + 0x18], 1
je 0x42a9a5
mov eax, dword [esp + 0x30]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a9a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test bl, bl
jne 0x42aab0
test edx, edx
jg 0x42a9d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a834
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
call esi
lea ecx, [esp + 0x14]
call fcn.0042a220
mov edi, dword [esp + 0x14]
push edi
call esi
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aa49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x290], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42aa70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044664e
add esp, 0x280
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a9f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42a9f5