Function at 0x10042d1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x100710c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x62c], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1001a18
mov dword [ebp - 0x634], eax
call fcn.010039b3
test eax, eax
je 0x100431e
push 0x10019f0
call fcn.010039b3
test eax, eax
jne 0x1004330
push 0x522
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10047e0
push ebx
call fcn.01003f7a
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x644], ebx
jne 0x1004351
push 0xa
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10047df
push esi
push 0x434
push 8
pop esi
push esi
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp - 0x638], eax
jne 0x1004383
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x510
jmp 0x1004763
cmp dword [ebx + 4], 0
jbe 0x10043c1
lea esi, [ebx + 8]
xor eax, eax
mov ax, word [esi + 4]
shr ax, 1
push 0
push eax
mov eax, dword [esi]
add eax, ebx
push eax
xor eax, eax
mov ax, word [esi + 0x14]
shr ax, 1
push eax
mov eax, dword [esi + 0x10]
add eax, ebx
push eax
push dword [ebp - 0x638]
call fcn.010034aa
inc edi
add esi, 0x18
cmp edi, dword [ebx + 4]
jb 0x100438c
push dword [ebp - 0x638]
call fcn.01003984
mov esi, dword [ebp - 0x638]
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
cmp dword [esi + 4], 0
je 0x10046fb
mov eax, dword [esi + 8]
test eax, eax
je 0x10046fb
movzx ebx, word [esi + 0x1a]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebx + ebx]
mov word [ebp - 0x20e], 0x5c
and word [ebp + eax - 0x20e], 0
mov word [ebp + eax - 0x210], 0x5c
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x1c], eax
jne 0x1004432
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x100457b
cmp eax, 3
je 0x100454d
test eax, eax
je 0x10046fb
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x10044c8
push 0x1088
push 8
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100470a
movzx eax, word [esi + 0x1a]
push eax
push dword [esi + 8]
lea eax, [ebx + 0x808]
push eax
call edi
movzx eax, word [esi + 0x18]
push eax
push dword [esi + 4]
lea eax, [ebx + 8]
push eax
call edi
mov eax, dword [ebp - 0x63c]
add esp, 0x18
push ebx
add eax, 8
push eax
call fcn.010033e8
test eax, eax
jne 0x10046fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x5cd
jmp 0x100478b
push 0x1088
push 8
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100471c
movzx eax, word [esi + 0x1a]
push eax
push dword [esi + 8]
lea eax, [ebx + 0x808]
push eax
call edi
mov eax, dword [ebp - 0x630]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebx + 0x888]
push eax
call edi
movzx eax, word [esi + 0x18]
push eax
push dword [esi + 4]
lea eax, [ebx + 8]
push eax
call edi
mov eax, dword [ebp - 0x63c]
add esp, 0x24
push ebx
add eax, 8
push eax
call fcn.010033e8
test eax, eax
je 0x100472e
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x10044c8
jmp 0x10046fb
test ecx, ecx
jne 0x100457b
lea eax, [ebp - 0x640]
push eax
push 0x100
lea eax, [ebp - 0x41c]
push eax
push 0x10
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0100335b
jmp 0x10045bb
mov ebx, 0x104
push ebx
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x628]
push eax
call edi
push ebx
lea eax, [esi + 0x22a]
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
and word [ebp - 0x420], 0
add esp, 0x18
and word [ebp - 0x214], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x640], eax
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x1004658
push 0xab0
push 8
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004741
movzx eax, word [esi + 0x1a]
push eax
push dword [esi + 8]
lea eax, [ebx + 8]
push eax
call edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebx + 0x888]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebx + 0x8a8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x640]
add esp, 0x1c
push ebx
push dword [ebp - 0x63c]
mov dword [ebx + 0xaa8], eax
call fcn.010033e8
test eax, eax
jne 0x10046fb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x59f
jmp 0x100478b
push 0xab0
push 8
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004753
movzx eax, word [esi + 0x1a]
push eax
push dword [esi + 8]
lea eax, [ebx + 8]
push eax
call edi
mov eax, dword [ebp - 0x630]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebx + 0x88]
push eax
call edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebx + 0x888]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebx + 0x8a8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x640]
add esp, 0x28
push ebx
push dword [ebp - 0x63c]
mov dword [ebx + 0xaa8], eax
call fcn.010033e8
test eax, eax
je 0x100477a
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x1004658
mov esi, dword [esi]
test esi, esi
jne 0x10043d8
jmp 0x10047aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
pop esi
push esi
push 0x5c7
jmp 0x1004763
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
pop esi
push esi
push 0x5d8
jmp 0x1004763
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x5df
jmp 0x100478b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
pop esi
push esi
push 0x596
jmp 0x1004763
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
pop esi
push esi
push 0x5a9
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
mov dword [ebp - 0x62c], esi
push esi
jmp 0x10047a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x5b3
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
call esi
mov dword [ebp - 0x62c], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x644]
xor esi, esi
push esi
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x638], esi
je 0x10047d3
lea eax, [ebp - 0x638]
push eax
call fcn.01003447
xor eax, eax
cmp dword [ebp - 0x62c], esi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005413
leave
ret 4