Function at 0x100649fc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x2ac
push ebx
push esi
push edi
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x7c]
mov eax, ecx
shr eax, 0x12
xor edx, edx
inc edx
and eax, edx
mov dword [ebp + 0x44], eax
mov eax, ecx
and eax, 0x200000
mov dword [ebp + 0x4c], eax
mov eax, ecx
mov ebx, ecx
mov esi, ecx
mov edi, ecx
and eax, 0x100000
and ecx, 0xc000ffff
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [eax]
xor eax, eax
shr ebx, 0x10
shr esi, 0x13
shr edi, 0x11
and ebx, edx
and esi, edx
and edi, edx
mov word [ecx], ax
push 0x1100d8
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x58], eax
call fcn.10045fcc
mov eax, dword [ebp + 0x50]
add eax, 0x100010
lea ecx, [eax + 0xc000]
and word [ecx], 0
mov dword [ebp + 0x30], eax
lea eax, [ecx + 0xc8]
shl ebx, 0xb
add ebx, eax
shl esi, 0xb
add esi, ebx
shl edi, 0xb
add edi, esi
push 0x20
pop edx
mov word [edi], dx
mov word [esi], dx
mov word [ebx], dx
mov word [eax], dx
xor edx, edx
mov word [edi + 2], dx
mov word [esi + 2], dx
mov word [ebx + 2], dx
mov dword [ebp + 0x38], eax
mov word [eax + 2], dx
mov eax, dword [ebp + 0x7c]
cmp eax, edx
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], edi
jl 0x10064ae0
mov dword [ebp + 0x68], eax
jmp 0x10064af0
mov dword [ebp + 0x68], edx
cmp dword [ebp + 0x68], 0x3e80
jge 0x10064eb8
push dword [ebp + 0x68]
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x40], eax
je 0x10064b29
cmp dword [ebp + 0x7c], eax
jl 0x10064b29
mov eax, dword [ebp + 0x38]
push 0x100c8078
push 0x13
add eax, 2
push eax
push dword [ebp + 0x68]
call fcn.10054fe7
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0x3c], eax
je 0x10064b4b
cmp dword [ebp + 0x7c], eax
jl 0x10064b4b
push 0x100c8078
push 0x14
lea eax, [ebx + 2]
push eax
push dword [ebp + 0x68]
call fcn.10054fe7
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0x34], eax
mov dword [ebp + 0x6c], eax
je 0x10064b5f
cmp dword [ebp + 0x7c], eax
mov dword [ebp + 0x5c], 1
jge 0x10064b62
mov dword [ebp + 0x5c], eax
push eax
push 0x20000000
push 3
push eax
mov eax, dword [ebp + 0x5c]
neg eax
sbb eax, eax
and eax, 0x40000000
push 3
add eax, 0x80000000
push eax
push dword [ebp + 0x60]
lea ecx, [ebp + 0x6c]
call fcn.10005b9d
xor eax, eax
cmp dword [ebp + 0x5c], eax
je 0x10064ba6
push eax
lea eax, [esi + 2]
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
call fcn.10055a68
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0x44], eax
je 0x10064bc6
cmp dword [ebp + 0x7c], eax
jl 0x10064bcb
push 1
lea eax, [edi + 2]
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
call fcn.10055a68
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0x7c], eax
jge 0x10064c17
cmp dword [ebp + 0x6c], eax
je 0x10064bf7
push dword [ebp + 0x68]
mov dword [ebp + 0x58], eax
push 0x100c9a20
push dword [ebp + 0x60]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x78]
add esp, 0xc
push dword [ebp + 0x60]
call fcn.1004618f
inc dword [ebp + 0x64]
jmp 0x10064c04
inc dword [ebp + 0x58]
cmp dword [ebp + 0x58], 0x20
jge 0x10064eb0
lea ecx, [ebp + 0x6c]
call fcn.10002d56
inc dword [ebp + 0x68]
mov ecx, dword [ebp + 0x60]
jmp 0x10064ae3
cmp dword [ebp + 0x6c], eax
je 0x10064eb0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x50]
push 0xc0
push 0
push esi
mov dword [ebp + 0x7c], esi
call fcn.100b40f0
and dword [ebp + 0x60], 0
lea eax, [ebp + 0x60]
push eax
push esi
push dword [ebp + 0x6c]
call fcn.100437ab
add esp, 0x18
test eax, eax
je 0x10064c55
mov dword [ebp + 0x7c], eax
mov esi, 0x100d06f8
lea edi, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x27
xor eax, eax
pop ecx
lea edi, [ebp - 0xbe]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x7c]
stosw word es:[edi], ax
mov eax, dword [ecx]
test eax, eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x5c], 0x100d06f0
jne 0x10064c8c
mov dword [ebp + 0x5c], 0x100d06e8
cmp eax, 1
jne 0x10064c98
mov dword [ebp + 0x5c], 0x100d06e0
test eax, eax
jne 0x10064cb3
push dword [ecx + 8]
lea eax, [ebp - 0xc4]
push str._08lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x10064cca
cmp eax, 1
jne 0x10064ccd
push 0
add ecx, 8
push ecx
lea eax, [ebp - 0xc4]
push eax
call fcn.1004363d
add esp, 0xc
and dword [ebp - 0x20], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x6c]
push edi
lea esi, [ebp - 0x20]
call fcn.100435bd
mov dword [esp], 0x200
push edi
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
call fcn.1004342a
cmp dword [ebp + 0x64], 1
pop ecx
sete byte [ebp + 0x58]
xor esi, esi
cmp byte [ebp + 0x58], 0
pop ecx
mov dword [ebp + 0x28], eax
je 0x10064d2a
push esi
push esi
push esi
push esi
push esi
push eax
mov eax, dword [ebp + 0x7c]
push dword [eax + 0x28]
lea eax, [ebp + 0x6c]
push dword [ebp + 0x30]
push eax
call fcn.1004af4c
add esp, 0x24
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x64]
lea eax, [ebp + 0x2c]
push dword [ebp + 0x28]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x60]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x58]
add eax, 0x30
push eax
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
call fcn.1004b232
push edi
push esi
mov byte [ebp + 0x57], al
call fcn.100480aa
mov ecx, dword [ebp + 0x78]
add esp, 0x28
push 0xc8
mov dword [ebp + 0x28], eax
call fcn.10046168
push 0x800
push 1
push esi
push edi
call fcn.1004b0ea
add esp, 0x10
cmp eax, 0xc
mov byte [ebp + 0x7f], 0x3f
jne 0x10064d97
mov byte [ebp + 0x7f], 0x46
jmp 0x10064da0
cmp eax, 0xb
jne 0x10064da0
mov byte [ebp + 0x7f], 0x52
cmp dword [ebp + 0x4c], esi
mov word [ebp - 0x144], si
je 0x10064de5
or dword [ebp + 0x48], 0xffffffff
or dword [ebp + 0x4c], 0xffffffff
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x64]
push eax
push edi
mov dword [ebp + 0x64], esi
call fcn.100566f2
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x64]
push edx
push eax
lea eax, [ebp - 0x144]
push str.__I64d__u__I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c0]
push dword [ebp + 0x14]
push eax
call fcn.100a0e43
push dword [ebp - 0x1c]
lea eax, [ebp - 0x23c]
push dword [ebp - 0x20]
push eax
call fcn.100a0e43
add esp, 0x18
cmp dword [ebp + 0x10], esi
mov ecx, str.__2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c_s
jne 0x10064e1b
mov ecx, str._2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c_s
lea edx, [ebp - 0x144]
push edx
movsx edx, byte [ebp + 0x7f]
push edx
push dword [ebp + 0x5c]
mov edi, dword [ebp + 0x78]
push dword [ebp + 0x28]
mov eax, dword [edi]
lea edx, [ebp - 0xc4]
push edx
push dword [ebp - 0x18]
lea edx, [ebp - 0x23c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edx
lea edx, [ebp - 0x1c0]
push edx
push dword [ebp + 0x68]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
cmp dword [ebp + 0x40], esi
mov dword [ebp + 0x64], eax
je 0x10064e73
push dword [ebp + 0x38]
mov ecx, edi
call fcn.1004618f
cmp dword [ebp + 0x3c], esi
je 0x10064e80
push ebx
mov ecx, edi
call fcn.1004618f
cmp dword [ebp + 0x34], esi
je 0x10064e8f
push dword [ebp + 0x20]
mov ecx, edi
call fcn.1004618f
cmp dword [ebp + 0x44], esi
je 0x10064e9e
push dword [ebp + 0x1c]
mov ecx, edi
call fcn.1004618f
cmp byte [ebp + 0x57], 0
jl 0x10064eb0
push 0x100d05e0
mov ecx, edi
call fcn.1004618f
lea ecx, [ebp + 0x6c]
call fcn.10002d56
mov eax, dword [ebp + 0x78]
push dword [eax]
call fcn.10010e64
pop ecx
lea ecx, [ebp + 0x50]
call fcn.1003f96c
pop edi
mov eax, 0x100e3d7c
test eax, eax
pop esi
pop ebx
je 0x10064ede
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x64]
add ebp, 0x70
leave
ret