Function at 0x493aa8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp word [ebp + 0x1e], 0
jne 0x493ae0
cmp dword [ebp + 0xc], 0
jne 0x493ae0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x493da1
push ebx
mov ecx, dword [esi]
push ecx
call fcn.00413ca8
add esp, 8
test al, al
jne 0x493afb
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x493da1
cmp dword [ebp + 0xc], 0
je 0x493b0e
mov eax, dword [ebp + 0xc]
push eax
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 - 0x1c], ecx
mov edx, ebx
cmp edi, eax
jle 0x493b5b
mov cl, byte [edx]
mov ebx, dword [ebp - 0x1c]
mov byte [ebx], cl
inc eax
inc dword [ebp - 0x1c]
inc edx
cmp edi, eax
jg 0x493b4b
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 0x4e15da
push ebx
call fcn.0049c120
add esp, 8
push 0x4e15dc
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x15c]
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 0x493d88
lea edx, [ebp - 0x130]
push edx
push esi
call fcn.004930d0
add esp, 8
test al, al
jne 0x493d68
mov ecx, dword [ebp - 0x15c]
push ecx
push esi
call fcn.004930bc
add esp, 8
test al, al
jne 0x493d68
lea eax, [ebp - 0x130]
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 0x4e15e0
push ebx
call fcn.0049c120
add esp, 8
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.0049c120
add esp, 8
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 0x15], 0
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 0x493cba
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x2b8]
jle 0x493caf
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
jmp 0x493cb5
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
cmp byte [ebp + 0x14], 0
je 0x493cf1
mov cl, byte [ebp - 0x15]
lea edx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x1ac]
mov eax, dword [ebp - 0x2b8]
push eax
push edx
push ecx
lea eax, [ebp - 0x130]
push eax
mov edx, dword [ebp - 0xc]
push edx
push esi
call fcn.00492968
add esp, 0x1c
mov ebx, eax
jmp 0x493d1e
mov al, byte [ebp - 0x15]
lea ecx, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x1ac]
mov edx, dword [ebp - 0x2b8]
push edx
push ecx
push eax
lea edx, [ebp - 0x130]
push edx
push 0
push esi
call fcn.00492968
add esp, 0x1c
mov ebx, eax
cmp word [ebp + 0x1e], 0
je 0x493d34
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 0x493d49
push ebx
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00412a1c
add esp, 0xc
mov eax, dword [ebp - 0x13c]
push eax
mov edx, dword [ebp - 0x140]
push edx
mov ecx, dword [esi]
push ecx
call fcn.00413004
add esp, 0xc
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
lea eax, [ebp - 0x15c]
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 0x493bdb
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_FindClose
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049b6d4
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret