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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x2c], 0x20130
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov esi, edx
mov dword [ebp - 0x5c], edi
inc ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], eax
test edi, edi
je 0x42b2fa
cmp dword [edi], 0xfeedf002
jne 0x42b2fa
test esi, esi
je 0x42b2f3
cmp word [esi], ax
je 0x42b2f3
call fcn.004302a1
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x42ae5f
push 6
jmp 0x42b2fc
mov ecx, esi
call fcn.0042181d
test eax, eax
je 0x42b302
mov eax, dword [ebp - 0x2c]
mov ecx, 0x6000
and eax, ecx
cmp eax, ecx
je 0x42b2fa
push 0
xor edx, edx
mov ecx, esi
call fcn.0042f3fd
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x42b302
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 0x10], ecx
jbe 0x42aee9
mov esi, dword [ebp - 0x48]
add esi, 4
mov eax, dword [ebp - 0x2c]
test dword [esi - 4], eax
je 0x42aeda
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x42aeda
push dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x4c]
mov ecx, eax
push edi
call dword [0x47744c]
call dword [ebp - 0x34]
test eax, eax
je 0x42b0b1
mov ecx, dword [ebp - 0x38]
inc ecx
add esi, 0x18
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x42aea8
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
and eax, 0x1000008
cmp eax, 8
je 0x42aeff
mov edx, esi
mov ecx, edi
call fcn.0043da75
test byte [ebp - 0x2c], 8
jne 0x42b093
and dword [ebp - 0x40], 0
lea edx, [ebp - 0x40]
or ecx, 0xffffffff
mov dword [ebp - 0x38], ecx
mov ecx, esi
call fcn.0042f7d1
mov esi, eax
test esi, esi
jns 0x42af35
push esi
push 0x269
mov ecx, 0x406070
call fcn.0043f87d
jmp 0x42af51
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42af48
cmp eax, 4
jne 0x42af51
mov dword [ebp - 0x30], 0xa1
xor ebx, ebx
mov eax, dword [0x475368]
cmp eax, 0xffffffff
jne 0x42afb6
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push 0x40609c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x42af9f
cmp eax, 0x10
ja 0x42af9f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push 0x405d54
push eax
call dword [sym.imp.msvcrt.dll_swscanf_s]
mov ecx, dword [ebp - 0x34]
add esp, 0xc
test eax, eax
jg 0x42afa5
mov ecx, dword [0x475368]
mov edi, dword [ebp - 0x5c]
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [0x475368], eax
cmp eax, 1
jne 0x42b026
test esi, esi
js 0x42b02a
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push 7
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x42b000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
jns 0x42b004
push esi
push 0x2ab
mov ecx, 0x406070
call fcn.0043f87d
test esi, esi
js 0x42b02a
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
call fcn.0043e434
mov esi, eax
test esi, esi
jns 0x42b064
push esi
push 0x2b3
mov ecx, 0x406070
call fcn.0043f87d
test esi, esi
jns 0x42b064
test esi, 0x10000000
je 0x42b049
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x42b05f
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x42b05a
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x42b05f
movzx eax, si
mov dword [ebp - 0x30], eax
jmp 0x42b062
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x42b073
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 0
je 0x42b08b
push dword [ebp - 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x42b26a
test byte [ebp - 0x2c], 4
je 0x42b0b8
mov ecx, edi
call fcn.0042fd0f
mov ecx, eax
call fcn.004321ae
test eax, eax
jne 0x42b0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x42b26a
test byte [ebp - 0x2c], 8
jne 0x42b0ee
mov esi, dword [ebp - 0x3c]
mov ecx, edi
mov edx, esi
call fcn.0042abf8
mov ebx, eax
test ebx, ebx
jne 0x42b0ee
push 0x2e3
push 0x406070
push eax
push 0x4060c8
push esi
push edi
push 1
call fcn.00434d80
jmp 0x42b26a
push 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0042fd2c
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.0042aaf5
xor edx, edx
mov dword [ebp - 0x34], edx
cmp dword [ebp + 0x10], edx
jbe 0x42b157
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
add esi, 4
mov eax, dword [ebp + 0x10]
test dword [esi - 4], ecx
je 0x42b14c
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x42b149
push dword [esi]
push ecx
push dword [ebp - 0x4c]
mov ecx, eax
push edi
call dword [0x47744c]
call dword [ebp - 0x38]
test eax, eax
je 0x42b215
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x10]
inc edx
add esi, 0x18
mov dword [ebp - 0x34], edx
cmp edx, eax
jb 0x42b11a
ret
mov ecx, edi
call fcn.004381fd
call fcn.00434a51
test eax, eax
je 0x42b16d
mov dword [edi + 0x9c], eax
mov esi, dword [ebp - 0x54]
cmp dword [esi], 0
je 0x42b18d
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x42b18d
and dword [esi], 0
mov ecx, dword [ebp - 0x50]
test ecx, ecx
jne 0x42b197
mov ecx, dword [ebp - 0x3c]
call fcn.0042f73d
mov edx, esi
mov dword [esi], eax
mov ecx, edi
call fcn.0042b315
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jns 0x42b1c4
push esi
push 0x309
mov ecx, 0x406070
call fcn.0043f87d
xor ebx, ebx
jmp 0x42b21a
xor ecx, ecx
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x10], ecx
jbe 0x42b21a
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
add esi, 4
mov eax, dword [ebp + 0x10]
test dword [esi - 4], edx
je 0x42b208
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x42b205
push dword [esi]
mov ecx, eax
push edx
push dword [ebp - 0x4c]
push edi
call dword [0x47744c]
call dword [ebp - 0x54]
test eax, eax
je 0x42b215
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x10]
inc ecx
add esi, 0x18
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jb 0x42b1da
jmp 0x42b217
xor ebx, ebx
mov esi, dword [ebp - 0x44]
push 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0042fd61
test esi, esi
jns 0x42b266
test esi, 0x10000000
je 0x42b249
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x42b25f
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x42b25a
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x42b25f
movzx eax, si
mov dword [ebp - 0x30], eax
jmp 0x42b262
mov dword [ebp - 0x30], esi
xor ebx, ebx
jmp 0x42b273
test ebx, ebx
jne 0x42b273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x10], 0
jbe 0x42b2b2
mov edi, dword [ebp - 0x48]
add edi, 4
mov eax, dword [ebp - 0x2c]
test dword [edi - 4], eax
je 0x42b2a9
cmp dword [edi + 0x10], 0
je 0x42b2a9
mov eax, dword [edi]
mov dword [eax], ebx
push dword [edi]
mov esi, dword [edi + 0x10]
mov ecx, esi
push dword [ebp - 0x2c]
push dword [ebp - 0x4c]
push dword [ebp - 0x5c]
call dword [0x47744c]
call esi
add edi, 0x18
sub dword [ebp + 0x10], 1
jne 0x42b27f
test ebx, ebx
jne 0x42b2bf
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42b2d6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x3c]
or dword [0x475368], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x42b304
push 0xa1
jmp 0x42b2fc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 0xc