Function at 0x4a5239
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x5036bc
call fcn.004c13fc
mov eax, 0x4290
call fcn.004c3350
push ebx
push esi
push edi
mov ecx, 0x103f
xor eax, eax
lea edi, [ebp - 0x4298]
rep stosd dword es:[edi], eax
mov eax, dword [0x542d10]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push 1
mov ecx, edi
mov eax, dword [edi]
pop esi
push esi
mov ebx, dword [eax - 8]
lea eax, [ebp - 0x20]
push eax
call fcn.004d2183
mov eax, dword [eax]
push 0x539b00
push eax
call fcn.004c141b
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x20]
setne byte [ebp + 0xb]
call fcn.004dae12
cmp byte [ebp + 0xb], 0
je 0x4a52b0
push edi
lea ecx, [ebp - 0x1c]
call fcn.004daf4b
jmp 0x4a52d6
dec ebx
lea eax, [ebp + 8]
push ebx
push eax
mov ecx, edi
call fcn.004d21ff
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004daf4b
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004dae12
mov eax, dword [0x542d10]
and dword [ebp - 0x28], 0
mov ebx, 0x547498
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x429c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x14]
push 0x53b948
mov byte [ebp - 4], 5
mov eax, dword [edi]
push eax
call fcn.004c141b
pop ecx
test eax, eax
pop ecx
je 0x4a5343
lea eax, [ebp + 8]
push 3
push eax
mov ecx, edi
call fcn.004d2183
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004daf4b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004dae12
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
push dword [ebp + edi*4 - 0x429c]
call fcn.004daf9b
push ebx
push dword [ebp - 0x10]
call fcn.004c141b
pop ecx
test eax, eax
pop ecx
jne 0x4a5395
lea eax, [ebp - 0x1c]
push 0x539b00
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004db0a7
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004daf4b
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 5
call fcn.004dae12
lea eax, [ebp - 0x10]
push 0x53b948
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004db0a7
mov eax, dword [eax]
lea ecx, [ebp - 0x19c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x40]
mov dword [ebp + 8], eax
call fcn.004dae12
cmp dword [ebp + 8], 0xffffffff
je 0x4a554a
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x4a5409
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
rep stosd dword es:[edi], eax
push 1
push ebx
push ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4a5409
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4a53e0
lea eax, [ebp - 0x19c]
push eax
call fcn.004a5612
test eax, eax
pop ecx
jne 0x4a552a
test byte [ebp - 0x19c], 0x10
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x10]
push eax
je 0x4a54be
lea eax, [ebp - 0x30]
push eax
call fcn.004db0a7
push 0x539b00
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
call fcn.004db0a7
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004daf4b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004dae12
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.004dae12
cmp dword [ebp + 0x1c], ebx
je 0x4a54ad
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.004db3f6
push dword [ebp - 0x14]
mov edi, eax
push edi
call fcn.004c23e0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, 0x1040
mov dword [ebp + eax*4 - 0x429c], edi
inc eax
cdq
idiv ecx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
push 1
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
add esp, 0xc
jmp 0x4a552a
lea eax, [ebp - 0x3c]
push eax
call fcn.004db0a7
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004daf4b
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004dae12
cmp dword [ebp - 0x2c], ebx
je 0x4a5518
lea eax, [ebp - 0x34]
push 3
push eax
lea ecx, [ebp - 0x18]
call fcn.004d2183
push dword [ebp - 0x2c]
mov eax, dword [eax]
push eax
call fcn.004c1c2c
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x34]
inc bl
call fcn.004dae12
test bl, bl
je 0x4a552a
push 0
jmp 0x4a5519
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x4a557f
lea eax, [ebp - 0x19c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a53cc
mov edi, dword [ebp - 0x28]
mov ebx, 0x547498
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x1c], 0
je 0x4a55c4
mov eax, dword [ebp + edi*4 - 0x429c]
cmp eax, ebx
je 0x4a5567
push eax
call fcn.004db41f
pop ecx
lea eax, [edi + 1]
mov ecx, 0x1040
cdq
idiv ecx
cmp edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
je 0x4a55c4
jmp 0x4a5349
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004dae12
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004dae12
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004dae12
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004dae12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004dae12
push 2
jmp 0x4a5602
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004dae12
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004dae12
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004dae12
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004dae12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004dae12
push 1
mov ecx, dword [ebp - 0xc]
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret