Function at 0x1003f60e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x28], esi
cmp byte [edi], 0x50
jne 0x1003fe24
cmp byte [edi + 1], 0x4b
jne 0x1003fe24
push 4
pop esi
mov dword [ebp - 4], 0xbacd7953
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xc], esi
xor ebx, ebx
mov dword [ebp - 0x14], 0xfffffff7
mov dword [ebp - 0x1c], ebx
push esi
call fcn.10001b45
mov dword [ebp - 0xc], ebx
jmp 0x1003f66e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*4], 0x1e1d82c3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jl 0x1003f65e
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
neg esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sbb esi, esi
mov dword [ebp - 0x14], eax
neg esi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
sub edx, eax
mov eax, dword [ebp - 4]
neg edx
push 3
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 4]
setge cl
xor edx, edx
cmp esi, ecx
setge dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [ebp - 4]
pop edx
setne bl
xor ecx, ecx
cmp eax, ebx
setl cl
xor eax, eax
cmp ecx, 0x1d91e66c
setge al
xor esi, esi
imul eax, dword [ebp - 4]
inc esi
xor ebx, ebx
test eax, eax
je 0x1003f6e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x1003f783
mov dword [ebp - 0x14], ebx
jmp 0x1003f75c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x58]
push 3
mov eax, dword [ecx]
mov dword [ecx + edx*4], eax
mov dword [ebp - 0xc], ebx
pop edx
jmp 0x1003f754
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], ebx
jl 0x1003f751
mov dword [ebp - 4], edx
cmp dword [ebp - 4], ebx
jl 0x1003f72b
mov dword [ebp - 8], esi
mov dword [ebp - 8], ebx
jmp 0x1003f71e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
cmp dword [eax + ecx*4], ebx
jne 0x1003f723
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
jle 0x1003f710
mov eax, dword [ebp - 0x1c]
dec dword [ebp - 4]
jns 0x1003f708
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], bl
je 0x1003f74c
push 0x229a
push ebx
push 0x1160
push 0x4c7
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 3
pop edx
dec dword [ebp - 0x1c]
jns 0x1003f700
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edx
jle 0x1003f6f8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jle 0x1003f6e5
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], bl
je 0x1003f783
push ebx
push ebx
push 0x28a
push ebx
push 0x2081
push ebx
push ebx
push 0x1d22
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x58], 0
je 0x1003f79b
push dword [ebp - 0x58]
call fcn.10044367
pop ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov cl, byte [edi + 2]
mov dword [ebp - 0xc], 0x1e559696
mov dword [ebp - 8], ebx
jmp 0x1003f7b8
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x74], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1003f7aa
mov dword [ebp - 0xc], ebx
jmp 0x1003f7c7
jne 0x1003f7cc
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ebx
jle 0x1003f7c2
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc], eax
mov al, byte [edi + 3]
mov dword [ebp - 4], esi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x40]
movzx edi, cl
push 2
add edi, 4
pop esi
mov dword [ebp - 0x1c], esi
add eax, edi
mov dword [ebp - 0xc], 0x2e0f6194
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], ebx
jmp 0x1003f809
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x3c], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1003f7fb
mov dword [ebp - 4], ebx
jmp 0x1003f934
mov dword [ebp - 0x14], 0x32bb11ac
mov dword [ebp - 0x20], 0xfe511bd7
mov dword [ebp - 0x20], 0xfffffff9
mov dword [ebp - 0x14], ebx
jmp 0x1003f928
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
inc eax
cmp eax, 0xf495
jge 0x1003f8d2
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
cmp eax, 0x65bc8114
mov eax, dword [ebp - 4]
setge cl
cmp ecx, 0xfff7
mov eax, dword [ebp + eax*4 - 0x3c]
sbb edx, edx
inc edx
xor ecx, ecx
cmp edx, eax
setle cl
xor edx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
setle dl
sub edx, 0x7180
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
neg edx
sbb edx, edx
inc edx
cmp edx, dword [ebp + eax*4 - 0x3c]
jle 0x1003f8c4
cmp dword [ebp - 0xc], ebx
je 0x1003f8c4
xor eax, eax
inc eax
jmp 0x1003f8c6
mov eax, ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], ebx
jne 0x1003f8d2
mov ecx, ebx
jmp 0x1003f8d5
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
imul eax, ecx
test eax, eax
jne 0x1003f8ea
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1003f925
push 0x172b
push 0xd26
push 0xd10
call dword [sym.imp.KERNEL32.dll_MulDiv]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x1003f834
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jle 0x1003f817
mov dword [ebp - 4], ebx
jmp 0x1003f956
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1003f953
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetRgnBox]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x12
jg 0x1003f942
xor eax, eax
lea ecx, [ebp - 0x70]
inc eax
add edi, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0xc], 0x1fc80ae7
mov dword [ebp - 0x20], 0x92079655
push eax
call fcn.10001b45
mov dword [ebp - 8], ebx
jmp 0x1003f997
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x70]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jl 0x1003f98b
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x1003f9ac
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
setg cl
xor edx, edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
cmp ecx, eax
mov eax, dword [ebp - 4]
setl dl
xor ebx, ebx
cmp edx, eax
setle bl
xor ecx, ecx
imul ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, ebx
mov eax, dword [ebp - 0x70]
setge cl
xor edx, edx
inc edx
mov dword [eax], ecx
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
cmp eax, edx
mov eax, dword [ebp - 0x20]
setg cl
xor edx, edx
cmp eax, ecx
setne dl
xor ecx, ecx
imul edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp edx, eax
mov eax, dword [ebp - 4]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 4]
push dword [ebp - 0x70]
setl dl
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 4], ecx
call fcn.10044367
movzx eax, byte [ebp - 0xd]
xor ebx, ebx
add edi, eax
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
call fcn.1001c4be
push 3
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x6e6a3735
mov dword [ebp - 0x28], 0x88047d20
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], 0x7b051af7
add eax, edi
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x78], 4
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
je 0x1003faa0
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 4], ebx
je 0x1003fb24
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x64]
push esi
call fcn.10001b45
mov dword [ebp - 8], ebx
jmp 0x1003fac9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], 0x36b16b47
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1003fab9
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fae9
push 0x215a
push ebx
push ebx
push 0x1df8
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x64], ebx
je 0x1003fb03
push dword [ebp - 0x64]
call fcn.10044367
pop ecx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
xor edi, edi
inc edi
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fb15
push ebx
call dword [sym.imp.GDI32.dll_CreatePenIndirect]
mov dword [ebp - 4], 0x77862fd4
mov dword [ebp - 8], ebx
jmp 0x1003fca9
mov dword [ebp - 0x28], 0xffff
mov dword [ebp - 8], ebx
jmp 0x1003fb3e
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x30], 0x9fe57f6c
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1003fb30
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
jmp 0x1003fc6c
mov dword [ebp - 0xc], 0x469209a4
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fb64
push ebx
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov dword [ebp - 0x14], ebx
jmp 0x1003fc60
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x30]
setne cl
sub ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x30]
sub ecx, eax
add ecx, 0x9469
jne 0x1003fb94
mov ecx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x1003fb96
mov ecx, edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + eax*4 - 0x30]
mov eax, dword [ebp - 0xc]
sub ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
xor ecx, ecx
cmp edx, eax
setne cl
imul ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x1003fbbd
mov eax, ebx
cmp dword [ebp - 0x30], ebx
je 0x1003fbbf
mov eax, edi
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x1c]
setne cl
xor edx, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
setg dl
add edx, 7
imul edx, eax
mov eax, dword [ebp - 0xc]
sub edx, eax
mov dword [ebp - 0x1c], edx
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
setl dl
sub edx, 0xfc5a
jne 0x1003fc02
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x30], ebx
mov eax, ebx
je 0x1003fc04
mov eax, edi
mov ecx, dword [ebp - 0x14]
xor edx, edx
imul ecx, eax
mov eax, dword [ebp - 0x78]
add ecx, 0x5eac
cmp ecx, eax
mov eax, dword [ebp - 0x28]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 4]
setg cl
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x30]
cmp ecx, eax
mov eax, dword [ebp - 4]
setge dl
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x30]
test eax, eax
mov eax, dword [ebp - 0x14]
sete cl
mov eax, dword [ebp + eax*4 - 0x30]
sub eax, ecx
xor ecx, ecx
cmp eax, edx
setge cl
cmp ecx, 0xeeb303a6
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jle 0x1003fb6c
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jle 0x1003fb4e
mov dword [ebp - 0x1c], 5
jmp 0x1003fc90
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fc8d
push ebx
call dword [sym.imp.GDI32.dll_GetObjectType]
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xfffffff3
jl 0x1003fc7e
jmp 0x1003fb06
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x48], 0x3367
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jl 0x1003fc9b
mov dword [ebp - 4], ebx
jmp 0x1003fd2f
mov dword [ebp - 0x1c], 0x70ade21
mov dword [ebp - 0x1c], ebx
jmp 0x1003fd23
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], ebx
jl 0x1003fd20
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x14], ebx
jmp 0x1003fce7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + eax*4 - 0x48]
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x48], ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jle 0x1003fcd6
mov dword [ebp - 0x14], ebx
jmp 0x1003fd16
mov dword [ebp - 8], 0x6de0184d
mov dword [ebp - 8], edi
cmp dword [ebp - 8], ebx
jl 0x1003fd13
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + eax*4 - 0x48]
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x48], ecx
dec dword [ebp - 8]
jns 0x1003fd00
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jle 0x1003fcf1
dec dword [ebp - 0xc]
jns 0x1003fcca
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x15
jge 0x1003fcbf
mov eax, dword [ebp - 0x44]
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xfffffff4
jle 0x1003fcb3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
mov edi, dword [ebp - 0x24]
push 3
mov dword [eax], edi
mov dword [ebp - 0x24], 0xb0f73838
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 8], 1
call fcn.10001b45
mov dword [ebp - 0x24], 0xfffffffb
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ebx
jmp 0x1003fd89
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x84]
mov dword [eax + ecx*4], 0xfffffff6
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1003fd76
inc dword [ebp - 0xc]
mov dword [ebp - 8], ebx
jmp 0x1003fdac
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fda9
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1b
jl 0x1003fd97
cmp dword [ebp - 0x84], ebx
je 0x1003fdc6
push dword [ebp - 0x84]
call fcn.10044367
pop ecx
mov ecx, dword [ebp - 0x4c]
shr edi, 2
mov eax, dword [ecx]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x88], eax
inc edi
je 0x1003fea3
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
sub esi, ecx
mov ecx, dword [ecx]
mov edx, ebx
and edx, 3
mov edx, dword [ebp + edx*4 - 0x94]
call fcn.1001c4be
mov ecx, dword [ebp - 0x20]
mov dword [esi + ecx], eax
add ecx, 4
inc ebx
mov dword [ebp - 0x20], ecx
cmp ebx, edi
jb 0x1003fdfe
jmp 0x1003fea3
mov dword [ebp - 0xc], 0xfffffffc
xor ebx, ebx
mov dword [ebp - 0x24], 0xffff
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], 0xb
jle 0x1003fe8f
push 2
pop esi
mov dword [ebp - 0x1c], 0x1f665683
mov dword [ebp - 0x1c], esi
jmp 0x1003fe7d
mov dword [ebp - 8], 0xfa831eb2
cmp dword [ebp - 0x1c], ebx
jne 0x1003fe74
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub eax, ecx
je 0x1003fe71
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jge 0x1003fe71
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xfffffff1
je 0x1003fe4c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xb
jg 0x1003fe40
mov esi, dword [ebp - 0x28]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1003fe9e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret