Function at 0x4277f9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x22e]
mov word [ebp - 0x230], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x230]
lea edi, [ebp - 0x230]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x230], bx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], ebx
je 0x4279f4
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 0x10], eax
jne 0x427879
mov ax, word [edi]
cmp ax, 0x41
je 0x427869
cmp ax, 0x42
jne 0x427879
push edi
call sub.MSVCRT.dll_wcslen
pop ecx
lea edi, [edi + eax*2 + 2]
jmp 0x4279eb
mov eax, dword [0x4421a0]
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_wcslen
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
cmp eax, 3
pop ecx
je 0x4278a9
cmp eax, 4
je 0x4278a9
cmp eax, 2
je 0x4278a9
cmp eax, 6
jne 0x4279d4
movzx eax, word [edi]
push eax
lea eax, [ebp - 0xc]
push str._C:_
push eax
mov word [edi + 2], bx
call fcn.00408deb
mov eax, dword [0x4421a0]
add esp, 0xc
mov dword [ebp - 0x1c], eax
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x1c]
push str.._c:
push eax
call fcn.00408deb
add esp, 0xc
push ebx
push ebx
push 0x146
push dword [0x4a7a74]
call esi
push 0x4a7050
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.004017a8
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004019df
lea ecx, [ebp - 0x20]
call fcn.004017ee
push ebx
lea ecx, [ebp - 8]
call fcn.00401b61
push eax
push dword [ebp - 0x10]
push 0x14a
push dword [0x4a7a74]
call esi
push 0x4a7050
lea ecx, [ebp - 0x30]
call fcn.004017a8
push eax
lea eax, [ebp - 0xc]
push str.SoftwareOK_
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401a81
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004019df
push eax
lea ecx, [ebp - 8]
call fcn.00407091
lea ecx, [ebp - 0x2c]
call fcn.004017ee
lea ecx, [ebp - 0x28]
call fcn.004017ee
lea ecx, [ebp - 0x30]
call fcn.004017ee
push ebx
lea ecx, [ebp - 8]
call fcn.00401b61
push eax
push dword [ebp - 0x10]
push 0x14a
push dword [0x4a7a74]
call esi
push ebx
push ebx
push 0x146
push dword [0x4a7a74]
call esi
cmp dword [ebp - 0x14], ebx
jne 0x4279c1
cmp dword [0x4a7a78], ebx
je 0x4279c1
add eax, 0xfffffffe
push ebx
push eax
push 0x14e
push dword [0x4a7a74]
call esi
inc dword [ebp - 0x14]
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 0x1c]
call fcn.004017ee
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
lea edi, [edi + eax*2 + 2]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
cmp word [edi], bx
jne 0x42784b
push ebx
push ebx
push 0xf0
push 0x3f9
push dword [0x4a7a7c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.00427b1b
mov eax, dword [ebp - 4]
pop ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x427a35
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x427a44
mov eax, dword [0x4421a0]
mov dword [ecx], eax
push dword [ebp - 4]
call fcn.00401974
lea eax, [ebp - 0x18]
push eax
call fcn.0042779b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00407091
lea ecx, [ebp - 0x18]
call fcn.004017ee
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 1
jle 0x427aab
mov edi, pe_nt_image_headers32
lea ecx, [ebp - 4]
push edi
call fcn.00401b61
push eax
call fcn.00427af8
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00401bc9
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 1
jle 0x427aab
push edi
lea ecx, [ebp - 4]
call fcn.00401b61
push eax
call fcn.00427af8
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00401bc9
mov eax, dword [ebp - 4]
cmp dword [eax - 8], ebx
je 0x427aeb
push ebx
push ebx
push 0x146
push dword [0x4a7a74]
call esi
push ebx
lea ecx, [ebp - 4]
mov edi, eax
call fcn.00401b61
push eax
push edi
push 0x14a
push dword [0x4a7a74]
call esi
push ebx
push edi
push 0x14e
push dword [0x4a7a74]
call esi
lea ecx, [ebp - 4]
call fcn.004017ee
pop edi
pop esi
pop ebx
leave
ret