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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48652d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1b04
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1b00], eax
push ebx
push esi
push edi
mov eax, dword [0x4a60f8]
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 0x40a1fb
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 0x40a1fb
push 0x800
lea ecx, [esp + 0x108]
push ebx
push ecx
call fcn.00461950
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 0x40a17a
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.0040d330
push 0x400
lea eax, [esp + 0xb10]
push ebx
push eax
mov dword [esp + 0x1b2c], ebx
call fcn.00461950
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 0x409f4f
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 0x409dc6
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xd4]
call fcn.0040d650
mov byte [esp + 0x1b20], 1
cmp dword [esp + 0xe0], 2
jae 0x409dfa
call fcn.00461ea8
mov eax, dword [esp + 0xd0]
mov ecx, 8
cmp dword [esp + 0xe4], ecx
jae 0x409e16
lea eax, [esp + 0xd0]
xor edx, edx
mov word [eax + 4], dx
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], ecx
jae 0x409e33
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.0040cfe0
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 0x409e93
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x940]
push eax
call fcn.0040d650
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0x1b5c], 1
call fcn.0040e570
add esp, 0x3c
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b24], 3
call fcn.0040e410
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b28], 4
call fcn.0040cd70
lea ecx, [esp + 0x5c]
call fcn.0040a290
lea ecx, [esp + 0x94]
call fcn.0040a290
mov byte [esp + 0x1b20], 0
cmp dword [esp + 0xe4], 8
jb 0x409f2c
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00458da0
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409f31
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], bx
lea edi, [edi + eax*2 + 2]
jne 0x409da4
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 0x409f75
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xf0]
call fcn.0040d650
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 0x409fc1
cmp edi, dword [esp + 0x30]
je 0x409fc6
call fcn.00461ea8
cmp esi, ebx
je 0x40a106
test edi, edi
jne 0x409ff5
call fcn.00461ea8
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x409fe3
call fcn.00461ea8
mov ecx, dword [esi + 0x20]
mov ebx, 8
cmp dword [esi + 0x24], ebx
jb 0x409ff9
mov eax, dword [esi + 0x10]
jmp 0x409ffc
mov eax, dword [edi]
jmp 0x409fd9
lea eax, [esi + 0x10]
push ecx
push 0
push eax
lea ecx, [esp + 0xf4]
call fcn.0040d0e0
cmp eax, 0xffffffff
jne 0x40a024
lea ecx, [esp + 0x20]
call fcn.0040dd50
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x409fb3
test edi, edi
jne 0x40a07f
call fcn.00461ea8
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40a039
call fcn.00461ea8
mov eax, dword [esi + 0x20]
push eax
push 0
lea ecx, [esp + 0xf0]
call fcn.0040cbc0
push 0x800
lea edx, [esp + 0x108]
push 0
push edx
call fcn.00461950
add esp, 0xc
test edi, edi
jne 0x40a083
call fcn.00461ea8
cmp esi, dword [edi + 0x18]
jne 0x40a075
call fcn.00461ea8
cmp dword [esi + 0x40], ebx
jb 0x40a087
mov esi, dword [esi + 0x2c]
jmp 0x40a08a
mov eax, dword [edi]
jmp 0x40a02f
mov edi, dword [edi]
jmp 0x40a06b
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 0x40a091
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebx
jae 0x40a0b9
lea eax, [esp + 0xec]
mov edx, eax
jmp 0x40a0c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a0c0
lea edi, [esp + 0x104]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40a0e0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40a0e0
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 0x40a10b
mov ebx, 8
cmp dword [esp + 0x100], ebx
jb 0x40a124
mov eax, dword [esp + 0xec]
push eax
call fcn.00458da0
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.0040d610
mov edx, dword [esp + 0x30]
push edx
call fcn.00458da0
mov esi, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x18], 0
je 0x40a1ee
mov edi, dword [esp + 0x28]
xor ebx, ebx
push 0x800
lea eax, [esp + 0x1310]
push ebx
push eax
call fcn.00461950
add esp, 0xc
lea ecx, [esp + 0x104]
push 0x7e
push ecx
call fcn.004640cf
add esp, 8
test eax, eax
je 0x40a1d8
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 0x40a1d8
push 0x400
lea ecx, [esp + 0x1310]
push ecx
jmp 0x40a1e5
push 0x400
lea edx, [esp + 0x108]
push edx
push edi
call fcn.00462b97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x40a1fd
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.00461932
mov esp, ebp
pop ebp
ret 4