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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424df5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov eax, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x38], eax
mov eax, dword [0x42cffc]
mov edi, dword [edx]
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x42d000]
mov ebx, dword [edi - 8]
mov dword [ebp - 0x18], eax
movzx eax, word [0x42d004]
mov word [ebp - 0x14], ax
mov eax, dword [0x42d008]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42d00c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42d010]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42d014]
mov dword [ebp - 0x24], eax
movzx eax, word [0x42d018]
mov word [ebp - 0x20], ax
call fcn.00409d60
test al, al
je 0x4098e6
lea esi, [ebp - 0x30]
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409840
sub esi, ecx
sar esi, 1
cmp ebx, esi
jb 0x4098b9
push esi
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.00409ea0
add esp, 4
test al, al
jne 0x4098b9
lea ecx, [edi + ebx*2]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405f10
mov esi, dword [ebp - 0x48]
mov edx, 0x42cecc
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00406020
mov eax, dword [ebp - 0x44]
add esp, 4
test eax, eax
je 0x409d30
add eax, 0xfffffff4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x409d30
push eax
call fcn.00410cbd
add esp, 4
jmp 0x409d30
lea ecx, [ebp - 0x1c]
lea edx, [edi + ebx*2]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4098c2
sub ecx, esi
sar ecx, 1
push edx
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0x48]
push eax
call fcn.00405f10
mov eax, dword [ebp - 0x48]
jmp 0x409d32
cmp ebx, 0xc
jb 0x4099b7
push 0xc
mov edx, 0x42d01c
mov ecx, edi
call fcn.00407010
add esp, 4
test al, al
jne 0x4099b7
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push 0x42d02c
call edi
mov esi, eax
test esi, esi
je 0x4099b7
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004049f0
push esi
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x2c]
push ebx
push 0x42d02c
call edi
mov edi, eax
test edi, edi
je 0x4099a8
cmp edi, esi
jae 0x4099a8
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
lea ecx, [eax + ecx*2]
add eax, 0x18
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00405f10
mov esi, eax
lea ecx, [ebx + edi*2]
mov byte [ebp - 4], 2
push ecx
push ebx
lea ecx, [ebp - 0x34]
call fcn.00405f10
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x34]
push esi
mov byte [ebp - 4], 3
call fcn.00408ee0
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00405180
lea ecx, [ebp - 0x44]
call fcn.00405180
lea ecx, [ebp - 0x2c]
call fcn.00404990
mov eax, dword [ebp - 0x48]
jmp 0x409d32
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404990
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx]
cmp dword [ecx - 8], 8
jb 0x409d22
push 8
mov edx, 0x42d044
call fcn.00407010
add esp, 4
test al, al
jne 0x409d22
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call esi
push ecx
mov edi, eax
lea ecx, [ebp - 0x2c]
push edi
call fcn.004049f0
mov dword [ebp - 4], 4
mov ebx, dword [ebp - 0x2c]
push ebx
push edi
call esi
test eax, eax
je 0x409c3b
cmp eax, edi
jae 0x409c3b
cmp word [ebx], 0
mov edx, ebx
mov dword [ebp - 0x44], ebx
je 0x409c3b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a27
sub ecx, esi
sar ecx, 1
lea eax, [edx + ecx*2]
push eax
push edx
lea ecx, [ebp - 0x3c]
call fcn.00405f10
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x3c]
mov ecx, dword [esi - 8]
cmp ecx, 1
jb 0x409a76
mov ax, word [esi + ecx*2 - 2]
mov edx, 0x42cd1c
cmp ax, word [edx]
sete al
test al, al
je 0x409a76
push ecx
lea eax, [ecx - 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004051b0
mov esi, dword [ebp - 0x3c]
push 0x4e43
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00410a3c
add esp, 4
test eax, eax
je 0x409d4e
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
push 0x4e20
push 0
push ebx
lea edi, [ebx + 0x4e20]
mov dword [ebx - 4], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.00413cb0
add esp, 0xc
mov dword [ebp - 0x18], edi
push 0x2710
push ebx
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
dec eax
cmp eax, 0x270e
ja 0x409baa
cmp word [ebx], 0
je 0x409baa
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409af4
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00405f10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x50], ecx
mov edx, dword [ecx - 8]
mov dword [ebp - 0x4c], edx
cmp edx, 1
jb 0x409b3c
mov ax, word [ecx + edx*2 - 2]
mov esi, 0x42cd1c
cmp ax, word [esi]
mov esi, dword [ebp - 0x3c]
sete al
test al, al
jne 0x409b5e
lea edi, [edx + 1]
push edi
lea ecx, [ebp - 0x34]
call fcn.00406eb0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ecx + eax*2], 0x5c
mov dword [ecx - 8], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 8
mov edx, dword [ecx - 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [eax]
cmp dword [eax - 8], edx
jb 0x409b94
push edx
mov edx, ecx
mov ecx, eax
call fcn.00409ea0
add esp, 4
test al, al
je 0x409c72
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x409baa
push ecx
call fcn.00410cbd
add esp, 4
sub edi, ebx
mov byte [ebp - 4], 5
sar edi, 1
add edi, edi
cmp edi, 0x1000
jb 0x409bd2
mov ecx, dword [ebx - 4]
add edi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x409d4e
mov ebx, ecx
push edi
push ebx
call fcn.00410cc2
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x409c0f
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x409c0f
push esi
call fcn.00410cbd
add esp, 4
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c17
sub ecx, esi
sar ecx, 1
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x44], edx
cmp word [edx], ax
jne 0x409a22
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x409d22
mov ecx, dword [ebp - 0x24]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x409d18
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d4e
jmp 0x409d18
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [eax - 8]
lea ecx, [eax + ecx*2]
push ecx
lea eax, [eax + edx*2]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00405f10
mov esi, dword [ebp - 0x48]
lea edx, [ebp - 0x3c]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00408ee0
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.00405180
lea ecx, [ebp - 0x38]
call fcn.00405180
sub edi, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x409cd5
mov ecx, dword [ebx - 4]
add edi, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x409d53
mov ebx, ecx
push edi
push ebx
call fcn.00410cc2
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.00405180
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub ecx, edx
and ecx, 0xfffffffe
mov eax, edx
cmp ecx, 0x1000
jb 0x409d0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d53
push ecx
push edx
call fcn.00410cc2
add esp, 8
jmp 0x409d30
push ecx
push ebx
call fcn.00410cc2
add esp, 8
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
lock inc dword [eax - 0xc]
mov esi, dword [ebp - 0x48]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a2e
mov esp, ebp
pop ebp
ret
call fcn.004159de
call fcn.004159de
int3