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

Disassembly:
sub esp, 0x248
mov eax, dword [0x887490]
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.00452bb0
test byte [ebp + 0x134], 8
mov esi, dword [ebp + 0x140]
mov dword [esp + 0x10], 0
je 0x4f7a7f
cmp dword [esi + 0x258], 0
jne 0x4f7a7f
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 0x4f79fc
cmp byte [eax], bl
je 0x4f79fc
push eax
call fcn.004f5da0
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f79cb
cmp byte [ecx], bl
je 0x4f79cb
push ecx
call fcn.004f56d0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4f79f0
mov cl, byte [eax]
test cl, cl
je 0x4f79f0
cmp byte [eax + 1], bl
jne 0x4f79e1
cmp cl, 0x5c
je 0x4f79f0
push eax
call fcn.0047b570
add esp, 4
mov dword [esp + 0x24], eax
mov ebx, eax
push dword [esp + 0x10]
call fcn.0048bed0
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 0x4f7a59
push 0x107
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.0047b500
add esp, 0xc
test edi, edi
je 0x4f7a59
cmp byte [edi], 0
je 0x4f7a59
push edi
push ebp
call fcn.004f88c0
add esp, 8
test eax, eax
jne 0x4f7a59
xor ebx, ebx
mov byte [ebp], al
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f7a6a
push eax
call fcn.0048bed0
add esp, 4
test edi, edi
je 0x4f7a77
push edi
call fcn.0048bed0
add esp, 4
test ebx, ebx
jne 0x4f7bf3
mov eax, dword [ebp + 0x134]
and al, 0x1e
cmp al, 8
je 0x4f7bf3
cmp dword [ebp + 0x138], 0
je 0x4f7bbf
push dword [ebp + 0x130]
call fcn.0047b570
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.0048bed0
add esp, 4
cmp dword [esi], 0xffffffff
je 0x4f7bbf
mov eax, dword [edi]
test al, 0x16
je 0x4f7bfe
and eax, dword [esi + 0x254]
test al, 0x16
jne 0x4f7bfe
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4f7bf3
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edi, [esi + 4]
push edi
push eax
call ebx
test eax, eax
je 0x4f7bf3
mov ecx, dword [edi]
test cl, 0x16
je 0x4f7bfe
mov eax, dword [esi + 0x254]
and eax, ecx
test al, 0x16
jne 0x4f7bfe
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x4f7bd7
mov esi, dword [esp + 0x10]
xor ebx, ebx
jmp 0x4f7caf
push 0x107
lea eax, [esi + 0x30]
push ebp
push eax
call fcn.0047b500
add esp, 0xc
test byte [edi], 0x10
je 0x4f7c28
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x4f7c33
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 0x4f7caa
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 0x4f7caf
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 0x4f7cb1
mov esi, 1
xor edi, edi
push 0
push esi
call fcn.00461550
add esp, 8
test esi, esi
je 0x4f7e0e
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.004f6230
push dword [esp + 0x3c]
mov dword [ebp + 0x11c], eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.004f67c0
push dword [esp + 0x30]
mov dword [ebp + 0x120], eax
push ebx
lea eax, [ebp + 0x108]
push edi
push eax
call fcn.004f6530
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.004f30e0
add esp, 0x44
call fcn.00452bb0
mov ecx, dword [esp + 0x254]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x248
ret