Function at 0x100301fa
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10050d26
call fcn.1004fab8
sub esp, 0x1a8
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x54], esi
push edi
mov dword [ebp - 0x10], esp
test cl, cl
je 0x10030a6a
cmp byte [ebp + 0x28], 0
je 0x10030a30
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], esi
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x10030a25
lea eax, [ebp - 0xac]
xor ebx, ebx
push eax
push 0x1000
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.1002d410
mov dword [ebp - 4], ebx
mov esi, 0xdcf
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
push dword [ebp - 0x68]
sar eax, 1
push eax
push esi
push 0xe68
call fcn.100185e4
pop ecx
pop ecx
call eax
push dword [ebp - 0x68]
lea ecx, [ebp - 0x90]
call fcn.100085e7
push 0x11fe
mov byte [ebp - 4], 1
call fcn.1002d02d
cmp dword [ebp - 0x7c], 8
pop ecx
movzx edx, ax
lea ecx, [ebp - 0x90]
cmovae ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], edx
cmp word [ecx + eax*2 - 2], dx
je 0x100302e1
lea eax, [ebp - 0x90]
push eax
push ebx
push ecx
push ecx
lea edx, [ebp - 0x70]
mov ecx, 0x1de5
call fcn.1002fd75
add esp, 0x10
push 1
lea eax, [ebp - 0x90]
mov dl, 1
push eax
push 0x2534
push 0x1765
push 0x7246
xor cl, cl
call fcn.1002ffeb
add esp, 0x14
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x7c], 8
cmovae eax, dword [ebp - 0x90]
push ebx
push eax
push esi
push 0x1297
call fcn.100185e4
pop ecx
pop ecx
call eax
push 1
push 0x380d
lea eax, [ebp - 0x90]
mov dl, 1
push eax
lea eax, [ebp - 0x70]
mov cl, dl
push eax
push 0x7d79
call fcn.1002ffeb
mov dword [ebp - 0x78], ebx
add esp, 0x14
mov dword [ebp - 0x18], 0x6797
cmp dword [ebp - 0x18], 0x6ab5
jle 0x100303a9
mov esi, ebx
mov edi, ebx
mov ecx, edi
mov eax, esi
shl eax, cl
lea ecx, [ebp - 0x19c]
cdq
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003037f
mov eax, dword [eax]
push eax
call fcn.100379e3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x19c]
call fcn.1000384d
inc edi
cmp edi, 0x5bc0
jl 0x10030361
inc esi
cmp esi, 0x3ae2
jl 0x1003035f
mov edi, dword [ebp + 0x24]
push ecx
push 0x6465
lea eax, [ebp - 0x78]
mov dl, 1
push eax
push edi
push ecx
push 0xf4c
mov ecx, 0x3249
call fcn.1002f902
add esp, 0x18
cmp dword [ebp - 0x18], 0x6789
jge 0x100303dd
push str.hbclk_jojiqsf_hnec
call fcn.100379e3
pop ecx
mov dword [ebp - 4], 1
mov eax, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x74], ebx
cmp eax, 0x12c
jae 0x10030a1a
cmp byte [ebp - 0x11], 0
jne 0x10030a1a
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100033e8
push 0x10
pop edx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
call fcn.10001bd9
push ecx
push ecx
lea edx, [ebp - 0x154]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xdc]
call fcn.10030b6d
pop ecx
pop ecx
push 0x2e
pop eax
push 2
mov dword [ebp - 0x44], 0x57031500
mov dword [ebp - 0x40], 0x56022d5e
mov dword [ebp - 0x3c], 0x11d03
mov word [ebp - 0xa8], ax
pop esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x18], esi
cmp esi, 0xc
jae 0x100305a5
movzx eax, byte [ebp - 0x44]
lea eax, [eax*2 + 2]
cmp esi, eax
jne 0x10030491
movzx ecx, byte [ebp + esi - 0x44]
dec esi
add esi, ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
jmp 0x1003059d
movzx edx, byte [ebp + esi - 0x43]
mov eax, esi
sub eax, dword [ebp - 0x58]
movzx eax, byte [ebp + eax - 0x46]
movzx eax, word [ebp + eax*2 - 0xa8]
mov ecx, eax
and eax, edx
or ecx, edx
sub ecx, eax
movzx eax, byte [ebp + esi - 0x44]
mov word [ebp + eax*2 - 0xa8], cx
mov dword [ebp - 0x1c], 0x7bb0
cmp dword [ebp - 0x1c], 0x7c2e
jle 0x1003052e
mov esi, ebx
mov edi, ebx
mov edx, edi
mov eax, ebx
and edx, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, ebx
mov dword [ebp - 0x2c], ebx
add eax, ecx
mov ecx, 0x10067998
xor eax, edx
cdq
push edx
push eax
call fcn.100032d3
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
inc ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x7bba
jl 0x100304e2
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 0x269
jl 0x100304dd
inc edi
cmp edi, 0x2688
jl 0x100304d1
inc esi
cmp esi, 0x11b0
jl 0x100304cf
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [ebp - 0x18]
push 0x6fe5
push 1
push ecx
push ecx
mov edx, 0x4fe8
lea ecx, [ebp - 0x58]
call fcn.1002fd75
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 0x7908
jge 0x10030596
mov edx, str.kqqd_sfaabg_awf_sednzdzl
mov ecx, 0x10067998
call fcn.100056ca
jmp 0x10030596
mov dword [ebp - 4], 5
add esi, 2
jmp 0x10030463
xor eax, eax
mov dword [ebp - 0x110], 7
mov word [ebp - 0xa0], ax
lea ecx, [ebp - 0x124]
mov word [ebp - 0x124], ax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x114], ebx
call fcn.10008836
push ecx
push ecx
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xdc]
call fcn.1000ad34
push ebx
push 1
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.100039bf
xor eax, eax
lea edi, [ebp - 0xa8]
cmp dword [ebp - 0xc8], 8
stosd dword es:[edi], eax
push ebx
push 0x80
push 2
stosd dword es:[edi], eax
push ebx
push ebx
push 0x40000000
stosw word es:[edi], ax
lea eax, [ebp - 0xdc]
cmovae eax, dword [ebp - 0xdc]
mov edi, 0xdcf
push eax
push edi
push 0x9a0
call fcn.100185e4
pop ecx
pop ecx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x100309ee
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 0x6c]
push ebx
push eax
push dword [ebp - 0x78]
push dword [ecx]
push esi
push edi
push 0xa39
call fcn.100185e4
pop ecx
pop ecx
call eax
push esi
test eax, eax
push edi
push 0x1594
setne byte [ebp - 0x1d]
call fcn.100185e4
pop ecx
pop ecx
call eax
mov dword [ebp - 0x2c], 0x41d0
cmp dword [ebp - 0x2c], 0x445a
jle 0x10030762
push ebx
push ebx
push 0x1812
push ebx
push 0x1194
push ebx
push 0xa68
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov dword [ebp - 0x34], ebx
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov eax, edi
mov dword [ebp - 0x38], ebx
cdq
mov edi, ebx
idiv esi
mov esi, dword [ebp - 0x18]
mov eax, edx
mov dword [ebp - 0xbc], eax
xor eax, edi
lea ecx, [ebp - 0x16c]
xor eax, esi
cdq
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100306ef
mov eax, dword [eax]
push eax
call fcn.100379e3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x16c]
call fcn.1000384d
mov eax, dword [ebp - 0xbc]
inc edi
cmp edi, 0x29b2
jl 0x100306d3
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x6150
jl 0x100306be
inc edi
mov dword [ebp - 0x34], edi
cmp edi, 0x5d6d
jl 0x100306b9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x3258
jl 0x100306b4
push ebx
push 0xa26
push 0xd16
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
cmp byte [ebp - 0x1d], 0
je 0x100309d3
mov dword [ebp - 0x28], 0x44022900
mov byte [ebp - 0x24], 0xa8
mov dword [ebp - 0x1c], 0x1abc
cmp dword [ebp - 0x1c], 0x1b29
jle 0x100307cd
mov esi, ebx
mov edi, ebx
lea eax, [edi + esi]
cdq
lea ecx, [ebp - 0x184]
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100307a6
mov eax, dword [eax]
push eax
call fcn.100379e3
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x184]
call fcn.1000384d
inc edi
cmp edi, 0xab9
jl 0x1003078b
inc esi
cmp esi, 0x3e4b
jl 0x10030789
cmp dword [ebp - 0x1c], 0x1918
push 0x22
pop eax
mov word [ebp - 0x30], ax
jge 0x100307e8
push str.sihotimfw_rms_fnzg_noc_aisvrtptx_whtjbuiz_yek_toxd_pbmc_arcs_pyrulr_unyscphh_fwxivrt_cnrbgam
call fcn.100379e3
pop ecx
push 2
mov dword [ebp - 4], 5
mov ecx, ebx
pop esi
cmp esi, 2
jne 0x10030800
push 3
pop ecx
push ecx
pop esi
jmp 0x10030829
movzx edx, byte [ebp + esi - 0x27]
mov eax, esi
sub eax, ecx
movzx eax, byte [ebp + eax - 0x2a]
movzx ecx, word [ebp + eax*2 - 0x30]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [ebp + esi - 0x28]
add ecx, edx
mov word [ebp + eax*2 - 0x30], cx
mov ecx, ebx
add esi, 2
cmp esi, 5
jb 0x100307f4
xor eax, eax
mov dword [ebp - 0xe4], ebx
push 7
mov word [ebp - 0x2e], ax
lea ecx, [ebp - 0xf4]
pop edi
mov word [ebp - 0xf4], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0xe0], edi
call fcn.10008836
push ecx
push 0x6bf2
push 1
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0xb
push 0x20c3
push eax
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x30], ebx
call fcn.1002ff7d
add esp, 0x14
mov dword [ebp - 0x50], 0xf029101
mov ecx, ebx
mov dword [ebp - 0x4c], 0xd003401
mov word [ebp - 0x48], 0x7103
mov dword [ebp - 0x5c], ecx
push 0x20
pop eax
push 2
mov word [ebp - 0x9a], ax
pop esi
cmp esi, 4
jne 0x100308b8
push 2
pop ecx
mov dword [ebp - 0x5c], ecx
jmp 0x100308f9
movzx edx, byte [ebp + esi - 0x4f]
mov eax, esi
sub eax, ecx
push 0x523d
push ebx
movzx eax, byte [ebp + eax - 0x52]
movzx ecx, word [ebp + eax*2 - 0x9c]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [ebp + esi - 0x50]
add ecx, edx
lea edx, [ebp - 0x5c]
mov word [ebp + eax*2 - 0x9c], cx
call fcn.1002ffb0
mov ecx, dword [ebp - 0x5c]
add esp, 8
add esi, 2
cmp esi, 0xa
jb 0x100308ab
xor eax, eax
mov dword [ebp - 0x128], edi
mov word [ebp - 0x94], ax
lea ecx, [ebp - 0x13c]
mov word [ebp - 0x13c], ax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x12c], ebx
call fcn.10008836
push ecx
push ecx
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0xf4]
call fcn.1000ad34
push ebx
push 1
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xb
call fcn.100039bf
xor eax, eax
lea edi, [ebp - 0x9c]
stosd dword es:[edi], eax
mov edx, 0x501a
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x11]
push eax
push 1
call fcn.1002ffb0
add esp, 8
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0xf4]
call fcn.1002f331
mov ecx, dword [ebp - 0x54]
push ebx
push 1
mov dword [ecx], eax
lea ecx, [ebp - 0xf4]
call fcn.100039bf
push ebx
push 1
lea ecx, [ebp - 0x154]
call fcn.100039bf
push ebx
push 1
lea ecx, [ebp - 0xdc]
call fcn.100039bf
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.100039bf
lea ecx, [ebp - 0x68]
call fcn.100089af
jmp 0x10030b1c
cmp dword [ebp - 0x2c], 0x3fdd
jge 0x100309e7
push str.nvcmshhzk_pczhv_dmfenacxl
call fcn.100379e3
pop ecx
mov dword [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x154]
call fcn.100039bf
push ebx
push 1
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.100039bf
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
jmp 0x100303ec
mov ecx, dword [ebp - 0x54]
mov dword [ecx], 2
jmp 0x100309b8
mov dword [esi], 1
jmp 0x10030b1c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x2c]
push 0xffffffffffffffff
push dword [eax]
lea eax, [ebp - 0x1b4]
push eax
call fcn.10031153
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0xf
call fcn.10031201
push 0
push 1
lea ecx, [ebp - 0x1b4]
call fcn.100039bf
jmp 0x10030b1c
cmp byte [ebp + 0x1c], 0
je 0x10030b17
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x18]
call fcn.100033e8
lea ecx, [ebp - 0xb8]
call fcn.1002f2a2
add esp, 0x18
mov dword [ebp - 4], 0x10
xor ebx, ebx
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 0xb8], eax
je 0x10030b10
push dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0xf8], 7
push eax
push dword [ebp - 0xb8]
mov word [ebp - 0x10c], cx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xfc], ebx
call fcn.1001984b
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 0x11
call fcn.1002f85e
lea ecx, [ebp - 0x10c]
push ebx
push 1
test eax, eax
jns 0x10030b0b
mov eax, dword [ebp + 8]
mov byte [eax], 1
call fcn.100039bf
lea ecx, [ebp - 0xb8]
call fcn.10008939
jmp 0x10030b1c
call fcn.100039bf
mov eax, dword [ebp + 8]
mov byte [eax], bl
jmp 0x10030afe
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret