Function at 0x10013a60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x100abec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x260]
mov dword [ebp - 0x674], edx
push 0
push eax
mov edi, ecx
call fcn.100750b0
add esp, 0xc
mov byte [ebp - 8], 0
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x670], esi
mov dword [ebp - 0xc], esi
movq qword [ebp - 0x18], xmm0
mov word [ebp - 0x10], si
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x66c], eax
test ebx, ebx
je 0x10013b45
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
nop
cmp ecx, 0x80
jge 0x10013b3f
test bl, 1
je 0x10013b34
add eax, 0x41
push eax
lea eax, [ebp - 0xc]
push 0x10097fd4
push eax
call fcn.10018ab0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push str.._s
push eax
call fcn.10018ad0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x670]
cmp eax, 2
jne 0x10013b2e
mov al, byte [ebp - 0x66c]
add al, 0x41
mov byte [ebp + ecx - 0x260], al
inc ecx
mov dword [ebp - 0x670], ecx
mov eax, dword [ebp - 0x66c]
inc eax
shr ebx, 1
mov dword [ebp - 0x66c], eax
jne 0x10013ad0
mov esi, dword [ebp - 0x670]
push 0x400
lea eax, [ebp - 0x660]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
call fcn.10040670
push esi
push 0x1b8
push str.GetUSBVolume
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x660]
push str._s_t__d__d___INFO____s:_d__call_4G_GetUSBVolume_with_usb_cnt___d_n
push eax
call fcn.10008b40
lea ecx, [ebp - 0x660]
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013bb0
sub ecx, edx
lea eax, [ebp - 0x660]
push ecx
push eax
call fcn.100407c0
add esp, 8
cmp esi, 1
jl 0x10013f6f
lea eax, [ebp - 0x60]
push eax
push edi
call sym.LibColStation.dll_bool___cdecl_ColStation_Get_Device_SN_void___char__
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], eax
mov al, byte [ebp + eax - 0x260]
movsx ebx, al
push ebx
mov byte [ebp - 0x665], al
lea eax, [ebp - 0xe0]
push str._c:_settings.txt
push eax
mov dword [ebp - 0x66c], ebx
call fcn.10018af0
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0x100986a0
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.10049eed
mov eax, dword [ebp - 0x664]
add esp, 0xc
test eax, eax
je 0x10013d48
push eax
call fcn.10049f34
add esp, 4
test eax, eax
jne 0x10013d3a
nop dword [eax]
push dword [ebp - 0x664]
lea eax, [ebp - 0x1e0]
push 0x400
push eax
call fcn.1004a023
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x1e0]
push 0x100986a4
push eax
call fcn.10074190
mov edi, eax
lea eax, [ebp - 0x1e0]
push 0x100986a8
push eax
call fcn.10074190
add esp, 0x10
mov esi, eax
test edi, edi
je 0x10013d1e
test esi, esi
je 0x10013d1e
sub esi, edi
lea eax, [ebx + 3]
sub esi, 3
je 0x10013ce6
push esi
test eax, eax
je 0x10013cbf
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10074b30
add esp, 0xc
jmp 0x10013cdd
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100750b0
add esp, 0xc
call fcn.10044f7f
mov dword [eax], 0x16
call fcn.10048f2a
cmp esi, 0x20
jae 0x10013fe2
mov byte [ebp + esi - 0x40], 0
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013d11
test dl, dl
je 0x10013d0d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013d11
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013cf1
xor eax, eax
jmp 0x10013d16
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013f82
push dword [ebp - 0x664]
call fcn.10049f34
add esp, 4
test eax, eax
je 0x10013c50
mov ebx, dword [ebp - 0x66c]
push dword [ebp - 0x664]
call fcn.1004a0a5
add esp, 4
push ebx
lea eax, [ebp - 0xe0]
push str._c:_sn.txt
push eax
call fcn.10018af0
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0x100986a0
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.10049eed
mov eax, dword [ebp - 0x664]
add esp, 0xc
test eax, eax
je 0x10013e9c
push eax
call fcn.10049f34
add esp, 4
test eax, eax
jne 0x10013e8e
nop word [eax + eax]
push dword [ebp - 0x664]
lea eax, [ebp - 0x1e0]
push 0x400
push eax
call fcn.1004a023
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x1e0]
push 0x100986a4
push eax
call fcn.10074190
mov edi, eax
lea eax, [ebp - 0x1e0]
push 0x100986a8
push eax
call fcn.10074190
add esp, 0x10
mov esi, eax
test edi, edi
je 0x10013e72
test esi, esi
je 0x10013e72
sub esi, edi
lea eax, [ebx + 3]
sub esi, 3
je 0x10013e3a
push esi
test eax, eax
je 0x10013e13
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10074b30
add esp, 0xc
jmp 0x10013e31
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100750b0
add esp, 0xc
call fcn.10044f7f
mov dword [eax], 0x16
call fcn.10048f2a
cmp esi, 0x20
jae 0x10013fe2
mov byte [ebp + esi - 0x40], 0
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10013e65
test dl, dl
je 0x10013e61
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10013e65
add eax, 2
add ecx, 2
test dl, dl
jne 0x10013e45
xor eax, eax
jmp 0x10013e6a
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013f82
push dword [ebp - 0x664]
call fcn.10049f34
add esp, 4
test eax, eax
je 0x10013da0
mov ebx, dword [ebp - 0x66c]
push dword [ebp - 0x664]
call fcn.1004a0a5
add esp, 4
push ebx
lea eax, [ebp - 0xe0]
push str._c:_sn.txt
push eax
call fcn.10018af0
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0x100986a0
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.10049eed
mov eax, dword [ebp - 0x664]
add esp, 0xc
test eax, eax
je 0x10013f5c
push eax
call fcn.10049f34
add esp, 4
test eax, eax
jne 0x10013f4e
nop word [eax + eax]
push dword [ebp - 0x664]
lea eax, [ebp - 0x1e0]
push 0x400
push eax
call fcn.1004a023
add esp, 0xc
lea eax, [ebp - 0x1e0]
lea ecx, [ebp - 0x60]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10013f33
test dl, dl
je 0x10013f2f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10013f33
add ecx, 2
add eax, 2
test dl, dl
jne 0x10013f13
xor eax, eax
jmp 0x10013f38
sbb eax, eax
or eax, 1
push dword [ebp - 0x664]
test eax, eax
je 0x10013fb5
call fcn.10049f34
add esp, 4
test eax, eax
je 0x10013ef0
push dword [ebp - 0x664]
call fcn.1004a0a5
add esp, 4
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x670]
jl 0x10013be4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x674]
mov al, byte [ebp - 0x665]
push dword [ebp - 0x664]
mov byte [ecx], al
mov byte [ecx + 1], 0
call fcn.1004a0a5
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071677
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x674]
mov al, byte [ebp - 0x665]
mov byte [ecx], al
mov byte [ecx + 1], 0
call fcn.1004a0a5
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.10071677
mov esp, ebp
pop ebp
ret
call fcn.100717d8
int3