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

Disassembly:
push 0xffffffffffffffff
push 0x482e82
mov eax, dword fs:[0]
push eax
mov eax, 0x1afc
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1af8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x1b10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1b24]
xor ebx, ebx
mov dword [esp + 0x28], edi
cmp edi, ebx
je 0x439eef
mov ebp, dword [esp + 0x1b28]
cmp ebp, 0x64
jl 0x439eef
mov eax, dword [esp + 0x1b20]
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 0x439eef
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 0x439e79
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 + 0x1b24], 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 0x439c5e
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]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439ad0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0xd4]
call fcn.0040d650
cmp dword [esp + 0xe0], 2
mov byte [esp + 0x1b18], 1
jae 0x439b04
call fcn.00461ea8
mov eax, dword [esp + 0xd0]
mov ebp, 8
cmp dword [esp + 0xe4], ebp
jae 0x439b20
lea eax, [esp + 0xd0]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], ebp
jae 0x439b3d
lea eax, [esp + 0xd0]
push 0x104
lea edx, [esp + 0x908]
push edx
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 edx, [esp + 0xf0]
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], ax
call fcn.0040cfe0
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
lea eax, [esp + 0x93c]
mov byte [esp + 0x1b50], 2
mov dword [esp + 0x58], esp
lea edx, [eax + 2]
lea ecx, [ecx]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x439ba0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x940]
push edx
call fcn.0040d650
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x1b54], 1
call fcn.0040e570
add esp, 0x3c
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b1c], 3
call fcn.0040e410
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b20], 4
call fcn.0040cd70
lea ecx, [esp + 0x5c]
call fcn.0040a290
lea ecx, [esp + 0x94]
call fcn.0040a290
mov byte [esp + 0x1b18], bl
cmp dword [esp + 0xe4], ebp
jb 0x439c37
mov eax, dword [esp + 0xd0]
push eax
call fcn.00458da0
add esp, 4
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439c40
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], bx
lea edi, [edi + eax*2 + 2]
jne 0x439aa7
xor ecx, ecx
lea eax, [esp + 0x104]
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439c84
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x108]
push edx
lea ecx, [esp + 0xf0]
call fcn.0040d650
mov eax, dword [esp + 0x48]
mov esi, dword [eax]
mov edi, dword [esp + 0x30]
mov byte [esp + 0x1b18], 5
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0x48]
cmp edi, ebx
je 0x439cd0
cmp edi, dword [esp + 0x30]
je 0x439cd5
call fcn.00461ea8
cmp esi, ebp
je 0x439e16
cmp edi, ebx
jne 0x439d04
call fcn.00461ea8
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x439cf2
call fcn.00461ea8
mov ecx, dword [esi + 0x20]
mov ebp, 8
cmp dword [esi + 0x24], ebp
jb 0x439d08
mov eax, dword [esi + 0x10]
jmp 0x439d0b
mov eax, dword [edi]
jmp 0x439ce8
lea eax, [esi + 0x10]
push ecx
push ebx
push eax
lea ecx, [esp + 0xf4]
call fcn.0040d0e0
cmp eax, 0xffffffff
jne 0x439d32
lea ecx, [esp + 0x20]
call fcn.0040dd50
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x439cc2
cmp edi, ebx
jne 0x439d8d
call fcn.00461ea8
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x439d47
call fcn.00461ea8
mov eax, dword [esi + 0x20]
push eax
push ebx
lea ecx, [esp + 0xf0]
call fcn.0040cbc0
push 0x800
lea ecx, [esp + 0x108]
push ebx
push ecx
call fcn.00461950
add esp, 0xc
cmp edi, ebx
jne 0x439d91
call fcn.00461ea8
xor edi, edi
cmp esi, dword [edi + 0x18]
jne 0x439d83
call fcn.00461ea8
cmp dword [esi + 0x40], ebp
jb 0x439d95
mov esi, dword [esi + 0x2c]
jmp 0x439d98
mov eax, dword [edi]
jmp 0x439d3d
mov edi, dword [edi]
jmp 0x439d79
add esi, 0x2c
lea ecx, [esp + 0x104]
nop
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x439da0
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], ebp
jae 0x439dc8
lea eax, [esp + 0xec]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439dd0
lea edi, [esp + 0x104]
sub eax, edx
add edi, 0xfffffffe
jmp 0x439df0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x439df0
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 0x439e1b
mov ebp, 8
cmp dword [esp + 0x100], ebp
jb 0x439e34
mov edx, dword [esp + 0xec]
push edx
call fcn.00458da0
add esp, 4
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], ax
mov dword [esp + 0x1b18], 0xffffffff
call fcn.0040cd10
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x18], ebx
je 0x439ee2
mov ebp, dword [esp + 0x1b28]
mov edi, dword [esp + 0x28]
push 0x800
lea ecx, [esp + 0x1310]
push ebx
push ecx
call fcn.00461950
lea edx, [esp + 0x110]
push 0x7e
push edx
call fcn.004640cf
add esp, 0x14
test eax, eax
je 0x439ed0
push 0x400
lea eax, [esp + 0x1310]
push eax
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x439ed0
push ebp
lea edx, [esp + 0x1310]
push edx
jmp 0x439ed9
push ebp
lea eax, [esp + 0x108]
push eax
push edi
call fcn.00462b97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x439ef1
xor eax, eax
mov ecx, dword [esp + 0x1b10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1af8]
xor ecx, esp
call fcn.00461932
add esp, 0x1b08
ret