Function at 0x1045167
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x217], bl
mov byte [ebp - 0x215], bl
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10451e3
test dword [eax + 0x1c], 0x200
je 0x10451e3
cmp byte [eax + 0x19], 4
jb 0x10451e3
push 0x1003928
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
cmp esi, ebx
jne 0x10451f3
mov dword [ebp - 0x210], 0x80004003
jmp 0x1045208
mov dword [esi], ebx
cmp edi, ebx
jne 0x1045274
mov dword [ebp - 0x210], 0x80004003
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104525d
test byte [eax + 0x1c], 1
je 0x1045238
cmp byte [eax + 0x19], 2
jb 0x1045238
push dword [ebp - 0x210]
push 0x1003928
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104525d
test byte [eax + 0x1c], 1
je 0x104525d
cmp byte [eax + 0x19], 4
jb 0x104525d
push 0x1003928
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0xc
mov ecx, dword [ebp + 8]
mov dword [edi], ebx
call fcn.0103be56
cmp eax, ebx
mov dword [ebp - 0x210], eax
jl 0x1045203
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [ebp - 0x224], eax
cmp eax, 0xffffffff
jne 0x1045301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10452e4
test byte [eax + 0x1c], 1
je 0x10452e4
cmp byte [eax + 0x19], 2
jb 0x10452e4
push esi
push 0x1003928
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jg 0x10452f3
mov dword [ebp - 0x210], esi
jmp 0x1045780
and esi, 0xffff
or esi, 0x80070000
jmp 0x10452e8
inc dword [ebp - 0x21c]
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x1045301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x10456f8
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov esi, dword [ebp - 0x21c]
imul esi, esi, 0x48
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x1045365
mov dword [ebp - 0x210], 0x8007000e
jmp 0x1045745
push esi
push 0
push dword [ebp - 0x214]
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [ebp - 0x224], eax
cmp eax, 0xffffffff
jne 0x10453e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10453c3
test byte [eax + 0x1c], 1
je 0x10453c3
cmp byte [eax + 0x19], 2
jb 0x10453c3
push esi
push 0x1003928
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jg 0x10453d2
mov dword [ebp - 0x210], esi
jmp 0x104574a
and esi, 0xffff
or esi, 0x80070000
jmp 0x10453c7
and dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x216], 0
call fcn.010de3b7
test eax, eax
jge 0x104544e
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10455ac
test dword [ecx + 0x1c], 0x200
je 0x10455ac
cmp byte [ecx + 0x19], 3
jb 0x10455ac
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1003928
push 0x46
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x10455a7
cmp byte [ebp - 0x216], 0
jne 0x104549c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10455ac
test dword [eax + 0x1c], 0x200
je 0x10455ac
cmp byte [eax + 0x19], 3
jb 0x10455ac
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003928
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x10455ac
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
jne 0x104550c
mov esi, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x21c]
add esi, 0x240
push esi
push dword [ebp - 0x214]
add ebx, 8
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov edi, eax
test edi, edi
je 0x10456a6
mov eax, ebx
sub eax, dword [ebp - 0x21c]
imul eax, eax, 0x48
push eax
mov eax, dword [ebp - 0x22c]
add eax, edi
push 0
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x21c], ebx
add esp, 0xc
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x214], edi
mov ebx, 0x104
mov esi, dword [ebp - 0x220]
cmp esi, dword [ebp - 0x21c]
jae 0x1045652
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x214]
lea edi, [eax + ecx]
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010438cd
mov dword [ebp - 0x210], eax
test eax, eax
jge 0x1045551
cmp eax, 0x8007000e
je 0x1045739
jmp 0x10455ac
lea eax, [ebp - 0x215]
push eax
lea eax, [ebp - 0x217]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010de497
mov dword [ebp - 0x210], eax
test eax, eax
jge 0x10455b5
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10455ac
test byte [eax + 0x1c], 1
je 0x10455ac
cmp byte [eax + 0x19], 3
jb 0x10455ac
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003928
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
and dword [ebp - 0x210], 0
jmp 0x10455de
cmp byte [ebp - 0x217], 0
jne 0x10455cd
cmp byte [ebp - 0x215], 0
je 0x10455cd
mov byte [edi + 0x39], 1
jmp 0x10455d1
mov byte [edi + 0x39], 0
inc dword [ebp - 0x220]
add dword [ebp - 0x228], 0x48
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10453ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x10456b5
mov esi, dword [ebp - 0x220]
xor edi, edi
cmp esi, edi
jne 0x1045631
cmp dword [ebp - 0x214], edi
je 0x1045631
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x214], edi
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x214]
mov dword [eax], esi
mov eax, dword [ebp - 0x234]
mov dword [eax], ecx
mov dword [ebp - 0x214], edi
jmp 0x1045739
push 0x1004358
push 0x4ff
push 0x1003938
call fcn.0107b644
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1045697
test byte [eax + 0x1c], 1
je 0x1045697
cmp byte [eax + 0x19], 2
jb 0x1045697
push dword [ebp - 0x21c]
push esi
push 0x1003928
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
mov dword [ebp - 0x210], 0x8000ffff
jmp 0x1045739
mov dword [ebp - 0x210], 0x8007000e
jmp 0x1045739
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10456e0
test byte [eax + 0x1c], 1
je 0x10456e0
cmp byte [eax + 0x19], 2
jb 0x10456e0
push edi
push 0x1003928
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test edi, edi
jle 0x10456f0
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x210], edi
jmp 0x1045739
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1045723
test byte [eax + 0x1c], 1
je 0x1045723
cmp byte [eax + 0x19], 2
jb 0x1045723
push esi
push 0x1003928
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test esi, esi
jle 0x1045733
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x210], esi
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x214], 0
je 0x1045780
mov esi, dword [ebp - 0x21c]
test esi, esi
jbe 0x104576f
mov edi, dword [ebp - 0x214]
push edi
call fcn.010fd3db
add edi, 0x48
dec esi
jne 0x1045763
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x210], 0
jge 0x1045238
jmp 0x1045208