Function at 0x432a90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x4c]
lea edi, [esp + 0x4c]
push eax
push 0xff
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x4c], bx
mov dword [esp + 0x34], ebx
je 0x432f8d
jmp 0x432add
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 2
jne 0x432b10
mov ax, word [edi]
cmp ax, 0x41
je 0x432afa
cmp ax, 0x42
jne 0x432b10
push edi
call fcn.0045a751
lea ecx, [edi + eax*2 + 2]
add esp, 4
mov dword [esp + 0x1c], ecx
jmp 0x432f80
mov eax, dword [0x46b21c]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], eax
call fcn.0045a751
add esp, 4
cmp esi, 3
mov dword [esp + 0x48], eax
je 0x432b42
cmp esi, 4
je 0x432b42
cmp esi, 2
je 0x432b42
cmp esi, 6
jne 0x432f60
xor edx, edx
lea eax, [esp + 0x2c]
mov dx, word [edi]
mov word [edi + 2], bx
push edx
push 0x46dea0
push eax
call fcn.004036a0
mov ecx, dword [0x46b21c]
xor edx, edx
mov dx, word [edi]
add esp, 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
push edx
push 0x46c130
push eax
call fcn.004036a0
mov ecx, dword [0x4b0f44]
add esp, 0xc
push ebx
push ebx
push 0x146
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], eax
mov eax, dword [0x483978]
cmp dword [eax - 0xc], ebx
jl 0x432bb2
mov dword [esp + 0x28], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432bd8
mov edx, dword [0x46b21c]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], edx
jne 0x432bc6
xor eax, eax
jmp 0x432bcd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.004027f0
mov eax, dword [0x46b21c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x30]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push edx
call fcn.00401eb0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00429290
lea ecx, [esp + 0x18]
call fcn.00401e80
mov eax, dword [esp + 0x28]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x432c46
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x432c4c
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
jmp 0x432c4c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x432c62
cmp dword [eax - 4], ebx
jge 0x432ca9
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x432c6b
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x432ca9
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.004028a0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [0x4b0f44]
push edx
push 0x14a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x483978]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x432cdc
mov dword [esp + 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x432cf0
mov ecx, dword [0x46b21c]
push eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x24]
call fcn.00402e60
mov edx, dword [0x46b21c]
mov eax, str.SoftwareOK_
test eax, eax
mov dword [esp + 0x18], edx
je 0x432d0e
push str.SoftwareOK_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SoftwareOK_
push eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401eb0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
push edx
call fcn.00429290
lea ecx, [esp + 0x18]
call fcn.00401e80
mov eax, dword [0x46b21c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x34]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x4c]
push edx
call fcn.00401eb0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
push eax
call fcn.00429290
lea ecx, [esp + 0x40]
call fcn.00401e80
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
cmp ecx, eax
je 0x432dce
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x432d98
mov edx, dword [0x46b220]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x432d9f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x432daf
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004027f0
jmp 0x432dca
lea ecx, [esp + 0x10]
call fcn.00402690
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x432df5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x432df5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x432e20
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x432e20
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x432e4b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x432e4b
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x432e63
mov edx, dword [ecx - 4]
test edx, edx
jge 0x432ea0
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x432e6c
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x432ea4
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.004028a0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [0x4b0f44]
push edx
push 0x14a
push eax
call esi
mov ecx, dword [0x4b0f44]
push 0
push 0
push 0x146
push ecx
call esi
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x432ef5
mov ecx, dword [0x4b0f48]
test ecx, ecx
je 0x432ef5
mov edx, dword [0x4b0f44]
add eax, 0xfffffffe
push 0
push eax
push 0x14e
push edx
call esi
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
mov edx, dword [0x46b220]
inc esi
lea ecx, [eax - 0xc]
mov dword [esp + 0x34], esi
cmp ecx, edx
je 0x432f2d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x432f2d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x38]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x432f5c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x432f5c
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
lea ecx, [edi + eax*2 + 2]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x3c]
call fcn.00401e80
lea ecx, [esp + 0x2c]
call fcn.00401e80
xor ebx, ebx
mov edx, dword [esp + 0x1c]
cmp word [edx], bx
jne 0x432ad9
mov eax, dword [0x4b0f4c]
push ebx
push ebx
push 0xf0
push 0x412
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004330d0
add esp, 4
lea edx, [esp + 0x18]
mov ecx, esp
push edx
call fcn.00429290
lea eax, [esp + 0x40]
push eax
call fcn.004326a0
add esp, 8
lea ecx, [esp + 0x14]
push eax
call fcn.004082c0
lea ecx, [esp + 0x3c]
call fcn.00401e80
mov ecx, dword [esp + 0x14]
mov esi, 1
cmp dword [ecx - 8], esi
jle 0x433043
push 0x100
lea ecx, [esp + 0x18]
call fcn.00402f30
push eax
call fcn.004330a0
add esp, 4
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401f50
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], esi
jle 0x433043
push 0x100
lea ecx, [esp + 0x18]
call fcn.00402f30
push eax
call fcn.004330a0
add esp, 4
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x433087
mov ecx, dword [0x4b0f44]
push ebx
push ebx
push 0x146
push ecx
call edi
push ebx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402f30
mov edx, dword [0x4b0f44]
push eax
push esi
push 0x14a
push edx
call edi
mov eax, dword [0x4b0f44]
push ebx
push esi
push 0x14e
push eax
call edi
lea ecx, [esp + 0x14]
call fcn.00401e80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret