Function at 0x1004146
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70c
mov eax, dword [0x100704c]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x1001430
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x6d8], ebx
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6c4], ebx
mov dword [ebp - 0x6d4], ebx
mov dword [ebp - 0x6dc], ebx
mov dword [ebp - 0x6cc], 0x1001418
mov dword [ebp - 0x6c8], ebx
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
push ebx
call sub.KERNEL32.dll_SetThreadUILanguage
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
call fcn.01004ab0
cmp eax, ebx
mov dword [0x1007870], eax
jne 0x10041d8
push 0x10016d8
call fcn.01002641
mov dword [0x100786c], 6
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1004698
call fcn.01001be5
test eax, eax
jne 0x100421c
push 0x190
lea eax, [ebp - 0x3a0]
push eax
push 0x295
push dword [0x1007870]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x3a0]
push eax
push 0x1001420
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
jmp 0x10041be
call fcn.01002803
test eax, eax
je 0x1004231
mov dword [0x100786c], 1
jmp 0x10041cd
push 0x5c
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x1007868], eax
jne 0x100424a
mov eax, dword [esi]
jmp 0x100424c
inc eax
inc eax
xor edx, edx
inc edx
cmp dword [ebp + 8], edx
push edi
mov dword [0x1007868], eax
mov dword [ebp - 0x70c], eax
mov dword [ebp - 0x708], ebx
mov edi, edx
jle 0x100440c
mov eax, dword [esi + edi*4]
mov cx, word [eax]
cmp cx, 0x2d
je 0x1004308
cmp cx, 0x2f
je 0x1004308
cmp dword [ebp - 0x6d0], ebx
jne 0x10044a9
push 0xffffffffffffffff
push edx
push eax
lea ecx, [ebp - 0x6cc]
call fcn.010023e5
cmp dword [ebp - 0x6c8], ebx
je 0x10042b7
push dword [ebp - 0x6c8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10042b9
xor eax, eax
mov ecx, dword [ebp - 0x6c8]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10042dc
push 0x5c
lea ecx, [ebp - 0x6cc]
call fcn.010040f2
test eax, eax
je 0x1004633
push 0x33
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x6c8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1004503
mov dword [ebp - 0x6d0], 1
xor edx, edx
inc edx
jmp 0x1004402
movzx eax, word [eax + 2]
cmp eax, 0x56
jg 0x1004387
je 0x10043af
sub eax, 0x3f
je 0x10044f3
dec eax
dec eax
je 0x10043fc
dec eax
je 0x10043f4
sub eax, 4
je 0x10043ec
dec eax
dec eax
je 0x10044f3
sub eax, 8
je 0x10043b7
sub eax, 3
jne 0x1004522
inc edi
cmp edi, dword [ebp + 8]
jge 0x1004402
lea eax, [ebp - 0x6e0]
push eax
push 0x10016d0
push dword [esi + edi*4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x1004633
mov dword [ebp - 0x6d4], 1
jmp 0x1004300
sub eax, 0x61
je 0x10043fc
dec eax
je 0x10043f4
sub eax, 4
je 0x10043ec
dec eax
dec eax
je 0x10044f3
sub eax, 8
je 0x10043b7
sub eax, 3
je 0x100434e
sub eax, 3
jne 0x1004522
mov dword [0x100787c], edx
jmp 0x1004402
inc edi
cmp edi, dword [ebp + 8]
jge 0x1004402
lea eax, [ebp - 0x6e4]
push eax
push 0x10016c8
push dword [esi + edi*4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x1004633
mov dword [ebp - 0x6dc], 1
jmp 0x1004300
mov dword [0x1007874], edx
jmp 0x1004402
mov dword [0x1007880], edx
jmp 0x1004402
mov dword [0x1007878], edx
inc edi
cmp edi, dword [ebp + 8]
jl 0x100426c
cmp dword [0x1007880], ebx
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x190
jne 0x1004440
push esi
lea eax, [ebp - 0x3a0]
push eax
push 0x2e5
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
call fcn.010025c3
cmp dword [ebp - 0x6d0], ebx
je 0x10044f3
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.010054cd
test eax, eax
jne 0x100458a
cmp dword [0x1007880], ebx
jne 0x1004633
push esi
lea eax, [ebp - 0x3a0]
push eax
push 0x2b4
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
push 0x1001420
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.01002641
jmp 0x1004633
cmp dword [0x1007880], ebx
jne 0x1004633
push 0x190
lea eax, [ebp - 0x3a0]
push eax
push 0x2c7
push dword [0x1007870]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x3a0]
push eax
push 0x1001614
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.01002641
push dword [0x1007868]
call fcn.010026bf
jmp 0x1004633
cmp dword [0x1007880], ebx
jne 0x1004633
push 0x190
lea eax, [ebp - 0x3a0]
push eax
push 0x2e3
jmp 0x10044c6
cmp dword [0x1007880], ebx
mov eax, dword [esi + edi*4]
mov dword [ebp - 0x70c], eax
mov dword [ebp - 0x708], ebx
jne 0x1004633
mov esi, 0x190
push esi
lea eax, [ebp - 0x3a0]
push eax
push 0x2ce
push dword [0x1007870]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x70c]
push eax
push esi
lea eax, [ebp - 0x6c0]
push eax
push ebx
push ebx
lea eax, [ebp - 0x3a0]
push eax
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x6c0]
push eax
jmp 0x10044ee
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0100557f
test eax, eax
jne 0x10045e0
cmp dword [0x1007880], ebx
jne 0x1004633
cmp dword [ebp - 0x6d8], 0x27
lea eax, [ebp - 0x3a0]
push esi
push eax
jne 0x10045c2
push 0x2e6
jmp 0x10045c7
push 0x2b5
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
push 0x10016b8
jmp 0x100448f
cmp dword [ebp - 0x6dc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1004641
cmp dword [ebp - 0x6d4], ebx
je 0x1004641
push dword [ebp - 0x6e4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x1004633
push 2
push ebx
push ebx
lea eax, [ebp - 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x6e0]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
mov ebx, eax
call esi
test ebx, ebx
jne 0x100463f
mov dword [0x100786c], 2
jmp 0x1004691
xor ebx, ebx
push dword [ebp - 0x6c4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.01002914
cmp dword [ebp - 0x6c4], ebx
je 0x1004664
push dword [ebp - 0x6c4]
call esi
push dword [0x1007870]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x1007888]
cmp eax, ebx
je 0x1004691
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push dword [0x1007888]
call esi
mov dword [0x1007888], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov esi, dword [0x100786c]
lea ecx, [ebp - 0x6cc]
mov dword [ebp - 0x6cc], 0x1001418
call fcn.010023c7
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01005656
leave
ret