Function at 0x403220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], edx
mov edx, ecx
push ebx
push esi
mov dword [esp + 0x48], edx
mov ebx, dword [edx]
push edi
cmp byte [ebx], 0
je 0x403273
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403253
sub ecx, esi
cmp ecx, 0x24
jae 0x40328a
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403266
sub eax, esi
add eax, ebx
mov dword [edx], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040dbcf
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00403150
movzx eax, ax
lea ecx, [ebx + 4]
mov dword [esp + 0x1c], eax
call fcn.00403150
lea ecx, [ebx + 8]
movzx esi, ax
call fcn.00403150
lea ecx, [ebx + 0xc]
movzx edi, ax
call fcn.00403150
movzx eax, ax
lea ecx, [ebx + 0x10]
mov dword [esp + 0x18], eax
call fcn.00403150
movzx ebx, ax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
add ecx, 0x14
call fcn.00403150
mov ecx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x14], eax
mov ecx, dword [ecx]
lea ecx, [ecx + 0x18]
call fcn.00403150
mov ecx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x10], eax
mov ecx, dword [ecx]
lea ecx, [ecx + 0x1c]
call fcn.00403150
mov ecx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0xc], eax
mov ecx, dword [ecx]
lea ecx, [ecx + 0x20]
call fcn.00403150
mov ecx, dword [esp + 0x4c]
movzx edx, ax
mov dword [esp + 0x20], edx
push 0
add dword [ecx], 0x24
mov ecx, dword [esp + 0x20]
lea eax, [edx + ecx]
xor eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x1c]
xor eax, edi
mov dword [esp + 0x2c], eax
lea eax, [edx + ecx]
xor esi, eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x14], esi
xor dword [esp + 0x10], eax
lea eax, [esi + ecx]
xor eax, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, edx
sub eax, ebx
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00414f4b
add esp, 4
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], edx
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0x438140
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x403273
mov ax, si
shr ax, 4
movzx edi, ax
mov ax, bx
shr ax, 0xc
movzx esi, ax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00415217
mov eax, dword [esp + 0x74]
add esp, 8
add eax, 0x76c
movzx ecx, ax
mov eax, dword [esp + 0x68]
inc eax
movzx eax, ax
cmp cx, di
ja 0x403273
jne 0x403400
cmp ax, si
ja 0x403273
jne 0x403400
movzx eax, bl
cmp word [esp + 0x64], ax
ja 0x403273
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
movzx eax, ax
push eax
movzx eax, bx
push eax
mov eax, dword [esp + 0x18]
movzx eax, ax
push eax
mov eax, ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x28]
movzx eax, ax
push eax
movzx eax, cx
push eax
mov eax, dword [esp + 0x34]
movzx eax, ax
push eax
lea eax, [esp + 0x98]
push str._04x_04x_04x_04x_04x_04x_04x
push eax
call fcn.0040b260
add esp, 0x24
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x34]
push eax
call fcn.00404410
lea ecx, [esp + 0x34]
call fcn.00402950
lea ecx, [esp + 0x34]
mov esi, eax
mov ebx, edx
call fcn.00404320
mov ecx, dword [esp + 0x14]
movzx eax, cx
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x24]
shld edi, ecx, 0x10
movzx eax, ax
shl ecx, 0x10
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x28]
shld edi, ecx, 0x10
movzx eax, ax
shl ecx, 0x10
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x2c]
shld edi, ecx, 0x10
movzx eax, ax
shl ecx, 0x10
cdq
or ecx, eax
or edi, edx
cmp esi, ecx
jne 0x403273
cmp ebx, edi
jne 0x403273
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
pop edi
movzx ecx, dx
mov dword [eax], ecx
mov al, 1
mov ecx, dword [esp + 0x98]
pop esi
pop ebx
xor ecx, esp
call fcn.0040dbcf
mov esp, ebp
pop ebp
ret