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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f408
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x42bba8]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
mov edx, dword [0x42bb74]
mov dword [ebp - 0x438], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42bb74
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 4], ebx
mov word [ebp - 0x218], cx
call fcn.0040fbc0
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.0040fbc0
mov ebx, dword [ebp + 0x10]
add esp, 0x18
cmp ebx, 2
jge 0x4047de
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4047de
mov ebx, 1
cmp dword [ebp + 0x10], ebx
jne 0x404773
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.004041e0
jmp 0x404a94
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00404400
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 4], bl
call fcn.00403ed0
add esp, 8
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00403d80
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x428]
jmp 0x404a66
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x404a88
cmp ebx, 2
jne 0x40486e
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404806
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x424]
call fcn.00403600
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
push esi
call fcn.00403220
mov edi, dword [ebp - 0x438]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404acd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x404acd
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x434]
call fcn.00404400
lea edx, [ebp - 0x420]
push edx
push 0x104
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x404a54
xor eax, eax
lea ebx, [ebp - 0x420]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x440], eax
push ebx
lea ecx, [ebp - 0x43c]
call fcn.00404400
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 4
call fcn.00404010
add esp, 0x10
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40490c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x428]
cmp esi, 0xffffffff
je 0x4049c0
push 0x5c
push 0x5c
lea ecx, [ebp - 0x42c]
call fcn.00403f80
mov ecx, eax
call fcn.004038b0
mov edx, dword [ebp - 0x42c]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4049a9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.00404400
mov ecx, dword [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 7
call fcn.00403a60
test eax, eax
jne 0x4049f1
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4049b5
test edi, edi
je 0x4049b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
lea ebx, [ebx + esi*2]
xor esi, esi
mov dword [ebp - 0x428], esi
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x4048b2
jmp 0x404a60
cmp dword [ebp + 0x10], 1
jne 0x404a0b
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x424]
call fcn.00403d80
jmp 0x404a3c
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.00403ed0
add esp, 8
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 8
call fcn.00403d80
lea ecx, [ebp - 0x440]
call fcn.004034a0
lea ecx, [ebp - 0x430]
call fcn.004034a0
lea ecx, [ebp - 0x42c]
call fcn.004034a0
jmp 0x404a60
test edi, edi
je 0x404a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404a94
test edi, edi
je 0x404a94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
push esi
call fcn.00403220
mov edi, dword [ebp - 0x438]
add eax, 0x10
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edx
mov dword [edi], eax
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404acd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
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.0040fba6
mov esp, ebp
pop ebp
ret