Function at 0x40bea0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xad8]
sub esp, 0xad8
push 0xffffffffffffffff
push 0x470726
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x49ab20]
xor eax, ebp
mov dword [ebp + 0xad4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xaec]
mov esi, dword [ebp + 0xae0]
mov ebx, dword [ebp + 0xae8]
mov edi, dword [ebp + 0xae4]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0x238]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.004029a0
add esi, 0x3e
mov dword [ebp - 4], 0
jne 0x40bf23
xor eax, eax
jmp 0x40bf67
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jg 0x40bf62
lea eax, [ebx + ebx]
call fcn.004522f0
mov eax, esp
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40bf62
push ebx
push eax
push 0xffffffffffffffff
xor ecx, ecx
push esi
push ecx
push 3
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
jmp 0x40bf64
xor eax, eax
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push eax
lea ecx, [ebp + 0x238]
call fcn.00403800
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x40bf96
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x427], edx
mov dword [eax + 0x42b], ecx
xor ecx, ecx
cmp dword [eax + 0x427], ecx
je 0x40c514
cmp dword [eax + 0x42b], ecx
je 0x40c514
movzx eax, byte [eax + 0x326]
cmp eax, 0xb
ja case.0x40bfc7.4
movzx edx, byte [eax + 0x40c5fc]
jmp dword [edx*4 + 0x40c5e4]
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.004029d0
mov eax, 1
jmp 0x40c5b6
push 0x206
push ecx
lea ecx, [ebp + 0x89a]
xor eax, eax
push ecx
mov word [ebp + 0x898], ax
call fcn.00451660
add esp, 0xc
push 0x104
call fcn.0041f980
push eax
lea edx, [ebp + 0x898]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [ebp - 0x14]
add edi, 0x5a6
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c030
sub eax, edx
je 0x40c0db
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0x492]
push ecx
mov word [ebp + 0x490], ax
call fcn.00451660
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004045d0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
push 0x100
lea eax, [ebp + 0x490]
push eax
push 0x4858d4
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push str._08u
push edx
call fcn.004069a0
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.00404250
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x40c0d2
call fcn.0040ab90
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.004029d0
mov eax, 1
jmp 0x40c5b6
mov byte [ebp - 4], 0
call fcn.0040ab90
test esi, esi
jne 0x40c0e3
xor ebx, ebx
jmp 0x40c10f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40c0f9
xor ebx, ebx
jmp 0x40c10f
lea eax, [edi + edi]
call fcn.004522f0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00402920
mov ebx, eax
mov edi, dword [ebp - 0x14]
add edi, 0x304
jne 0x40c11e
xor eax, eax
jmp 0x40c147
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40c131
xor eax, eax
jmp 0x40c147
lea esi, [eax + eax]
mov eax, esi
call fcn.004522f0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00402960
push 0
push 0
push ebx
lea ecx, [ebp + 0x898]
push ecx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp byte [eax + 0x326], 5
lea ecx, [ebp]
sete dl
push edx
push 0
call fcn.00413270
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.00439129
mov byte [ebp - 4], 0
lea ecx, [ebp]
cmp eax, 1
je 0x40c190
call fcn.0040aff0
jmp case.0x40bfc7.4
call fcn.0040aff0
jmp case.0x40bfc7.0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne case.0x40bfc7.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.00418d80
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.00439129
cmp eax, 1
jne 0x40c2c4
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor esi, esi
test ecx, ecx
jle 0x40c250
lea ebx, [ebx]
mov edx, dword [ebp - 0x44]
push edx
push esi
mov ecx, edi
call fcn.0040a580
push eax
call ebx
test eax, eax
jne 0x40c229
mov eax, dword [ebp - 0x3c]
push eax
push esi
mov ecx, edi
call fcn.0040a580
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x40c249
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
jl 0x40c200
jmp 0x40c250
mov dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x14]
inc esi
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
call fcn.0040b0b0
cmp esi, 3
jl 0x40c1a6
cmp dword [ebp - 0x10], 0
jne case.0x40bfc7.0
push 1
lea edx, [ebp - 0x34]
push edx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x14
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x49e48c
mov byte [ebp - 4], 5
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1c]
call fcn.0040ab90
lea ecx, [ebp - 0x34]
call fcn.0040ab90
jmp case.0x40bfc7.4
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.0040b0b0
jmp case.0x40bfc7.4
push 0x206
push ecx
lea eax, [ebp + 0x89a]
xor edx, edx
push eax
mov word [ebp + 0x898], dx
call fcn.00451660
add esp, 0xc
push 0x104
call fcn.0041f980
push eax
lea ecx, [ebp + 0x898]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x40c317
mov dword [ebp - 0x10], esi
jmp 0x40c349
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x40c332
mov dword [ebp - 0x10], 0
jmp 0x40c349
lea eax, [ebx + ebx]
call fcn.004522f0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00402920
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x304
jne 0x40c358
xor eax, eax
jmp 0x40c381
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40c36b
xor eax, eax
jmp 0x40c381
lea esi, [eax + eax]
mov eax, esi
call fcn.004522f0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00402960
mov edx, dword [ebp - 0x10]
push edi
push 1
push edx
lea ecx, [ebp + 0x898]
push ecx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp byte [eax + 0x326], 0xb
lea ecx, [ebp]
sete dl
push edx
push 0
call fcn.00413270
mov byte [ebp - 4], 6
jmp 0x40c172
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040b130
test eax, eax
je 0x40c4c9
mov ecx, dword [ebp - 0x30]
push 0x30
lea edx, [ebp + 0xaa1]
push 0
push edx
mov dword [ecx], 1
mov byte [ebp + 0xaa0], 0
call fcn.00451660
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 0x692]
push ecx
mov word [ebp + 0x690], ax
call fcn.00451660
add esp, 0x18
push str.FT_ET99_API.dll
call fcn.0041f980
push eax
lea edx, [ebp + 0x690]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp + 0xaa0]
push eax
lea ecx, [ebp + 0x690]
push ecx
call fcn.004095b0
add esp, 0x18
test eax, eax
je 0x40c4c9
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c4c9
xor edi, edi
test eax, eax
jle 0x40c4c9
lea edx, [ebp + 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40c478
xor eax, eax
jmp 0x40c492
lea eax, [esi + esi]
call fcn.004522f0
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0xaa0]
push ecx
push eax
call fcn.00402920
push eax
push edi
mov ecx, ebx
call fcn.0040a5c0
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x40bfc7.0
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jl 0x40c45c
push 1
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x36
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x49e48c
mov byte [ebp - 4], 7
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x18]
call fcn.0040ab90
lea ecx, [ebp - 0x24]
call fcn.0040ab90
jmp case.0x40bfc7.4
cmp byte [eax + 0x430], 0
je 0x40c52a
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x218], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x49e48c
call fcn.0041eb80
mov esi, eax
push 0x32
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x49e48c
mov byte [ebp - 4], 1
call fcn.0041eb80
mov esi, dword [esi]
mov eax, dword [eax]
push 0x40
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c57f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x40bfc7.4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.004029d0
xor eax, eax
lea esp, [ebp - 0xd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xad4]
xor ecx, ebp
call fcn.004522e0
add ebp, 0xad8
mov esp, ebp
pop ebp
ret 0x10