Function at 0x40954f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.00410620
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x1ff
push edi
xor esi, esi
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 0x14], 0x4030201
mov dword [ebp - 0x10], 0x8070605
mov dword [ebp - 0xc], 0xc0b0a09
mov dword [ebp - 8], 0x100f0e0d
mov byte [ebp - 0x418], 0
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0x1230], ax
lea eax, [ebp - 0x122e]
push esi
push eax
call fcn.0040fd90
add esp, 0xc
push edi
lea eax, [ebp - 0x217]
push esi
push eax
mov dword [ebp - 0x1234], esi
mov byte [ebp - 0x218], 0
call fcn.0040fd90
mov eax, dword [0x41524c]
add esp, 0xc
mov dword [ebp - 0x620], eax
mov eax, dword [0x415250]
lea ebx, [edi + 1]
push ebx
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push esi
push eax
mov dword [ebp - 0x1248], esi
mov dword [ebp - 0x124c], esi
call fcn.0040fd90
add esp, 0xc
xor eax, eax
add edi, 7
push edi
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push esi
push eax
call fcn.0040fd90
add esp, 0xc
xor eax, eax
push edi
mov word [ebp - 0xa30], ax
lea eax, [ebp - 0xa2e]
push esi
push eax
call fcn.0040fd90
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push 0xc7fff
push eax
lea edi, [ebp - 0x1238]
mov dword [ebp - 0x1240], esi
call fcn.0040911a
add esp, 0xc
test eax, eax
jne 0x409679
xor eax, eax
jmp 0x409883
push ebx
lea eax, [ebp - 0x218]
push 0x32000
push eax
lea edi, [ebp - 0x1238]
call fcn.0040911a
add esp, 0xc
test eax, eax
je 0x409672
xor eax, eax
mov cl, byte [ebp + eax - 0x228]
cmp cl, byte [ebp + eax - 0x14]
jne 0x4096ca
inc eax
cmp eax, 0x10
jb 0x40969a
cmp dword [ebp - 0x418], 3
jb 0x4096ca
cmp dword [ebp - 0x218], 0x45464e49
jne 0x4096ca
xor eax, eax
inc eax
jmp 0x409883
push 0x400
lea eax, [ebp - 0x1230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x40987d
lea eax, [ebp - 0x1234]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.00401c03
pop ecx
pop ecx
test eax, eax
je 0x40987d
mov edi, dword [ebp - 0x1234]
push edi
call fcn.0040ae5e
pop ecx
mov dword [ebp - 0x1244], eax
cmp eax, esi
je 0x40987d
lea ecx, [ebp - 0x1238]
push ecx
push edi
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.00401bb1
add esp, 0x10
test eax, eax
je 0x409871
cmp dword [ebp - 0x1238], edi
jne 0x409871
push edi
push 0xc352b
push dword [ebp - 0x1244]
lea edi, [ebp - 0x123c]
call fcn.00409330
add esp, 0xc
test eax, eax
je 0x409871
push ebx
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0040fd90
mov dword [ebp - 0x418], 3
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x418]
movsd dword es:[edi], dword [esi]
push 0xc7fff
push eax
lea edi, [ebp - 0x123c]
call fcn.00409330
add esp, 0xc
test eax, eax
je 0x409871
mov esi, 0x45464e49
cmp dword [ebp - 0x218], esi
je 0x409834
push ebx
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040fd90
mov eax, dword [ebp - 0x1234]
add esp, 0xc
mov dword [ebp - 0x214], eax
mov eax, 0x104
push eax
lea ecx, [ebp - 0xa30]
push ecx
lea ecx, [ebp - 0x124c]
push ecx
lea ecx, [ebp - 0x1248]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], 1
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov dword [ebp - 0x208], 7
jmp 0x409848
mov eax, dword [ebp - 0x1234]
cmp dword [ebp - 0x214], eax
je 0x409867
mov dword [ebp - 0x214], eax
push ebx
lea eax, [ebp - 0x218]
push 0x32000
push eax
lea edi, [ebp - 0x123c]
call fcn.00409330
add esp, 0xc
test eax, eax
je 0x409871
mov dword [ebp - 0x1240], 1
push dword [ebp - 0x1244]
call fcn.0040aef2
pop ecx
mov eax, dword [ebp - 0x1240]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad48
leave
ret