Function at 0x42f370
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da500
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x6c0fe4]
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 ebx, dword [0x6e42b4]
mov dword [ebp - 0x2c4], ebx
cmp dword [ebx + 0xf58], 0
jne 0x42f5bd
lea ecx, [ebp - 0x2c8]
call fcn.0042efa0
push eax
mov ecx, 0x6e55cc
mov dword [ebp - 4], 0
call fcn.0040fe50
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f3f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x6e55cc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20]
push eax
call esi
push 0x693128
lea eax, [ebp - 0x1a]
push eax
call esi
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x42f443
mov dword [ebx + 0xf58], 0
xor eax, eax
jmp 0x42f5c2
lea edi, [ebx + 0x2b0]
jmp 0x42f456
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x42f49c
mov eax, dword [edi]
lea ebx, [esi*4]
mov eax, dword [eax + ebx]
add eax, 4
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42f567
inc esi
cmp esi, dword [edi + 4]
jb 0x42f474
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0041b400
mov esi, eax
push 0x6e55cc
lea ecx, [esi + 0x54]
mov byte [esi + 0x51], 1
call fcn.0040fe50
lea edx, [ebp - 0x70]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42f4c0
sub edx, ecx
lea eax, [ebp - 0x70]
sar edx, 1
lea ecx, [esi + 0x54]
push edx
push eax
call fcn.0040c810
push 3
push 0x693130
lea ecx, [esi + 0x58]
call fcn.0040c5e0
mov edx, 0x6e41f0
lea ecx, [esi + 0x5c]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42f4f6
sub edx, ebx
sar edx, 1
push edx
push 0x6e41f0
call fcn.0040c5e0
mov edx, 0x6e4210
lea ecx, [esi + 0x64]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42f520
sub edx, esi
sar edx, 1
push edx
push 0x6e4210
call fcn.0040c5e0
mov ebx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x70]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push eax
push 1
lea ecx, [ebx + 0x1a0]
call fcn.00482ce3
jmp 0x42f590
mov eax, dword [edi]
mov ecx, dword [ebx + eax]
test ecx, ecx
je 0x42f49c
cmp byte [ecx + 0x50], 0
je 0x42f53a
mov eax, dword [ebp - 0x2a0]
cmp eax, dword [ecx + 0x40]
jbe 0x42f58a
call fcn.00413e00
mov ebx, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42f450
push esi
mov dword [ebx + 0xf58], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
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.005b03a9
mov esp, ebp
pop ebp
ret