Function at 0x40adf0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483add
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1b04
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1b00], eax
push ebx
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1b18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x28], edi
cmp edi, ebx
je 0x40b35b
mov eax, dword [ebp + 8]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x40b35b
push 0x800
lea ecx, [esp + 0x108]
push ebx
push ecx
call fcn.00461880
add esp, 0xc
push 0x400
lea edx, [esp + 0x108]
push edx
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x40b2da
push 0x400
lea eax, [esp + 0x108]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x1b]
push edx
lea ecx, [esp + 0x38]
call fcn.0040e2c0
push 0x400
lea eax, [esp + 0xb10]
push ebx
push eax
mov dword [esp + 0x1b2c], ebx
call fcn.00461880
add esp, 0xc
lea ecx, [esp + 0xb0c]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edi, [esp + 0xb0c]
cmp word [esp + 0xb0c], bx
je 0x40b0af
xor edx, edx
mov esi, 7
mov eax, edi
mov word [esp + 0xd0], dx
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40af26
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xd4]
call fcn.0040e5e0
mov byte [esp + 0x1b20], 1
cmp dword [esp + 0xe0], 2
jae 0x40af5a
call fcn.00461bce
mov eax, dword [esp + 0xd0]
mov ecx, 8
cmp dword [esp + 0xe4], ecx
jae 0x40af76
lea eax, [esp + 0xd0]
xor edx, edx
mov word [eax + 4], dx
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], ecx
jae 0x40af93
lea eax, [esp + 0xd0]
push 0x104
lea ecx, [esp + 0x908]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xf0]
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.0040df70
sub esp, 0x1c
mov byte [esp + 0x1b58], 2
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
lea eax, [esp + 0x93c]
mov word [ecx + 4], dx
mov dword [esp + 0x58], esp
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x40aff3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x940]
push eax
call fcn.0040e5e0
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0x1b5c], 1
call fcn.0040f380
add esp, 0x3c
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b24], 3
call fcn.0040f420
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b28], 4
call fcn.0040dd90
lea ecx, [esp + 0x5c]
call fcn.0040b3f0
lea ecx, [esp + 0x94]
call fcn.0040b3f0
mov byte [esp + 0x1b20], 0
cmp dword [esp + 0xe4], 8
jb 0x40b08c
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0044d6f0
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b091
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], bx
lea edi, [edi + eax*2 + 2]
jne 0x40af04
xor edx, edx
lea eax, [esp + 0x104]
mov word [esp + 0xec], dx
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b0d5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xf0]
call fcn.0040e5e0
mov byte [esp + 0x1b20], 5
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 0x48]
test edi, edi
je 0x40b121
cmp edi, dword [esp + 0x30]
je 0x40b126
call fcn.00461bce
cmp esi, ebx
je 0x40b266
test edi, edi
jne 0x40b155
call fcn.00461bce
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40b143
call fcn.00461bce
mov ecx, dword [esi + 0x20]
mov ebx, 8
cmp dword [esi + 0x24], ebx
jb 0x40b159
mov eax, dword [esi + 0x10]
jmp 0x40b15c
mov eax, dword [edi]
jmp 0x40b139
lea eax, [esi + 0x10]
push ecx
push 0
push eax
lea ecx, [esp + 0xf4]
call fcn.0040e070
cmp eax, 0xffffffff
jne 0x40b184
lea ecx, [esp + 0x20]
call fcn.0040ece0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x40b113
test edi, edi
jne 0x40b1df
call fcn.00461bce
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40b199
call fcn.00461bce
mov eax, dword [esi + 0x20]
push eax
push 0
lea ecx, [esp + 0xf0]
call fcn.0040dbe0
push 0x800
lea edx, [esp + 0x108]
push 0
push edx
call fcn.00461880
add esp, 0xc
test edi, edi
jne 0x40b1e3
call fcn.00461bce
cmp esi, dword [edi + 0x18]
jne 0x40b1d5
call fcn.00461bce
cmp dword [esi + 0x40], ebx
jb 0x40b1e7
mov esi, dword [esi + 0x2c]
jmp 0x40b1ea
mov eax, dword [edi]
jmp 0x40b18f
mov edi, dword [edi]
jmp 0x40b1cb
add esi, 0x2c
lea ecx, [esp + 0x104]
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
test ax, ax
jne 0x40b1f1
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebx
jae 0x40b219
lea eax, [esp + 0xec]
mov edx, eax
jmp 0x40b220
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b220
lea edi, [esp + 0x104]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b240
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b240
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], 1
jmp 0x40b26b
mov ebx, 8
cmp dword [esp + 0x100], ebx
jb 0x40b284
mov eax, dword [esp + 0xec]
push eax
call fcn.0044d6f0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], 0
mov word [esp + 0xec], cx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1b20], 6
call fcn.0040e5a0
mov edx, dword [esp + 0x30]
push edx
call fcn.0044d6f0
mov esi, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x40b34e
mov edi, dword [esp + 0x28]
xor ebx, ebx
push 0x800
lea eax, [esp + 0x1310]
push ebx
push eax
call fcn.00461880
add esp, 0xc
lea ecx, [esp + 0x104]
push 0x7e
push ecx
call fcn.00462cc7
add esp, 8
test eax, eax
je 0x40b338
push 0x400
lea edx, [esp + 0x1310]
push edx
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x40b338
push 0x400
lea ecx, [esp + 0x1310]
push ecx
jmp 0x40b345
push 0x400
lea edx, [esp + 0x108]
push edx
push edi
call fcn.004625ca
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x40b35d
xor eax, eax
mov ecx, dword [esp + 0x1b18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b00]
xor ecx, esp
call fcn.00461862
mov esp, ebp
pop ebp
ret 4