Function at 0x1005a040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100708c6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x90], 0
push eax
push 0
push 0
push 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x18], 0x49a973b7
sete al
cmp dword [0xc6e058], 0
mov byte [0x100affa0], al
je 0x1005a0ba
test al, al
je 0x1005a3cd
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x90], 0
push dword [ebp - 0x90]
call fcn.1005c110
add esp, 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10059900
test al, al
je 0x1005a102
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x94]
call fcn.10059b00
cmp dword [eax], 3
jne 0x1005a3ee
jmp 0x1005a112
lea ecx, [ebp - 0x30]
call fcn.10059b60
test al, al
je 0x1005a40f
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x10c]
push dword [ebp - 0x90]
call fcn.1005c140
add esp, 4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x124]
call fcn.10058f60
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.10058d00
push eax
lea ecx, [ebp - 0xc4]
call fcn.10058f60
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x110]
cmp edx, 8
jb 0x1005a1a4
mov ecx, dword [ebp - 0x124]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a19a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a19a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e2ca
add esp, 8
mov dword [ebp - 0xac], 0
xor eax, eax
mov byte [ebp - 4], 5
lea edx, [ebp - 0xc4]
mov dword [ebp - 0x9c], 0
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov dword [ebp - 0x90], 0xc
call fcn.100597b0
test eax, eax
jne 0x1005a430
mov ecx, dword [0x100af6e8]
cmp ecx, 8
jb 0x1005a231
mov eax, dword [0x100af6d4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1005a227
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a2ff
mov eax, edx
push ecx
push eax
call fcn.1006e2ca
add esp, 8
movups xmm0, xmmword [ebp - 0xac]
movups xmmword [0x100af6d4], xmm0
movq xmm0, qword [ebp - 0x9c]
movq qword [0x100af6e4], xmm0
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
cmp edx, 8
jb 0x1005a2ac
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a2a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005a2ff
push edx
push ecx
call fcn.1006e2ca
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
cmp edx, 8
jb 0x1005a30f
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a305
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a305
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e2ca
add esp, 8
mov ecx, 0x100af6d4
call fcn.10059900
test al, al
jne 0x1005a326
xor ecx, ecx
call fcn.10064ac0
jmp 0x1005a32b
call fcn.10065660
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1005a367
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a35d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a35d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e2ca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006db86
mov esp, ebp
pop ebp
ret
push str.You_have_to_be_in_the_entry_screen_to_be_able_to_attach_the_dll
lea ecx, [ebp - 0xd0]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0xd0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.There_is_a_file_named_freedomfactorytools_in_working_directory_that_is_not_a_folder
lea ecx, [ebp - 0xdc]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0xdc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Unable_to_create_freedomfactorytools_folder_on_working_directory
lea ecx, [ebp - 0xe8]
call fcn.10056180
push 0x100acce4
lea eax, [ebp - 0xe8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0xc4]
mov edx, eax
push ecx
mov ecx, str.absolute
call fcn.100596a0
int3