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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101876a6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x101d90a8]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
call fcn.10003400
mov ecx, eax
test ecx, ecx
je 0x10036745
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, 0x10192a28
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
test eax, 0xffff0000
jne 0x100364c1
movzx eax, ax
push eax
call fcn.10003a30
jmp 0x100364cd
push 0
push 0x10192a28
call fcn.10006830
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x230]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100366f4
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1015bd90
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100366f4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x10036581
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005980
mov edi, dword [ebp - 0x22c]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003657a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x10036729
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101377fe
push esi
mov esi, eax
mov dword [ebp - 0x228], eax
push 0
push esi
call fcn.1015bd90
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x100365fe
push esi
call fcn.101376ed
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005980
mov edi, dword [ebp - 0x22c]
add eax, 0x10
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003657a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x10036729
mov eax, dword [0x10195744]
mov dword [ebp - 0x18], eax
mov ax, word [0x10195748]
push 0x208
mov word [ebp - 0x14], ax
call fcn.101377fe
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x228]
movzx eax, word [eax]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push ebx
push eax
call edi
test eax, eax
jne 0x10036670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100366da
push ebx
call fcn.101376ed
push 2
call fcn.101377fe
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x100366da
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10036675
sub edi, ecx
lea eax, [ebp - 0x220]
sar edi, 1
push edi
push ebx
push eax
call fcn.1016cd26
add esp, 0xc
test eax, eax
je 0x100366b8
nop dword [eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x100366a0
movzx eax, word [esi]
test ax, ax
je 0x100366da
jmp 0x10036628
lea eax, [ebp - 0x220]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push 0x1019574c
push eax
call fcn.10003fb0
add esp, 0x10
push dword [ebp - 0x228]
call fcn.101376ed
push ebx
call fcn.101376ed
mov ebx, dword [ebp - 0x22c]
add esp, 8
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005980
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10036727
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.1013724c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003040
int3