Function at 0x403560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40656c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6b8], edi
lea edx, [ebp - 0x6b0]
call fcn.00403c10
test eax, eax
je 0x403a1a
cmp byte [ebp - 0x69c], 0
mov dword [ebp - 0x48c], 0xf
mov dword [ebp - 0x490], 0
mov byte [ebp - 0x4a0], 0
jne 0x4035d1
xor ecx, ecx
jmp 0x4035e9
lea ecx, [ebp - 0x69c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00401a80
mov dword [ebp - 4], 0
push 1
push 0x4075b0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.00401a80
mov byte [ebp - 4], 1
push 1
push 0x4075b4
lea ecx, [ebp - 0x6d0]
mov dword [ebp - 0x6bc], 0xf
mov dword [ebp - 0x6c0], 0
mov byte [ebp - 0x6d0], 0
call fcn.00401a80
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x6d0]
push eax
lea edx, [ebp - 0x4a0]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00403230
add esp, 8
lea ecx, [ebp - 0x4a0]
push eax
call fcn.00402aa0
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x403695
push dword [ebp - 0x28]
call ebx
add esp, 4
cmp dword [ebp - 0x6bc], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4036bb
push dword [ebp - 0x6d0]
call ebx
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x6bc], 0xf
mov dword [ebp - 0x6c0], 0
mov byte [ebp - 0x6d0], 0
jb 0x4036e8
push dword [ebp - 0x50]
call ebx
add esp, 4
cmp byte [ebp - 0x67a], 0
mov dword [ebp - 0x474], 0xf
mov dword [ebp - 0x478], 0
mov byte [ebp - 0x488], 0
jne 0x403710
xor ecx, ecx
jmp 0x403729
lea ecx, [ebp - 0x67a]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403720
sub ecx, edx
push ecx
lea eax, [ebp - 0x67a]
push eax
lea ecx, [ebp - 0x488]
call fcn.00401a80
mov byte [ebp - 4], 3
push 1
push 0x4075b0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.00401a80
mov byte [ebp - 4], 4
push 1
push 0x4075b4
lea ecx, [ebp - 0x6d0]
mov dword [ebp - 0x6bc], 0xf
mov dword [ebp - 0x6c0], 0
mov byte [ebp - 0x6d0], 0
call fcn.00401a80
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x6d0]
push eax
lea edx, [ebp - 0x488]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00403230
add esp, 8
lea ecx, [ebp - 0x488]
push eax
call fcn.00402aa0
cmp dword [ebp - 0x14], 0x10
jb 0x4037cc
push dword [ebp - 0x28]
call ebx
add esp, 4
cmp dword [ebp - 0x6bc], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4037f2
push dword [ebp - 0x6d0]
call ebx
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x6bc], 0xf
mov dword [ebp - 0x6c0], 0
mov byte [ebp - 0x6d0], 0
jb 0x40381f
push dword [ebp - 0x50]
call ebx
add esp, 4
cmp dword [ebp - 0x48c], 0x10
lea edx, [ebp - 0x4a0]
cmovae edx, dword [ebp - 0x4a0]
lea ecx, [ebp - 0x28]
call fcn.00403430
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00402aa0
cmp dword [ebp - 0x14], 0x10
jb 0x403855
push dword [ebp - 0x28]
call ebx
add esp, 4
cmp dword [ebp - 0x474], 0x10
lea edx, [ebp - 0x488]
cmovae edx, dword [ebp - 0x488]
lea ecx, [ebp - 0x28]
call fcn.00403430
push eax
lea ecx, [ebp - 0x488]
call fcn.00402aa0
cmp dword [ebp - 0x14], 0x10
jb 0x40388b
push dword [ebp - 0x28]
call ebx
add esp, 4
cmp dword [ebp - 0x48c], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x4a0]
cmovae eax, dword [ebp - 0x4a0]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004058ee
add esp, 4
mov dword [ebp - 0x6b4], eax
push esi
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x48c], 0x10
push edi
push dword [ebp - 0x6b4]
lea ecx, [ebp - 0x4a0]
cmovae ecx, dword [ebp - 0x4a0]
push edi
push ecx
push 0
push 0xfde9
call ebx
cmp dword [ebp - 0x474], 0x10
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x488]
cmovae eax, dword [ebp - 0x488]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004058ee
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x474], 0x10
push edi
push ebx
push edi
lea ecx, [ebp - 0x488]
cmovae ecx, dword [ebp - 0x488]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x6b8]
push 0x100
push 0
push esi
call sub.MSVCR110.dll_memset
mov edi, dword [ebp - 0x6b4]
add esp, 0xc
push edi
push ebx
push 0x4075b8
push 0x80
push esi
call dword [sym.imp.MSVCR110.dll_swprintf_s]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
push ebx
call esi
add esp, 4
push edi
call esi
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x474], 0x10
jb 0x4039e2
push dword [ebp - 0x488]
call esi
add esp, 4
cmp dword [ebp - 0x48c], 0x10
mov dword [ebp - 0x474], 0xf
mov dword [ebp - 0x478], 0
mov byte [ebp - 0x488], 0
jb 0x403b45
push dword [ebp - 0x4a0]
call esi
add esp, 4
jmp 0x403b45
xor eax, eax
push 0xff
mov word [ebp - 0x60], ax
mov dword [ebp - 0x3e], eax
mov word [ebp - 0x3a], ax
mov word [ebp - 0x38], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4a8]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x4a4]
push eax
push 0xff
lea eax, [ebp - 0x60]
push eax
push 0
movq qword [ebp - 0x5e], xmm0
movq qword [ebp - 0x56], xmm0
movq qword [ebp - 0x4e], xmm0
movq qword [ebp - 0x46], xmm0
movq qword [ebp - 0x36], xmm0
movq qword [ebp - 0x2e], xmm0
movq qword [ebp - 0x26], xmm0
movq qword [ebp - 0x1e], xmm0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x46e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x6b4], 0
mov dword [ebp - 0x6b8], 0
mov eax, 1
xor edx, edx
cpuid
mov dword [ebp - 0x6b4], edx
mov dword [ebp - 0x6b8], eax
mov ecx, dword [ebp - 0x6b4]
mov esi, dword [sym.imp.MSVCR110.dll_swprintf_s]
test ecx, ecx
je 0x403b07
mov eax, dword [ebp - 0x6b8]
test eax, eax
je 0x403b07
push eax
push ecx
push str._u__u
lea eax, [ebp - 0x470]
push 0x208
push eax
call esi
add esp, 0x14
jmp 0x403b18
push ecx
lea eax, [ebp - 0x470]
push eax
push ecx
call fcn.00403360
add esp, 0xc
push 0x100
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x470]
push dword [ebp - 0x4a4]
push eax
push str._s__08X
push 0x80
push edi
call esi
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004058f7
mov esp, ebp
pop ebp
ret