Function at 0x42e1eb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x460], eax
test ebx, ebx
je 0x42e44a
cmp dword [ebx], eax
je 0x42e44a
push dword [ebx]
call fcn.0041f203
lea edi, [eax + 1]
mov ecx, edi
shl ecx, 2
push ecx
mov dword [ebp - 0x468], edi
call fcn.0044a635
mov esi, eax
mov dword [ebp - 0x46c], esi
test esi, esi
je 0x42e44d
push edi
push esi
push dword [ebx]
call fcn.0042027c
mov eax, esi
mov dword [ebp - 0x464], eax
mov edi, esi
push 0x3b
pop edx
xor ecx, ecx
jmp 0x42e269
cmp word [edi], dx
je 0x42e26e
add edi, 2
cmp word [edi], cx
jne 0x42e261
mov esi, edi
cmp word [edi], cx
je 0x42e27f
xor ecx, ecx
mov word [edi], cx
add edi, 2
jmp 0x42e281
mov edi, ecx
lea ecx, [ebp - 0x45c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
jne 0x42e2a7
mov eax, edi
mov dword [ebp - 0x464], eax
jmp 0x42e426
and dword [ebp - 0x478], 0
mov eax, dword [ebp - 0x46c]
jmp 0x42e2c3
movzx ecx, word [esi]
test cx, cx
je 0x42e2e3
cmp ecx, 0x5c
je 0x42e2cc
sub esi, 2
cmp esi, eax
jae 0x42e2b6
jmp 0x42e2e3
push dword [ebp - 0x464]
xor eax, eax
mov word [esi + 2], ax
call fcn.0041f203
mov dword [ebp - 0x478], eax
mov esi, dword [ebp - 0x468]
lea eax, [esi*4 + 0x400]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x430]
push eax
call fcn.0041f203
mov ecx, dword [ebp - 0x478]
add eax, ecx
mov edx, 0x104
mov dword [ebp - 0x47c], eax
cmp eax, edx
jae 0x42e3f7
xor eax, eax
mov word [ebp - 0x20c], ax
test ecx, ecx
je 0x42e342
push edx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x464]
call fcn.0042027c
mov edx, 0x104
push edx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.0043e61b
lea eax, [ebp - 0x20c]
push eax
call fcn.004393f9
test eax, eax
jne 0x42e3f7
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x460]
inc eax
add eax, ecx
cmp eax, esi
jle 0x42e3b0
push dword [ebp - 0x470]
push dword [ebx]
call fcn.0044a655
test eax, eax
je 0x42e43f
mov ecx, dword [ebp - 0x460]
add esi, 0x100
add dword [ebp - 0x470], 0x400
mov dword [ebx], eax
mov dword [ebp - 0x468], esi
test ecx, ecx
je 0x42e3c4
mov eax, dword [ebx]
push 0x3b
pop edx
mov word [eax + ecx*2], dx
inc ecx
mov dword [ebp - 0x460], ecx
mov eax, dword [ebp - 0x468]
sub eax, ecx
push eax
mov eax, dword [ebx]
lea esi, [ecx + ecx]
add eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042027c
mov eax, dword [ebx]
add eax, esi
push eax
call fcn.0041f203
add dword [ebp - 0x460], eax
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e2f6
push dword [ebp - 0x474]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x42e25a
cmp dword [ebp - 0x460], edi
jne 0x42e43f
push dword [ebx]
call fcn.0044a645
and dword [ebx], edi
push dword [ebp - 0x46c]
call fcn.0044a645
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 4