Function at 0x1089e49
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
sub eax, edi
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x21c], 0x889573d2
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x8d67
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x4e91
mov byte [ebp - 0x214], 0xbe
mov byte [ebp - 0x213], 0x9f
mov byte [ebp - 0x212], 0xf1
mov byte [ebp - 0x211], reloc.KERNEL32.dll_ReadFile
mov byte [ebp - 0x210], 0x44
mov byte [ebp - 0x20f], 0x7e
mov byte [ebp - 0x20e], 0xe9
mov byte [ebp - 0x20d], 0x4d
je 0x108a320
dec eax
je 0x108a2bc
dec eax
je 0x108a1c5
dec eax
je 0x108a0cb
dec eax
je 0x108a084
dec eax
je 0x108a056
dec eax
jne 0x108a7be
cmp ebx, edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x238], edi
je 0x108a7be
mov eax, dword [ebx]
jmp 0x1089f43
cmp dword [eax + 0x214], edi
je 0x1089f33
inc dword [ebp - 0x230]
mov ecx, dword [eax + 0x210]
mov word [ecx + 0x32], di
mov eax, dword [eax + 0x218]
cmp eax, edi
jne 0x1089f25
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x1089f7f
cmp dword [ebp - 0x230], edi
jle 0x1089f7f
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x248]
push edx
push 0
push 2
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x90]
xor edi, edi
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x1089f8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 0x44]
cmp eax, edi
je 0x1089f99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x230]
shl eax, 2
push 1
push eax
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebx + 0x3c], eax
jne 0x1089fc3
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x108a7c1
mov eax, dword [ebx]
xor edx, edx
jmp 0x1089feb
mov ecx, dword [eax + 0x214]
cmp ecx, edi
je 0x1089fe5
cmp edx, dword [ebp - 0x230]
jg 0x1089fe5
mov esi, dword [ebx + 0x3c]
add ecx, 4
mov dword [esi + edx*4], ecx
inc edx
mov eax, dword [eax + 0x218]
cmp eax, edi
jne 0x1089fc9
cmp byte [ebx + 0x1c], 0
je 0x1089fff
mov dword [ebp - 0x238], 1
lea eax, [ebx + 0x44]
push eax
push dword [ebx + 0x3c]
lea esi, [ebp - 0x21c]
push dword [ebp - 0x230]
push dword [ebp - 0x238]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010cb612
test eax, eax
jge 0x108a046
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebp - 0x230], eax
jne 0x108a113
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x20], eax
jmp 0x108a7be
and dword [ebx + 0x38], 0
mov dword [ebx + 0x20], 1
jmp 0x108a7be
cmp ebx, edi
je 0x108a7be
mov eax, dword [ebx + 0x44]
cmp eax, edi
mov dword [ebx + 0x30], edi
je 0x108a06e
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, dword [ebx + 0x40]
cmp ebx, edi
je 0x108a07b
mov eax, dword [ebx]
push ebx
call dword [eax + 0x38]
push 2
push edi
push edi
jmp 0x108a17c
cmp ebx, edi
je 0x108a7be
mov eax, dword [ebx + 0x30]
cmp eax, edi
jge 0x108a7be
mov ebx, dword [ebx + 0x38]
cmp ebx, edi
push edi
jge 0x108a0b5
push 0x23d
push ebx
push edi
push edi
call fcn.01089474
mov ax, 0xfe40
jmp 0x108a7c1
push 0x23e
push eax
push edi
push edi
call fcn.01089474
mov ax, 0xfe3f
jmp 0x108a7c1
cmp ebx, edi
je 0x108a113
cmp dword [ebx + 0x20], edi
mov eax, dword [ebx + 0x44]
je 0x108a11c
mov ecx, dword [eax]
lea edx, [ebp - 0x24c]
push edx
lea esi, [ebx + 0x38]
push esi
push eax
call dword [ecx + 0x14]
cmp eax, edi
jge 0x108a0f1
mov dword [ebx + 0x30], eax
jmp 0x108a0fd
cmp dword [esi], 0x42309
je 0x108a7be
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebx + 0x30], edi
mov dword [ebx + 0x44], edi
jl 0x108a113
mov eax, dword [esi]
mov dword [ebx + 0x30], eax
mov ax, 1
jmp 0x108a7c1
cmp eax, edi
je 0x108a1b4
lea esi, [ebx + 0x30]
cmp dword [esi], edi
jl 0x108a13f
mov ecx, dword [eax]
lea edx, [ebp - 0x24c]
push edx
push esi
push eax
call dword [ecx + 0x14]
cmp eax, edi
jge 0x108a13f
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0x42309
je 0x108a7be
cmp dword [ebx + 0x14], edi
jne 0x108a18c
cmp eax, edi
jl 0x108a18c
cmp dword [ebx + 0x18], edi
je 0x108a7be
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi], edi
mov dword [ebx + 0x44], edi
jl 0x108a113
push 1
push dword [ebp - 0x238]
push dword [ebp - 0x240]
push dword [ebp - 0x23c]
call fcn.01089e49
jmp 0x108a7be
mov eax, dword [ebx + 0x44]
cmp eax, edi
je 0x108a19c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0x44], edi
push dword [ebp - 0x23c]
call fcn.010897b3
xor eax, eax
cmp dword [ebx + 0x20], edi
sete al
jmp 0x108a7c1
cmp dword [ebx + 0x14], edi
jne 0x108a1c2
cmp dword [ebx + 0x30], edi
jge 0x108a113
push edx
jmp 0x108a1a2
cmp ebx, edi
je 0x108a7be
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x108a1fd
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x238]
push edx
push 1
push 2
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x90]
jmp 0x108a21a
cmp dword [ebx + 0x20], edi
je 0x108a21c
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010cb606
and dword [ebx + 0x20], 0
xor edi, edi
cmp dword [ebx], edi
je 0x108a27e
mov edi, dword [ebx]
lea esi, [edi + 0x210]
mov eax, dword [esi]
mov dword [ebp - 0x234], edi
call fcn.01089422
mov eax, dword [esi]
and word [eax + 0x32], 0
mov eax, dword [esi]
and dword [eax + 0x3c], 0
lea eax, [edi + 0x200]
push 4
pop ecx
mov edi, 0x1012fa0
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x108a263
mov esi, 0x1012fa0
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x218]
push eax
mov dword [ebx], ecx
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebx], 0
pop ecx
jne 0x108a220
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x108a28b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x108a298
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebx + 8]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebx + 0x3c]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x23c]
add esp, 0xc
and dword [eax], 0
jmp 0x108a7be
cmp ebx, edi
je 0x108a7be
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x108a7be
cmp dword [ebx + 0x18], edi
jne 0x108a2fc
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [ebx + 0x1c]
push edi
xor esi, esi
inc esi
push esi
push edx
push edi
push eax
call dword [ecx + 0x18]
cmp eax, edi
jl 0x108a318
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
lea edx, [ebx + 0x44]
push edx
push eax
call dword [ecx + 0x34]
mov dword [ebx + 0x18], esi
jmp 0x108a310
lea edx, [ebx + 0x44]
push edx
mov dword [ebx + 0x14], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x8c]
cmp eax, edi
jge 0x108a7be
mov dword [ebx + 0x30], eax
jmp 0x108a7be
cmp esi, edi
mov dword [ebp - 0x238], edi
je 0x108a7be
mov al, byte [esi + 0x30]
cmp al, 6
jne 0x108a380
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10108a8
mov dword [ebp - 0x248], esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x240]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x240]
push dword [eax + 0x14]
call fcn.010844f3
mov esi, dword [ebp - 0x240]
cmp esi, edi
je 0x108a7be
jmp 0x108a399
cmp ecx, edi
je 0x108a391
test byte [ecx + 0x9f], 4
je 0x108a7be
cmp al, 1
jne 0x108a7be
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], di
je 0x108a7be
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], di
je 0x108a7be
test byte [esi + 0x60], 0x84
jne 0x108a7be
mov eax, dword [esi + 0x34]
cmp word [eax + 2], 0x3a
jne 0x108a7be
call fcn.010893e6
cmp ebx, edi
jne 0x108a49d
push 1
push 0x58
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x1089fba
cmp dword [ebp - 0x248], edi
mov eax, dword [ebp - 0x23c]
mov dword [eax], ebx
je 0x108a402
mov byte [ebx + 0x1c], 1
lea esi, [ebx + 0x40]
push esi
mov dword [ebp - 0x244], esi
call fcn.010cb5fa
cmp eax, edi
mov dword [ebp - 0x230], eax
jl 0x108a4e5
mov eax, dword [esi]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
cmp eax, edi
mov dword [ebp - 0x230], eax
jl 0x108a4e5
mov eax, dword [esi]
cmp eax, edi
je 0x108a495
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x234], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, edi
mov dword [ebp - 0x230], eax
jl 0x108a4e5
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push eax
call dword [ecx + reloc.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x230], edi
jl 0x108a4e5
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebx + 0x2c]
push edx
push eax
call dword [ecx + reloc.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], edi
jl 0x108a4e5
lea esi, [ebx + 0x40]
mov eax, dword [esi]
cmp eax, edi
mov dword [ebp - 0x244], esi
je 0x108a4fc
cmp dword [ebx + 0x10], edi
jne 0x108a4fc
mov ecx, dword [eax]
lea edx, [ebx + 0x48]
push edx
push eax
call dword [ecx + 0x84]
cmp eax, 0x80042301
mov dword [ebp - 0x230], eax
jne 0x108a4d4
mov ax, 0xfe41
jmp 0x108a7c1
cmp dword [ebp - 0x230], edi
jl 0x108a4e5
mov dword [ebx + 0x10], 1
jmp 0x108a4fc
mov eax, dword [ebp - 0x230]
mov dword [ebx + 0x30], eax
mov eax, dword [esi]
cmp eax, edi
je 0x108a4fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [ebp - 0x240]
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x54]
cmp eax, edi
mov dword [ebp - 0x230], eax
jne 0x108a529
call fcn.010893e6
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x248], edi
je 0x108a535
mov byte [ebx + 0x1c], 1
cmp eax, edi
je 0x108a76b
mov ecx, dword [ebp - 0x230]
add ecx, 4
je 0x108a5c0
mov eax, dword [ebp - 0x244]
mov eax, dword [eax]
test eax, eax
je 0x108a5c0
cmp dword [ebx], 0
jne 0x108a5c0
and dword [ebp - 0x234], 0
mov edx, dword [eax]
lea esi, [ebp - 0x234]
push esi
push ecx
sub esp, 0x10
mov edi, esp
mov esi, 0x1012fa0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [edx + 0xa8]
cmp byte [ebx + 0x1c], 1
mov edi, eax
je 0x108a5c0
test edi, edi
jl 0x108a594
cmp dword [ebp - 0x234], 0
jne 0x108a5c0
mov eax, dword [ebp - 0x240]
call fcn.01089422
mov esi, dword [ebp - 0x244]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x23c]
and dword [esi], 0
mov dword [ebx + 0x30], edi
mov dword [eax], ebx
jmp 0x108a7be
mov edi, dword [ebp - 0x230]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x108a757
cmp eax, 2
je 0x108a757
mov esi, dword [ebx]
test esi, esi
je 0x108a61a
mov eax, dword [esi + 0x214]
test eax, eax
je 0x108a606
add eax, 4
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x108a610
mov esi, dword [esi + 0x218]
test esi, esi
jne 0x108a5e8
test esi, esi
je 0x108a61a
mov dword [ebp - 0x238], esi
push 1
push 0x220
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x234], eax
je 0x1089fba
cmp dword [ebp - 0x238], 0
jne 0x108a6f7
mov eax, dword [ebp - 0x244]
mov eax, dword [eax]
test eax, eax
je 0x108a71c
and dword [ebp - 0x23c], 0
mov edx, dword [eax]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebp - 0x230]
add ecx, 4
push ecx
sub esp, 0x10
mov edi, esp
mov esi, 0x1012fa0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [edx + 0xa8]
cmp byte [ebx + 0x1c], 1
je 0x108a696
test eax, eax
jl 0x108a6e4
cmp dword [ebp - 0x23c], 0
je 0x108a6e4
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x244]
mov eax, dword [eax]
mov edx, dword [eax]
add ecx, 0x200
push ecx
mov ecx, dword [ebp - 0x230]
sub esp, 0x10
mov edi, esp
mov esi, 0x1012fa0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ecx, 4
push ecx
push eax
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
test eax, eax
jge 0x108a71c
cmp eax, 0x80042308
jne 0x108a6f2
push dword [ebp - 0x234]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 0x404]
jmp 0x108a75d
mov dword [ebx + 0x30], eax
jmp 0x108a71c
mov eax, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
add esi, 0x200
lea edi, [eax + 0x200]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x234]
mov dword [eax + 0x210], ecx
mov ecx, dword [ebp - 0x230]
mov dword [eax + 0x214], ecx
cmp dword [ebx], 0
jne 0x108a743
mov dword [ebx], eax
jmp 0x108a74c
mov edx, dword [ebx + 4]
mov dword [edx + 0x218], eax
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x404]
jmp 0x108a75d
mov eax, dword [edi + 0x404]
test eax, eax
mov dword [ebp - 0x230], eax
jne 0x108a5c0
xor edi, edi
cmp dword [ebx + 4], edi
je 0x108a7a5
mov esi, dword [ebp - 0x248]
cmp esi, edi
je 0x108a7a5
push 1
push 0x220
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
je 0x1089fba
mov dword [eax + 0x210], esi
mov ecx, dword [ebx + 4]
mov dword [ecx + 0x218], eax
mov dword [ebx + 4], eax
cmp dword [ebx + 0x30], edi
jge 0x108a7be
mov esi, dword [ebp - 0x244]
mov eax, dword [esi]
cmp eax, edi
je 0x108a7bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
xor ax, ax
mov ecx, dword [ebp - 4]
call fcn.01075bbb
pop edi
pop esi
pop ebx
leave
ret 0x10