Function at 0x42ff20
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e9b
mov eax, dword fs:[0]
push eax
sub esp, 0xe80
mov eax, dword [0x4d61d4]
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 esi, dword [ebp + 8]
xor bl, bl
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe84], esi
mov dword [ebp - 0xe80], eax
test esi, esi
je 0x4301bf
test eax, eax
je 0x4301bf
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004693b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
add esp, 0xc
push esi
push eax
call edi
push 0x4ac5cc
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0xe70]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0xe88], edi
cmp edi, 0xffffffff
je 0x4301bf
lea eax, [ebp - 0xe70]
mov bl, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4301b8
lea eax, [ebp - 0xe70]
push eax
push dword [ebp - 0xe80]
push esi
call fcn.00430600
add esp, 0xc
test al, al
setne al
test al, al
jne 0x430192
test dword [ebp - 0xe70], 0x10
jne 0x43018e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
lea eax, [ebp - 0xe44]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.004693b0
push dword [ebp - 0xe80]
lea eax, [ebp - 0xc20]
push 0x400
push eax
call fcn.0046fa9c
add esp, 0x18
lea eax, [ebp - 0xe44]
push eax
lea eax, [ebp - 0xc20]
push eax
call esi
mov dword [ebp - 0xe7c], 0
mov dword [ebp - 0xe78], 0
mov dword [ebp - 0xe74], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe7c]
push eax
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00431660
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 1
sete bh
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xe7c]
test esi, esi
je 0x430184
mov edi, dword [ebp - 0xe78]
cmp esi, edi
je 0x43011a
mov ecx, esi
call fcn.0042fd90
add esi, 0xc
cmp esi, edi
jne 0x430106
mov esi, dword [ebp - 0xe7c]
mov ecx, dword [ebp - 0xe74]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x430156
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4301dd
push ecx
push esi
call fcn.00439e29
mov edi, dword [ebp - 0xe88]
add esp, 8
mov dword [ebp - 0xe7c], 0
mov dword [ebp - 0xe78], 0
mov dword [ebp - 0xe74], 0
mov esi, dword [ebp - 0xe84]
test bh, bh
jne 0x430192
xor al, al
jmp 0x430194
mov al, 1
test bl, bl
je 0x4301a0
test al, al
je 0x4301a0
mov bl, 1
jmp 0x4301a2
xor bl, bl
lea eax, [ebp - 0xe70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42ffe3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
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.0043a373
mov esp, ebp
pop ebp
ret
call fcn.0046c89c
int3