Function at 0x10013a4a
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 0x10013df4
call fcn.10013f54
mov edi, eax
lea esi, [esp + 0x1c]
mov ecx, esi
push str.Kernel32.dll
call fcn.100349a0
mov ecx, edi
push esi
call fcn.10013fce
mov dword [esp + 4], eax
cmp byte [esi + 0xb], 0
jns 0x10013ab3
push dword [esp + 0x1c]
call fcn.10145bd4
add esp, 4
call fcn.10013f54
mov edi, eax
mov ecx, esi
push str.Psapi.dll
call fcn.100349a0
mov ecx, edi
push esi
call fcn.10013fce
mov esi, eax
cmp byte [esp + 0x27], 0
jns 0x10013ae3
push dword [esp + 0x1c]
call fcn.10145bd4
add esp, 4
cmp dword [esp + 4], 0
je 0x10013df4
test esi, esi
je 0x10013df4
mov dword [esp + 8], esi
call fcn.100135f4
test al, al
je 0x10013b74
push str.QueryFullProcessImageNameW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013b74
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 0x10013b74
mov eax, dword [esp + 0x10]
cmp eax, 0x207
ja 0x10013b62
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 0x10013d3f
push str.GetProcessImageFileNameW
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
jne 0x10013bb6
push str.GetProcessImageFileNameW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
je 0x10013c01
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 0x10013c01
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 0x10013d3f
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 0x10013d1a
xor ebx, ebx
movzx eax, byte [ecx + esi + 0xb]
test al, al
jns 0x10013c6e
mov eax, dword [ecx + esi + 4]
mov dword [esp + 0xc], ecx
lea edi, [ecx + esi]
cmp eax, 3
jb 0x10013c97
mov ecx, edi
push 2
call fcn.100361f0
cmp word [eax], 0x5c
jne 0x10013c97
mov ecx, edi
push 2
call fcn.100361f0
mov word [eax], 0
cmp byte [edi + 0xb], 0
jns 0x10013c9f
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 0x10013cbb
mov word [eax], 0
push eax
call fcn.10163aa4
add esp, 4
test eax, eax
je 0x10013cfb
mov edi, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
test cl, cl
js 0x10013cdb
cmp edi, ecx
jb 0x10013ce5
jmp 0x10013cfb
cmp edi, dword [eax + 4]
jae 0x10013cfb
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 0x10013e0c
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 0x10013c61
mov eax, dword [esp]
test eax, eax
je 0x10013d2a
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 0x10013dc5
push str.GetModuleFileNameExW
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
jne 0x10013d72
push str.GetModuleFileNameExW
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test eax, eax
je 0x10013dc5
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 0x10013dc5
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.1001600e
add esp, 8
cmp byte [ebx + 0xb], 0
jns 0x10013de3
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 0x10013e27
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 0x10013e3a
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 0x10013d1a
push eax
call fcn.10145bd4
add esp, 4
jmp 0x10013d1a