Function at 0x4937bc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp word [ebp + 0x1e], 0
jne 0x4937e8
cmp dword [ebp + 0xc], 0
jne 0x4937e8
mov eax, dword [ebp - 0x10]
jmp 0x493aa0
push ebx
mov edx, dword [esi]
push edx
call fcn.00413ca8
add esp, 8
test al, al
jne 0x493800
mov eax, dword [ebp - 0x10]
jmp 0x493aa0
cmp dword [ebp + 0xc], 0
je 0x493813
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.00492c50
add esp, 8
mov dword [ebp - 4], 0x160
push ebx
call fcn.0049c15c
pop ecx
mov edi, eax
movsx eax, byte [ebx + edi - 1]
cmp eax, 0x5c
sete dl
and edx, 1
sub edi, edx
lea ecx, [edi + 1]
push ecx
call fcn.0049b898
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, ebx
cmp edi, eax
jle 0x493860
mov cl, byte [edx]
mov ebx, dword [ebp - 0x18]
mov byte [ebx], cl
inc eax
inc dword [ebp - 0x18]
inc edx
cmp edi, eax
jg 0x493850
mov eax, dword [ebp - 0xc]
mov byte [eax + edi], 0
lea edx, [edi + 5]
push edx
call fcn.0049b898
mov ebx, eax
mov eax, dword [ebp - 0xc]
pop ecx
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e15d2
push ebx
call fcn.0049c120
add esp, 8
push 0x4e15d4
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x158]
push eax
push ebx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
push ebx
call fcn.0049b6d4
cmp dword [ebp - 8], 0xffffffff
setne al
and eax, 1
pop ecx
test al, al
je 0x493a77
lea edx, [ebp - 0x12c]
push edx
push esi
call fcn.004930d0
add esp, 8
test al, al
jne 0x493a57
mov ecx, dword [ebp - 0x158]
push ecx
push esi
call fcn.004930bc
add esp, 8
test al, al
je 0x493a57
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c15c
pop ecx
lea eax, [eax + edi + 2]
push eax
call fcn.0049b898
mov ebx, eax
mov eax, dword [ebp - 0xc]
pop ecx
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x4e15d8
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.0049c120
add esp, 8
push ebx
push esi
call fcn.00493114
add esp, 8
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x2b8]
push 0x600
mov edx, dword [ebp - 4]
push edx
push ecx
push 0
push ebx
mov eax, dword [esi + 4]
push eax
call fcn.004a8af0
add esp, 0x18
push ebx
call fcn.0049b6d4
cmp dword [ebp + 0x18], 0
pop ecx
je 0x4939c8
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x2b4]
jle 0x4939bd
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
jmp 0x4939c3
mov edx, dword [ebp - 0x2b4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
cmp byte [ebp + 0x14], 0
je 0x4939ff
mov cl, byte [ebp - 0x11]
lea edx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x1a8]
mov eax, dword [ebp - 0x2b4]
push eax
push edx
push ecx
lea eax, [ebp - 0x12c]
push eax
mov edx, dword [ebp - 0xc]
push edx
push esi
call fcn.00492968
add esp, 0x1c
mov ebx, eax
jmp 0x493a2c
mov al, byte [ebp - 0x11]
lea ecx, [ebp - 0x158]
push eax
lea eax, [ebp - 0x1a8]
mov edx, dword [ebp - 0x2b4]
push edx
push ecx
push eax
lea edx, [ebp - 0x12c]
push edx
push 0
push esi
call fcn.00492968
add esp, 0x1c
mov ebx, eax
cmp word [ebp + 0x1e], 0
je 0x493a42
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp + 0x20]
push edx
call dword [ebp + 0x1c]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x493a57
push ebx
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00412a1c
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4938e0
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049b6d4
cmp dword [ebp + 0xc], 0
pop ecx
je 0x493a9d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412d20
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret