Function at 0x1004106
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 0x1001410
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], 0x10013f8
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.01004a70
cmp eax, ebx
mov dword [0x1007870], eax
jne 0x1004198
push 0x1001688
call fcn.01002601
mov dword [0x100786c], 6
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1004658
call fcn.01001ba5
test eax, eax
jne 0x10041dc
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 0x1001400
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
jmp 0x100417e
call fcn.010027c3
test eax, eax
je 0x10041f1
mov dword [0x100786c], 1
jmp 0x100418d
push 0x5c
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x1007868], eax
jne 0x100420a
mov eax, dword [esi]
jmp 0x100420c
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 0x10043cc
mov eax, dword [esi + edi*4]
mov cx, word [eax]
cmp cx, 0x2d
je 0x10042c8
cmp cx, 0x2f
je 0x10042c8
cmp dword [ebp - 0x6d0], ebx
jne 0x1004469
push 0xffffffffffffffff
push edx
push eax
lea ecx, [ebp - 0x6cc]
call fcn.010023a5
cmp dword [ebp - 0x6c8], ebx
je 0x1004277
push dword [ebp - 0x6c8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1004279
xor eax, eax
mov ecx, dword [ebp - 0x6c8]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x100429c
push 0x5c
lea ecx, [ebp - 0x6cc]
call fcn.010040b2
test eax, eax
je 0x10045f3
push 0x33
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x6c8]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10044c3
mov dword [ebp - 0x6d0], 1
xor edx, edx
inc edx
jmp 0x10043c2
movzx eax, word [eax + 2]
cmp eax, 0x56
jg 0x1004347
je 0x100436f
sub eax, 0x3f
je 0x10044b3
dec eax
dec eax
je 0x10043bc
dec eax
je 0x10043b4
sub eax, 4
je 0x10043ac
dec eax
dec eax
je 0x10044b3
sub eax, 8
je 0x1004377
sub eax, 3
jne 0x10044e2
inc edi
cmp edi, dword [ebp + 8]
jge 0x10043c2
lea eax, [ebp - 0x6e0]
push eax
push 0x1001680
push dword [esi + edi*4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x10045f3
mov dword [ebp - 0x6d4], 1
jmp 0x10042c0
sub eax, 0x61
je 0x10043bc
dec eax
je 0x10043b4
sub eax, 4
je 0x10043ac
dec eax
dec eax
je 0x10044b3
sub eax, 8
je 0x1004377
sub eax, 3
je 0x100430e
sub eax, 3
jne 0x10044e2
mov dword [0x100787c], edx
jmp 0x10043c2
inc edi
cmp edi, dword [ebp + 8]
jge 0x10043c2
lea eax, [ebp - 0x6e4]
push eax
push 0x1001678
push dword [esi + edi*4]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x10045f3
mov dword [ebp - 0x6dc], 1
jmp 0x10042c0
mov dword [0x1007874], edx
jmp 0x10043c2
mov dword [0x1007880], edx
jmp 0x10043c2
mov dword [0x1007878], edx
inc edi
cmp edi, dword [ebp + 8]
jl 0x100422c
cmp dword [0x1007880], ebx
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x190
jne 0x1004400
push esi
lea eax, [ebp - 0x3a0]
push eax
push 0x2e5
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
call fcn.01002583
cmp dword [ebp - 0x6d0], ebx
je 0x10044b3
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
call fcn.0100548d
test eax, eax
jne 0x100454a
cmp dword [0x1007880], ebx
jne 0x10045f3
push esi
lea eax, [ebp - 0x3a0]
push eax
push 0x2b4
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
push 0x1001400
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.01002601
jmp 0x10045f3
cmp dword [0x1007880], ebx
jne 0x10045f3
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 0x10015f4
mov esi, 0x1007068
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.01002601
push dword [0x1007868]
call fcn.0100267f
jmp 0x10045f3
cmp dword [0x1007880], ebx
jne 0x10045f3
push 0x190
lea eax, [ebp - 0x3a0]
push eax
push 0x2e3
jmp 0x1004486
cmp dword [0x1007880], ebx
mov eax, dword [esi + edi*4]
mov dword [ebp - 0x70c], eax
mov dword [ebp - 0x708], ebx
jne 0x10045f3
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 0x10044ae
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0100553f
test eax, eax
jne 0x10045a0
cmp dword [0x1007880], ebx
jne 0x10045f3
cmp dword [ebp - 0x6d8], 0x27
lea eax, [ebp - 0x3a0]
push esi
push eax
jne 0x1004582
push 0x2e6
jmp 0x1004587
push 0x2b5
push dword [0x1007870]
call edi
lea eax, [ebp - 0x3a0]
push eax
push 0x1001668
jmp 0x100444f
cmp dword [ebp - 0x6dc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1004601
cmp dword [ebp - 0x6d4], ebx
je 0x1004601
push dword [ebp - 0x6e4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x10045f3
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 0x10045ff
mov dword [0x100786c], 2
jmp 0x1004651
xor ebx, ebx
push dword [ebp - 0x6c4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.010028d4
cmp dword [ebp - 0x6c4], ebx
je 0x1004624
push dword [ebp - 0x6c4]
call esi
push dword [0x1007870]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x1007888]
cmp eax, ebx
je 0x1004651
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], 0x10013f8
call fcn.01002387
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01005616
leave
ret