Function at 0x4b6070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
test ebp, ebp
push esi
je 0x4b62de
cmp byte [ebp], 0
je 0x4b62de
mov eax, dword [0x5e0920]
push ebp
call dword [eax + 0x30]
test ah, 4
je 0x4b60b9
push 0
push ebp
call fcn.004a9890
add esp, 8
test eax, eax
jne 0x4b60d3
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov ecx, dword [0x5e0920]
push ebp
call dword [ecx + 0x58]
test eax, eax
je 0x4b60d3
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call fcn.004a97e0
add esp, 4
call fcn.0048cf60
cmp eax, 0xd
jne 0x4b62a6
mov edx, dword [0x5e0920]
push ebp
call dword [edx + 0x30]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b62a6
test bl, 0x10
jne 0x4b6113
push 0x14
jmp 0x4b62e0
test bh, 4
je 0x4b612b
push 1
push ebp
call fcn.004a9890
add esp, 8
test eax, eax
jne 0x4b62e8
test bl, 1
je 0x4b6178
mov eax, dword [0x5e0920]
and ebx, 0xfffffffe
push ebx
push ebp
call dword [eax + 0x64]
test eax, eax
je 0x4b62e8
mov ecx, dword [0x5e0920]
push ebp
call dword [ecx + 0x58]
test eax, eax
je 0x4b615f
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
call esi
push eax
call fcn.004a97e0
mov edx, dword [0x5e0920]
add esp, 4
or ebx, 1
push ebx
push ebp
call dword [edx + 0x64]
call fcn.004a9280
cmp eax, 2
je 0x4b62a6
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00464ab0
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
push esi
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.00464ad0
add esp, 0x10
test esi, esi
jle 0x4b61cd
cmp byte [eax + esi - 1], 0x5c
je 0x4b61cd
push 1
lea edx, [esp + 0x14]
push 0x5addc8
push edx
call fcn.00464ad0
add esp, 0xc
push 3
lea eax, [esp + 0x14]
push 0x5b861c
push eax
call fcn.00464ad0
add esp, 0xc
lea ecx, [esp + 0xe4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b6298
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, 0x5adee8
lea eax, [esp + 0x110]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b6231
test cl, cl
je 0x4b622d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b6231
add eax, 2
add esi, 2
test cl, cl
jne 0x4b620d
xor eax, eax
jmp 0x4b6236
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b6273
mov esi, 0x5abbd8
lea eax, [esp + 0x110]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4b626a
test cl, cl
je 0x4b6266
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4b626a
add eax, 2
add esi, 2
test cl, cl
jne 0x4b6246
xor eax, eax
jmp 0x4b626f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b6287
lea eax, [esp + 0xe4]
push eax
push edi
call ebx
test eax, eax
je 0x4b6291
jmp 0x4b6201
push 0x11
call fcn.0048cf70
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
push ecx
call fcn.00464cc0
add esp, 4
pop edi
call fcn.0048cf60
cmp eax, 0x29
jne 0x4b62ba
push 0x11
call fcn.0048cf70
add esp, 4
mov eax, dword [esp + 0x228]
test eax, eax
je 0x4b62e8
call fcn.0048cf60
cmp eax, 0x11
jne 0x4b62e8
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
push 2
call fcn.0048cf70
add esp, 4
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x4b62ff
push eax
push 0xffffffffffffffff
push ebp
call fcn.004a9720
add esp, 0xc
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret