Function at 0x414200
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
push 2
push 0x208
call fcn.0040cd60
add esp, 8
test eax, eax
je 0x4144dc
mov ecx, eax
mov esi, 0x104
mov edx, 0xa
mov ebx, 0x104
mov dword [ebp - 0x30], 0
jmp 0x41424c
mov ecx, dword [ebp - 0x14]
dec edx
mov ebx, edi
je 0x414337
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], edx
push eax
push esi
mov dword [ebp - 0x18], ecx
push ecx
push dword [ebp + 0xc]
call sub.kernel32.dll_GetVolumePathNamesForVolumeNameW
test eax, eax
jne 0x41432f
call fcn.00446630
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
call fcn.00446630
mov esi, eax
test edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
je 0x414290
lea eax, [ebp - 0x20]
push eax
call fcn.004465e0
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x4142a2
lea eax, [ebp - 0x38]
push eax
call fcn.004465e0
add esp, 4
cmp esi, 0x800700ea
jne 0x414475
mov ecx, dword [ebp - 0x30]
xor eax, eax
test ecx, ecx
js 0x4144d3
lea esi, [ecx + ecx]
cmp esi, 0x7ffffffe
ja 0x4144d3
mov edi, ecx
test esi, esi
je 0x414300
push 2
push esi
call fcn.0040cd60
add esp, 8
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4144cb
mov esi, edi
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
test ebx, ebx
jne 0x414319
jmp 0x414240
mov esi, edi
mov dword [ebp - 0x14], 2
xor edi, edi
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
test ebx, ebx
je 0x414240
add ebx, ebx
push 2
push ebx
push eax
call fcn.0040cd20
mov edx, dword [ebp - 0x10]
add esp, 0xc
jmp 0x414240
mov eax, dword [ebp - 0x18]
mov edi, ebx
mov dword [ebp - 0x14], eax
test esi, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], 0
je 0x414442
mov edi, dword [ebp - 0x14]
jmp 0x414397
mov eax, dword [ebp - 0x20]
lea ecx, [ecx + ecx*2]
sub edi, ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [eax + ecx*4], esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4 + 8], esi
mov eax, ebx
inc edx
sub eax, esi
cmp ebx, esi
mov dword [ebp - 0x1c], edx
mov esi, eax
je 0x414442
cmp word [edi], 0
je 0x414442
lea eax, [esi + esi]
mov dword [ebp - 0x2c], esi
mov ecx, 1
mov ebx, 0xfffffffe
neg eax
nop word cs:[eax + eax]
nop dword [eax]
cmp eax, ebx
je 0x414498
add ebx, 0xfffffffe
cmp word [edi + ecx*2], 0
lea esi, [ecx + 1]
mov ecx, esi
jne 0x4143c0
xor eax, eax
test esi, esi
js 0x4144c2
mov ecx, ebx
neg ecx
cmp ecx, 0x7ffffffe
ja 0x4144c2
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 2
mov dword [ebp - 0x10], ecx
push ecx
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4144b7
push dword [ebp - 0x10]
push edi
mov dword [ebp - 0x28], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
jne 0x414360
lea eax, [ebp - 0x24]
push eax
call fcn.004180c0
mov ecx, dword [ebp - 0x18]
add esp, 4
jmp 0x414360
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x24]
test ebx, ebx
mov dword [esi + 8], eax
movsd qword [esi], xmm0
je 0x41446b
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x14]
call fcn.0040cd20
add esp, 0xc
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
test ebx, ebx
mov dword [esi], 0
mov dword [esi + 4], 4
mov dword [esi + 8], 0
mov dword [ebp - 0x14], eax
jne 0x41445b
jmp 0x41446b
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
jne 0x4144aa
push 0x57be40
call fcn.004e0850
push 0x57be40
push eax
inc eax
push eax
call fcn.004e0750
mov ecx, dword [ebp - 0x10]
mov eax, 2
mov dword [ebp - 0x28], ecx
push dword [ebp - 0x28]
push eax
call fcn.004cf340
mov eax, 2
mov dword [ebp - 0x14], esi
push dword [ebp - 0x14]
push eax
call fcn.004cf340
push 0x208
push 2
call fcn.004cf340
nop dword [eax + eax]
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.004aa890
add esp, 4
pop ebp
ret