Function at 0x1004c050
Capabilities:
Enumerate disk volumes
Get disk information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10139762
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x101ba518]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x14], edi
push 0x100
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ecx, eax
mov dword [esp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x1004c0bd
xor al, al
jmp 0x1004c500
mov eax, dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x30]
push eax
call fcn.10051560
mov dword [esp + 0x4b0], 0
lea ecx, [esp + 0x94]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004c0f0
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x1004c346
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp word [esp + 0x9c], ax
jne 0x1004c13d
xor ecx, ecx
jmp 0x1004c156
lea ecx, [esp + 0x9c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004c147
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x3c]
call fcn.10009290
mov byte [esp + 0x4b0], 1
mov edx, dword [esp + 0x44]
cmp edx, 1
jbe 0x1004c1c6
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x34]
mov edi, dword [esp + 0x34]
cmp esi, 8
mov ecx, 0x5c
cmovae eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x1004c1c2
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x1004c1b4
cmp esi, 8
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x34]
cmovae eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x1004c1c2
sub ecx, edx
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.10018750
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x294]
push 0x104
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1004c223
mov byte [esp + 0x4b0], 0
cmp dword [esp + 0x48], 8
jb 0x1004c207
push dword [esp + 0x34]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jmp 0x1004c346
lea esi, [esp + 0x294]
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004c230
sub esi, ecx
lea eax, [esp + 0x294]
sar esi, 1
mov ecx, edi
push esi
push eax
call fcn.10006500
push eax
call fcn.10115dcc
add esp, 0xc
test eax, eax
jne 0x1004c1ec
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x18]
push 0x104
call fcn.10018960
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x18]
sub eax, edi
push ecx
sar eax, 1
push eax
push edi
lea eax, [esp + 0xa0]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1004c36e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1004c2f2
mov byte [esp + 0x4b0], 1
test edi, edi
je 0x1004c1ec
push edi
call fcn.10115284
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x1004c1ec
push dword [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.10018960
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x18]
sub eax, edi
push ecx
sar eax, 1
push eax
push edi
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1004c36e
mov byte [esp + 0x4b0], 1
lea ecx, [esp + 0x18]
call fcn.10009ec0
mov byte [esp + 0x4b0], 0
lea ecx, [esp + 0x34]
call fcn.10006340
push 0x100
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x1004c4e8
mov edi, dword [esp + 0x14]
jmp 0x1004c0e3
push edi
lea ecx, [esp + 0x50]
call fcn.100062a0
mov byte [esp + 0x4b0], 3
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push esi
push eax
call fcn.10018810
mov byte [esp + 0x4b0], 4
lea edx, [esp + 0x4c]
push eax
lea ecx, [esp + 0x80]
call fcn.1001d830
add esp, 4
mov esi, eax
mov byte [esp + 0x4b0], 5
cmp ebx, esi
je 0x1004c3e6
cmp dword [ebx + 0x14], 8
jb 0x1004c3cb
push dword [ebx]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
push esi
mov word [ebx], ax
call fcn.10008f20
mov byte [esp + 0x4b0], 4
cmp dword [esp + 0x90], 8
jb 0x1004c404
push dword [esp + 0x7c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
mov byte [esp + 0x4b0], 3
cmp dword [esp + 0x78], 8
jb 0x1004c43c
push dword [esp + 0x64]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0x4b0], 2
cmp dword [esp + 0x60], 8
jb 0x1004c46e
push dword [esp + 0x4c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov byte [esp + 0x4b0], 1
test edi, edi
je 0x1004c4b2
push edi
call fcn.10115284
add esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x4b0], 0
cmp dword [esp + 0x48], 8
jb 0x1004c4cd
push dword [esp + 0x34]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov bl, 1
mov word [esp + 0x34], ax
jmp 0x1004c4ea
xor bl, bl
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.10019f30
mov al, bl
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.10115289
mov esp, ebp
pop ebp
ret