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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d914
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5d2fec]
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x250], ebx
mov dword [ebx], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4029a0
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 1
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4029d0
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
mov dword [ebp - 4], 1
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x402a0f
push 0x104
lea ecx, [ebp - 0x228]
call fcn.00406e60
mov edi, dword [ebp - 0x228]
cmp dword [edi - 8], 0x104
jge 0x402a22
push 0x80070057
call fcn.00407010
push 0x104
push edi
xor eax, eax
mov dword [edi - 0xc], 0x104
push esi
mov word [edi + 0x208], ax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x234], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004179bf
mov ebx, eax
add esp, 4
mov eax, dword [0x5af340]
mov dword [ebp - 0x18], eax
mov ax, word [0x5af344]
mov word [ebp - 0x14], ax
xor eax, eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x12], ax
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x402aa4
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
push 0x5af8ec
mov dword [ebp - 0x22c], 0
call fcn.00406840
push ebx
push dword [ebp - 0x234]
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ax, word [ebx]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00406490
add esp, 0xc
mov byte [ebp - 4], 4
lea ebx, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x402b83
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x402b6e
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x402b6e
push ecx
call fcn.00406c80
mov dword [ebp - 0x234], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x402b5d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
add esi, 0x10
mov dword [ebp - 0x224], esi
jmp 0x402b83
push dword [edx - 0xc]
lea ecx, [ebp - 0x224]
push edx
call fcn.00406bd0
mov esi, dword [ebp - 0x224]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402ba5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x402bc3
cmp dword [edi - 0xc], 0
jl 0x402bc3
push esi
push edi
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x402bc3
sub eax, edi
sar eax, 1
jns 0x402bde
mov ebx, dword [ebp - 0x230]
add ebx, 8
mov dword [ebp - 0x230], ebx
cmp word [ebx], 0
jne 0x402ae1
jmp 0x402be4
mov ebx, dword [ebp - 0x230]
push dword [esi - 0xc]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405be0
push eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.00406490
add esp, 0xc
mov byte [ebp - 4], 6
mov edx, dword [eax]
mov eax, dword [ebp - 0x238]
lea ebx, [edx - 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x234], ecx
cmp ebx, ecx
je 0x402c94
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x23c], eax
jl 0x402c85
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x402c85
push ebx
call fcn.00406c80
mov ecx, dword [ebp - 0x23c]
or ebx, 0xffffffff
mov dword [ebp - 0x230], eax
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402c72
mov edx, dword [ebp - 0x234]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x230]
add eax, 0x10
mov dword [ecx], eax
jmp 0x402c97
push dword [edx - 0xc]
mov ecx, dword [ebp - 0x238]
push edx
call fcn.00406bd0
or ebx, 0xffffffff
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402cb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402cd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x244]
call fcn.004179c8
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402d08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402d23
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402d3c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
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.0054e73a
mov esp, ebp
pop ebp
ret