Function at 0x4ebb70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x568fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x40], eax
call fcn.004e94f0
mov al, byte [esi]
test al, al
jne 0x4ebd24
cmp dword [esi + 0x2b4], 0
je 0x4ebeb8
test al, al
jne 0x4ebd24
mov eax, dword [esi + 0x2b0]
mov edi, dword [esi + 0x2b4]
add edi, eax
cmp eax, edi
jbe 0x4ebbc9
call fcn.00501daa
mov ebx, dword [esi + 0x298]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], edi
test ebx, ebx
jne 0x4ebbf5
call fcn.00501daa
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec edi
cmp edi, ecx
ja 0x4ebc02
test ebx, ebx
je 0x4ebbfb
mov ebx, dword [ebx]
jmp 0x4ebbfd
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4ebbe2
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x4ebc07
call fcn.00501daa
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x60], edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edx
lea edi, [esi + 0x258]
call fcn.004eb430
push eax
mov ecx, edi
call fcn.004db0b0
mov eax, dword [esi + 0x2b4]
xor ebx, ebx
cmp eax, ebx
je 0x4ebc65
mov ecx, dword [esi + 0x2b0]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x2ac]
cmp ecx, eax
ja 0x4ebc48
sub eax, ecx
mov edx, dword [esi + 0x2a8]
mov ecx, dword [edx + eax*4]
call fcn.004dae70
add dword [esi + 0x2b4], 0xffffffff
jne 0x4ebc65
mov dword [esi + 0x2b0], ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.004daea0
cmp dword [esi + 0x290], ebx
jne 0x4ebcd0
push 1
xor eax, eax
push 0x532a34
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.00401260
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004db270
push eax
lea ecx, [ebp - 0x3c]
call fcn.004db0b0
lea ecx, [ebp - 0x88]
call fcn.004dae70
cmp dword [ebp - 0x44], 8
jb 0x4ebcfa
mov eax, dword [ebp - 0x58]
push eax
call fcn.00501b8f
add esp, 4
jmp 0x4ebcfa
lea ecx, [esi + 0x27c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004db270
push eax
lea ecx, [ebp - 0x3c]
call fcn.004db0b0
lea ecx, [ebp - 0x88]
call fcn.004dae70
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x4ebd06
lea eax, [ebp - 0x38]
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x3c]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.004dae70
jmp 0x4ebd50
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ebd50
mov ecx, dword [esi + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
xor edx, edx
cmp dword [esi + 0x254], 0xffffffff
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], dx
jne 0x4ebd9c
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x27c]
mov byte [esi], dl
mov dword [ebp - 0x44], 7
call fcn.004015d0
cmp dword [ebp - 0x44], 8
jb 0x4ebb93
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00501b8f
add esp, 4
jmp 0x4ebb93
lea edi, [esi + 0x30]
mov ebx, 7
mov eax, edi
mov dword [ebp - 0x44], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ebdb0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401260
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.004daea0
cmp dword [ebp - 0x44], 8
jb 0x4ebde7
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00501b8f
add esp, 4
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.004edf90
test al, al
je 0x4ebe03
lea ecx, [ebp - 0x20]
call fcn.004dae70
jmp 0x4ebb93
xor eax, eax
mov word [ebp - 0x58], ax
mov eax, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
lea edx, [eax + 2]
jmp 0x4ebe20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ebe20
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401260
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [esi + 0x258]
call fcn.004db270
push eax
lea ecx, [ebp - 0x20]
call fcn.004db0b0
lea ecx, [ebp - 0x88]
call fcn.004dae70
cmp dword [ebp - 0x44], 8
jb 0x4ebe75
mov eax, dword [ebp - 0x58]
push eax
call fcn.00501b8f
add esp, 4
test byte [esi + 4], 0x10
je 0x4ebea2
cmp byte [esi + 0x274], 0
je 0x4ebe93
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0x298]
call fcn.004ebb10
test byte [esi + 0x278], 2
je 0x4ebeab
lea edx, [ebp - 0x20]
push edx
jmp 0x4ebec8
test byte [esi + 0x278], 1
jne 0x4ebec4
lea ecx, [ebp - 0x20]
call fcn.004dae70
jmp 0x4ebb93
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.004dae50
jmp 0x4ebeda
lea eax, [ebp - 0x20]
push eax
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.004daea0
lea ecx, [ebp - 0x20]
call fcn.004dae70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501b9a
mov esp, ebp
pop ebp
ret 4