Function at 0x4b8880
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x504ea4
push eax
mov eax, 0x429c
mov dword fs:[0], esp
call fcn.004c3350
push ebx
push ebp
push esi
push edi
mov ecx, 0x103f
xor eax, eax
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov eax, dword [0x542d10]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x42bc]
lea edx, [esp + 0x14]
xor ebp, ebp
push 1
mov ecx, dword [esi]
push edx
mov dword [esp + 0x42bc], ebp
mov edi, dword [ecx - 8]
mov ecx, esi
call fcn.004d2183
mov eax, dword [eax]
push 0x539b00
push eax
call fcn.004c141b
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004dae12
test bl, bl
je 0x4b890d
push esi
lea ecx, [esp + 0x24]
call fcn.004daf4b
jmp 0x4b893e
dec edi
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.004d21ff
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x42b8], 1
call fcn.004daf4b
lea ecx, [esp + 0x14]
mov byte [esp + 0x42b4], 0
call fcn.004dae12
mov eax, dword [0x542d10]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1ac], 0x547498
mov ebx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x42c8]
push 0x53b948
mov byte [esp + 0x42b8], 5
mov eax, dword [esi]
push eax
call fcn.004c141b
add esp, 8
test eax, eax
je 0x4b89c9
lea ecx, [esp + 0x14]
push 3
push ecx
mov ecx, esi
call fcn.004d2183
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x42b8], 6
call fcn.004daf4b
lea ecx, [esp + 0x14]
mov byte [esp + 0x42b4], 5
call fcn.004dae12
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov ebp, edx
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov eax, dword [esp + edi*4 + 0x1ac]
push eax
call fcn.004daf9b
mov ecx, dword [esp + 0x10]
push 0x547498
push ecx
call fcn.004c141b
add esp, 8
test eax, eax
jne 0x4b8a2b
lea edx, [esp + 0x20]
push 0x539b00
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004db0a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42b8], 7
call fcn.004daf4b
lea ecx, [esp + 0x34]
mov byte [esp + 0x42b4], 5
call fcn.004dae12
lea ecx, [esp + 0x10]
push 0x53b948
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.004db0a7
mov eax, dword [eax]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], esi
call fcn.004dae12
cmp esi, 0xffffffff
je 0x4b8cb8
mov eax, dword [esp + 0x42cc]
test eax, eax
je 0x4b8ab4
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], 0
rep stosd dword es:[edi], eax
push 1
push 0
push 0
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4b8ab4
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4b8a85
mov cl, byte [esp + 0x6c]
lea edx, [esp + 0x6c]
test edx, edx
je 0x4b8af5
test cl, 0x10
je 0x4b8bf2
cmp byte [esp + 0x98], 0x2e
jne 0x4b8af5
mov al, byte [esp + 0x99]
test al, al
je 0x4b8ca0
cmp al, 0x2e
jne 0x4b8af5
mov al, byte [esp + 0x9a]
test al, al
je 0x4b8ca0
test cl, 0x10
je 0x4b8bf2
lea eax, [esp + 0x98]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.004db0a7
push 0x539b00
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x42bc], 8
push eax
call fcn.004db0a7
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x42b8], 9
call fcn.004daf4b
lea ecx, [esp + 0x48]
mov byte [esp + 0x42b4], 8
call fcn.004dae12
lea ecx, [esp + 0x44]
mov byte [esp + 0x42b4], 5
call fcn.004dae12
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
inc eax
push eax
call fcn.004db3f6
mov edi, dword [esp + 0x28]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + ebx*4 + 0x1ac], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [ebx + 1]
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cdq
mov ecx, 0x1040
idiv ecx
lea ecx, [esp + 0x18]
mov ebx, edx
call fcn.004dae80
mov eax, dword [esp + 0x42c4]
lea edx, [esp + 0x14]
push 1
push edx
push eax
mov byte [esp + 0x42c0], 0xa
call dword [esp + 0x42cc]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x42b4], 5
call fcn.004dae12
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
jmp 0x4b8ca0
lea ecx, [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.004db0a7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42b8], 0xb
call fcn.004daf4b
lea ecx, [esp + 0x38]
mov byte [esp + 0x42b4], 5
call fcn.004dae12
test ebp, ebp
je 0x4b8c83
lea ecx, [esp + 0x40]
push 3
push ecx
lea ecx, [esp + 0x20]
call fcn.004d2183
mov eax, dword [eax]
push ebp
push eax
call fcn.004c1c2c
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete byte [esp + 0x1f]
call fcn.004dae12
mov al, byte [esp + 0x1f]
test al, al
je 0x4b8ca0
mov eax, dword [esp + 0x42c4]
lea edx, [esp + 0x18]
push 0
push edx
push eax
call dword [esp + 0x42cc]
add esp, 0xc
test eax, eax
je 0x4b8cee
jmp 0x4b8ca0
mov edx, dword [esp + 0x42c4]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [esp + 0x42cc]
add esp, 0xc
test eax, eax
je 0x4b8cee
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b8a65
mov edi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + edi*4 + 0x1ac]
cmp eax, 0x547498
je 0x4b8cd6
push eax
call fcn.004db41f
add esp, 4
lea eax, [edi + 1]
mov ecx, 0x1040
cdq
idiv ecx
cmp edx, ebx
mov dword [esp + 0x30], edx
je 0x4b8d54
jmp 0x4b89c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x24]
mov byte [esp + 0x42b4], 4
call fcn.004dae12
lea ecx, [esp + 0x28]
mov byte [esp + 0x42b4], 3
call fcn.004dae12
lea ecx, [esp + 0x18]
mov byte [esp + 0x42b4], 2
call fcn.004dae12
lea ecx, [esp + 0x10]
mov byte [esp + 0x42b4], 0
call fcn.004dae12
lea ecx, [esp + 0x20]
mov dword [esp + 0x42b4], 0xffffffff
call fcn.004dae12
mov eax, 2
jmp 0x4b8db1
lea ecx, [esp + 0x24]
mov byte [esp + 0x42b4], 4
call fcn.004dae12
lea ecx, [esp + 0x28]
mov byte [esp + 0x42b4], 3
call fcn.004dae12
lea ecx, [esp + 0x18]
mov byte [esp + 0x42b4], 2
call fcn.004dae12
lea ecx, [esp + 0x10]
mov byte [esp + 0x42b4], 0
call fcn.004dae12
lea ecx, [esp + 0x20]
mov dword [esp + 0x42b4], 0xffffffff
call fcn.004dae12
mov eax, 1
mov ecx, dword [esp + 0x42ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x42a8
ret