Function at 0x4eb960
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
sub esp, 0x248
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
mov ebp, dword [esp + 0x254]
push esi
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov byte [ebp], 0
mov dword [ebp + 0x128], 0
mov dword [ebp + 0x12c], 0
call fcn.0044b580
test byte [ebp + 0x134], 8
mov esi, dword [ebp + 0x140]
mov dword [esp + 0x10], 0
je 0x4ebaef
cmp dword [esi + 0x258], 0
jne 0x4ebaef
xor ebx, ebx
mov dword [esi + 0x258], 1
mov eax, dword [ebp + 0x130]
xor edi, edi
mov dword [esp + 0x24], ebx
test eax, eax
je 0x4eba6c
cmp byte [eax], bl
je 0x4eba6c
push eax
call fcn.004e9db0
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4eba3b
cmp byte [ecx], bl
je 0x4eba3b
push ecx
call fcn.004e96e0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4eba60
mov cl, byte [eax]
test cl, cl
je 0x4eba60
cmp byte [eax + 1], bl
jne 0x4eba51
cmp cl, 0x5c
je 0x4eba60
push eax
call fcn.0046f5d0
add esp, 4
mov dword [esp + 0x24], eax
mov ebx, eax
push dword [esp + 0x10]
call fcn.0047f840
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0x108
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor ebx, ebx
test eax, eax
setne bl
mov dword [esp + 0x10], ebx
test eax, eax
je 0x4ebac9
push 0x107
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.0046f560
add esp, 0xc
test edi, edi
je 0x4ebac9
cmp byte [edi], 0
je 0x4ebac9
push edi
push ebp
call fcn.004ec8e0
add esp, 8
test eax, eax
jne 0x4ebac9
xor ebx, ebx
mov byte [ebp], al
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ebada
push eax
call fcn.0047f840
add esp, 4
test edi, edi
je 0x4ebae7
push edi
call fcn.0047f840
add esp, 4
test ebx, ebx
jne 0x4ebc63
mov eax, dword [ebp + 0x134]
and al, 0x1e
cmp al, 8
je 0x4ebc63
cmp dword [ebp + 0x138], 0
je 0x4ebc2f
push dword [ebp + 0x130]
call fcn.0046f5d0
mov edi, dword [ebp + 0x134]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x138], 0
mov ecx, edi
mov eax, edi
and ecx, 0x20
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 2
and al, 2
mov eax, edi
cmove ecx, edx
mov edx, ecx
or edx, 1
and al, 1
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 4
mov eax, edi
cmove ecx, edx
mov edx, ecx
or edx, 0x80
and al, 0x80
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 0x4000
and eax, 0x4000
mov eax, edi
cmove ecx, edx
mov edx, ecx
or edx, 0x100
and eax, 0x100
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 0x200
and eax, 0x200
mov eax, edi
cmove ecx, edx
mov edx, ecx
or edx, 0x400
and eax, 0x400
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 0x800
and eax, 0x800
mov eax, edi
cmove ecx, edx
mov edx, ecx
or edx, 0x1000
and eax, 0x1000
mov eax, edi
cmove edx, ecx
mov ecx, edx
or ecx, 0x2000
and eax, 0x2000
cmove ecx, edx
mov eax, ecx
or eax, 0x8000
and edi, 0x8000
lea edi, [esi + 4]
push edi
cmove eax, ecx
push ebx
mov dword [esi + 0x254], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
mov dword [esi], eax
call fcn.0047f840
add esp, 4
cmp dword [esi], 0xffffffff
je 0x4ebc2f
mov eax, dword [edi]
test al, 0x16
je 0x4ebc6e
and eax, dword [esi + 0x254]
test al, 0x16
jne 0x4ebc6e
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4ebc63
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edi, [esi + 4]
push edi
push eax
call ebx
test eax, eax
je 0x4ebc63
mov ecx, dword [edi]
test cl, 0x16
je 0x4ebc6e
mov eax, dword [esi + 0x254]
and eax, ecx
test al, 0x16
jne 0x4ebc6e
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x4ebc47
mov esi, dword [esp + 0x10]
xor ebx, ebx
jmp 0x4ebd1f
push 0x107
lea eax, [esi + 0x30]
push ebp
push eax
call fcn.0046f560
add esp, 0xc
test byte [edi], 0x10
je 0x4ebc98
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x4ebca3
mov eax, dword [esi + 0x20]
xor ecx, ecx
add ecx, dword [esi + 0x24]
adc eax, 0
mov dword [ebp + 0x128], ecx
add esi, 0x18
mov dword [ebp + 0x12c], eax
lea eax, [esp + 0x24]
mov ebx, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4ebd1a
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov esi, 1
test eax, eax
je 0x4ebd1f
movzx eax, word [esp + 0x36]
movzx edi, word [esp + 0x34]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x3c]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x3e]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x40]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x42]
mov dword [esp + 0x30], eax
jmp 0x4ebd21
mov esi, 1
xor edi, edi
push 0
push esi
call fcn.004541f0
add esp, 8
test esi, esi
je 0x4ebe7e
mov ecx, ebx
mov byte [ebp + 0x107], 0
and ecx, 0x20
mov eax, ebx
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, edx
mov edx, ecx
or edx, 1
and al, 1
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 4
and al, 4
mov eax, ebx
cmove ecx, edx
mov edx, ecx
or edx, 0x80
and al, 0x80
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 0x4000
and eax, 0x4000
mov eax, ebx
cmove ecx, edx
mov edx, ecx
or edx, 0x100
and eax, 0x100
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 0x200
and eax, 0x200
mov eax, ebx
cmove ecx, edx
mov edx, ecx
or edx, 0x400
and eax, 0x400
push dword [esp + 0x14]
cmove edx, ecx
mov eax, ebx
mov ecx, edx
or ecx, 0x800
and eax, 0x800
mov eax, ebx
cmove ecx, edx
mov edx, ecx
or edx, 0x1000
and eax, 0x1000
mov eax, ebx
cmove edx, ecx
mov ecx, edx
or ecx, 0x2000
and eax, 0x2000
cmove ecx, edx
mov eax, ecx
or eax, 0x8000
and ebx, 0x8000
mov ebx, dword [esp + 0x30]
cmove eax, ecx
push ebx
push edi
mov dword [ebp + 0x124], eax
call fcn.004ea240
push dword [esp + 0x3c]
mov dword [ebp + 0x11c], eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.004ea7d0
push dword [esp + 0x30]
mov dword [ebp + 0x120], eax
push ebx
lea eax, [ebp + 0x108]
push edi
push eax
call fcn.004ea540
push dword [esp + 0x44]
lea ecx, [ebp + 0x111]
mov byte [ebp + 0x110], 0
push dword [esp + 0x4c]
push dword [esp + 0x54]
push str._02d:_02d:_02d
push 9
push ecx
call fcn.004e70f0
add esp, 0x44
call fcn.0044b580
mov ecx, dword [esp + 0x254]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x248
ret