Function at 0x10013a42
Capabilities:
Get disk information
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x438
mov ebx, dword [ebp + 8]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x430], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
cmp dword [ebp + 0xc], 0
je 0x10013dec
call fcn.10013f4c
mov edi, eax
lea esi, [esp + 0x1c]
mov ecx, esi
push str.Kernel32.dll
call fcn.100349a0
mov ecx, edi
push esi
call fcn.10013fbe
mov dword [esp + 4], eax
cmp byte [esi + 0xb], 0
jns 0x10013aab
push dword [esp + 0x1c]
call fcn.10145bd4
add esp, 4
call fcn.10013f4c
mov edi, eax
mov ecx, esi
push str.Psapi.dll
call fcn.100349a0
mov ecx, edi
push esi
call fcn.10013fbe
mov esi, eax
cmp byte [esp + 0x27], 0
jns 0x10013adb
push dword [esp + 0x1c]
call fcn.10145bd4
add esp, 4
cmp dword [esp + 4], 0
je 0x10013dec
test esi, esi
je 0x10013dec
mov dword [esp + 8], esi
call fcn.100135ea
test al, al
je 0x10013b6c
push str.QueryFullProcessImageNameW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013b6c
mov edi, eax
xor eax, eax
push 0x412
push eax
lea esi, [esp + 0x24]
push esi
call fcn.10149430
add esp, 0xc
lea ebx, [esp + 0x10]
mov dword [ebx], 0x208
mov ecx, edi
call dword [section..00cfg]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x10013b6c
mov eax, dword [esp + 0x10]
cmp eax, 0x207
ja 0x10013b5a
mov word [esp + eax*2 + 0x1c], 0
push esi
call fcn.10163aa4
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.10056e90
mov al, byte [ebx + 0xb]
test al, al
mov ecx, dword [ebx + 4]
movzx edx, al
mov esi, edx
cmovs esi, ecx
test esi, esi
jne 0x10013d37
push str.GetProcessImageFileNameW
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
jne 0x10013bae
push str.GetProcessImageFileNameW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
je 0x10013bf9
push 0x412
push 0
lea esi, [esp + 0x24]
push esi
call fcn.10149430
add esp, 0xc
mov ecx, edi
call dword [section..00cfg]
push 0x208
push esi
push dword [ebp + 0xc]
call edi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x10013bf9
mov word [esp + eax*2 + 0x1c], 0
push esi
call fcn.10163aa4
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.10056e90
mov al, byte [ebx + 0xb]
test al, al
mov ecx, dword [ebx + 4]
movzx edx, al
mov esi, edx
cmovs esi, ecx
test esi, esi
je 0x10013d37
mov edi, 0x410
push edi
call fcn.10145c03
add esp, 4
xor esi, esi
push edi
push esi
mov dword [esp + 8], eax
push eax
call fcn.10149430
add esp, 0xc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x1c]
push eax
call fcn.100171f4
add esp, 4
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x20], ecx
je 0x10013d12
xor ebx, ebx
movzx eax, byte [ecx + esi + 0xb]
test al, al
jns 0x10013c66
mov eax, dword [ecx + esi + 4]
mov dword [esp + 0xc], ecx
lea edi, [ecx + esi]
cmp eax, 3
jb 0x10013c8f
mov ecx, edi
push 2
call fcn.100361f0
cmp word [eax], 0x5c
jne 0x10013c8f
mov ecx, edi
push 2
call fcn.100361f0
mov word [eax], 0
cmp byte [edi + 0xb], 0
jns 0x10013c97
mov edi, dword [edi]
mov eax, dword [esp]
push 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
mov eax, dword [esp]
jne 0x10013cb3
mov word [eax], 0
push eax
call fcn.10163aa4
add esp, 4
test eax, eax
je 0x10013cf3
mov edi, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
test cl, cl
js 0x10013cd3
cmp edi, ecx
jb 0x10013cdd
jmp 0x10013cf3
cmp edi, dword [eax + 4]
jae 0x10013cf3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push dword [esp + 4]
push eax
call fcn.1015ec6c
add esp, 0xc
test eax, eax
je 0x10013e04
inc ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xaaaaaaab
add esi, 0xc
cmp ebx, eax
jb 0x10013c59
mov eax, dword [esp]
test eax, eax
je 0x10013d22
push eax
call fcn.10145c0c
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.10034a50
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 0xb]
mov ecx, dword [ebx + 4]
movzx edx, al
test al, al
cmovs edx, ecx
test edx, edx
jne 0x10013dbd
push str.GetModuleFileNameExW
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
jne 0x10013d6a
push str.GetModuleFileNameExW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
je 0x10013dbd
xor eax, eax
push 0x412
push eax
lea esi, [esp + 0x24]
push esi
call fcn.10149430
add esp, 0xc
mov ecx, edi
call dword [section..00cfg]
push 0x208
push esi
xor eax, eax
push eax
push dword [ebp + 0xc]
call edi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x10013dbd
mov word [esp + eax*2 + 0x1c], 0
lea esi, [esp + 0x1c]
push esi
call fcn.10163aa4
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.10056e90
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.10015ffe
add esp, 8
cmp byte [ebx + 0xb], 0
jns 0x10013ddb
push dword [ebx]
call fcn.10145bd4
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x1c]
movsd qword [ebx], xmm0
mov ecx, dword [esp + 0x430]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x10013e1f
mov eax, dword [ebx]
lea eax, [eax + edi*2]
mov edx, dword [esp + 0xc]
lea ecx, [edx + esi]
cmp byte [edx + esi + 0xb], 0
jns 0x10013e32
mov ecx, dword [ecx]
lea esi, [esp + 0x10]
push eax
push ecx
push str._s_s
push esi
call fcn.100131c6
add esp, 0x10
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [ebx]
movsd xmm0, qword [esi]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
movsd qword [ebx], xmm0
test edx, edx
jns 0x10013d12
push eax
call fcn.10145bd4
add esp, 4
jmp 0x10013d12