Function at 0x414780
Capabilities:
Get disk information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp eax, ebx
je 0x41479e
push eax
call edi
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4147a8
push eax
call edi
mov eax, dword [esi + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
call edi
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x3ac], eax
push ecx
call edi
mov ecx, dword [esi + 0x7b4]
mov dword [esi + 0x3a8], eax
xor eax, eax
cmp ecx, ebx
jbe 0x41487d
mov ecx, 4
mov edx, dword [esi + 0x3a8]
mov word [edx], ax
mov edx, dword [esi + 0x3a8]
mov word [edx + 2], bx
mov edx, dword [esi + 0x3a8]
mov word [edx + 4], bx
mov edi, dword [esi + 0x3a8]
mov edx, 1
mov word [edi + 6], dx
mov edi, dword [esi + 0x3a8]
mov dword [edi + 8], edx
mov edi, dword [esi + 0x3a8]
mov word [edi + 0xc], dx
mov edx, dword [esi + 0x3a8]
mov dword [edx + 0x1a], ebx
mov edx, dword [esi + 0x3a8]
mov dword [edx + 0x2e], ebx
mov edx, dword [esi + 0x3a8]
mov dword [edx + 0x36], ebx
mov edx, dword [esi + 0x3a8]
mov word [edx + 0xe], cx
mov edx, dword [esi + 0x20c]
mov edi, dword [esi + 0x3a8]
mov dword [esi + edx*4 + 0x210], edi
mov edx, dword [esi + 0x20c]
mov ebp, dword [esi + 0x3a8]
inc edx
mov dword [esi + 0x20c], edx
mov edx, dword [esi + 0x7b4]
add ebp, 0x3e
inc eax
cmp eax, edx
mov dword [esi + 0x3a8], ebp
jb 0x4147db
mov eax, dword [esi + 0x20c]
cmp eax, 2
jae 0x41489a
mov ecx, 2
lea edi, [esi + eax*4 + 0x210]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x20c], 2
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], bl
lea eax, [esp + 0x60]
push 0x14
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
lea eax, [esp + 0x54]
push 0x11
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x80], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp byte [esp + 0x60], bl
je 0x414ad2
mov al, byte [esp + 0x18]
push ebx
movsx edx, al
sub edx, 0x41
push ebx
mov dword [esi + 0x20c], edx
mov dx, word [0x46e830]
mov ecx, dword [str..A:]
mov word [esp + 0x30], dx
xor edx, edx
push 3
mov dword [esp + 0x37], edx
mov byte [esp + 0x34], al
mov dword [esp + 0x3b], edx
push ebx
mov dword [esp + 0x43], edx
mov dword [esp + 0x34], ecx
mov cl, byte [0x46e832]
mov dword [esp + 0x47], edx
push 3
lea eax, [esp + 0x38]
mov word [esp + 0x4f], dx
push SysReAllocString
push eax
mov byte [esp + 0x46], cl
mov byte [esp + 0x59], dl
call ebp
movsx ecx, byte [esp + 0x18]
mov dword [esi + ecx*4 + 0x2ac], eax
movsx edx, byte [esp + 0x18]
cmp dword [esi + edx*4 + 0x2ac], 0xffffffff
je 0x414ad2
mov eax, dword [esi + 0x3ac]
mov edi, str.NTFS
mov word [eax + 2], bx
mov edx, dword [esi + 0x3ac]
movsx cx, byte [esp + 0x18]
sub ecx, 0x41
mov word [edx], cx
mov eax, dword [esi + 0x3ac]
mov dword [eax + 0x36], ebx
mov ecx, dword [esi + 0x3ac]
mov eax, 1
mov word [ecx + 4], bx
mov edx, dword [esi + 0x3ac]
mov word [edx + 6], bx
mov ecx, dword [esi + 0x3ac]
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x3ac]
mov word [edx + 0xc], ax
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4149f1
cmp cl, bl
je 0x4149ed
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4149f1
add eax, 2
add edi, 2
cmp cl, bl
jne 0x4149cd
xor eax, eax
jmp 0x4149f6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x414a0b
mov eax, dword [esi + 0x3ac]
mov word [eax + 0xe], 0xc
jmp 0x414a91
mov edi, 0x46e828
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x414a38
cmp cl, bl
je 0x414a34
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x414a38
add eax, 2
add edi, 2
cmp cl, bl
jne 0x414a14
xor eax, eax
jmp 0x414a3d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x414a4f
mov eax, dword [esi + 0x3ac]
mov word [eax + 0xe], 3
jmp 0x414a91
mov edi, str.FAT32
lea eax, [esp + 0x60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x414a7c
cmp cl, bl
je 0x414a78
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x414a7c
add eax, 2
add edi, 2
cmp cl, bl
jne 0x414a58
xor eax, eax
jmp 0x414a81
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x414ad2
mov eax, dword [esi + 0x3ac]
mov word [eax + 0xe], 9
mov ecx, dword [esi + 0x3ac]
mov dword [ecx + 0x2e], ebx
mov edx, dword [esi + 0x3ac]
mov dword [edx + 0x1a], ebx
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x3ac]
mov dword [esi + eax*4 + 0x210], ecx
mov ecx, dword [esi + 0x20c]
mov eax, dword [esi + 0x3ac]
inc ecx
add eax, 0x3e
mov dword [esi + 0x20c], ecx
mov dword [esi + 0x3ac], eax
mov al, byte [esp + 0x18]
inc al
cmp al, 0x5a
mov byte [esp + 0x18], al
jle 0x4148bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret