Function at 0x100154e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xd0c
push ebx
push ebp
mov ebp, dword [esp + 0xd20]
push esi
push edi
mov edi, 0x100397e3
mov esi, ebp
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x13], 0
jne 0x10015510
mov byte [esp + 0x13], 1
lea ecx, [ecx]
mov ecx, dword [esp + 0xd2c]
cmp dword [ecx], 1
je 0x10015783
lea edx, [esp + 0x11c]
push str.Disk_Images_
push edx
call fcn.1001b3f7
lea eax, [esp + 0x124]
push eax
push ebp
call fcn.1001bfa0
add esp, 0x10
test eax, eax
je 0x100155bd
mov ebx, dword [esp + 0xd24]
push ebx
lea ecx, [esp + 0x120]
push str.Disk_ImagesDisk_d
push ecx
mov byte [eax], 0
call fcn.1001b3f7
lea eax, [esp + 0x128]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10015570
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015580
mov edx, dword [esp + 0xd38]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xd30]
push edx
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.10015240
mov esi, dword [esp + 0xd2c]
add esp, 0xc
mov dword [esi], eax
jmp 0x1001566c
mov ebp, 1
mov bl, 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x14], eax
xor edi, edi
test dword [esp + 0x14], ebp
je 0x10015649
movsx esi, bl
push esi
lea ecx, [esp + 0x120]
push str._c:_
push ecx
call fcn.1001b3f7
add esp, 0xc
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x10015649
mov eax, dword [esp + 0xd28]
push esi
push str._c:_
push eax
call fcn.1001b3f7
mov ecx, dword [esp + 0xd44]
mov edx, dword [esp + 0xd3c]
push ecx
push edx
lea eax, [esp + 0x130]
push eax
call fcn.10015240
mov ecx, dword [esp + 0xd38]
mov dword [ecx], eax
mov ecx, dword [esp + 0xd3c]
add esp, 0x18
cmp eax, ecx
je 0x10015657
inc bl
shl ebp, 1
inc edi
cmp edi, 0x20
jl 0x100155d0
mov esi, dword [esp + 0xd20]
mov ebx, dword [esp + 0xd24]
mov ebp, dword [esp + 0xd28]
cmp ebx, dword [esi]
je 0x10015738
mov al, byte [esp + 0x13]
test al, al
jne 0x10015685
push ebx
call dword [0x100480e0]
jmp 0x100156d9
push 0x400
lea edx, [esp + 0x920]
push edx
push 0x2f
call fcn.1000f520
lea eax, [esp + 0x24]
push eax
call fcn.1000ec60
movsx ecx, byte [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x934]
push edx
lea eax, [esp + 0x538]
push eax
call fcn.1001b3f7
add esp, 0x20
push 1
push 0x100397e3
lea ecx, [esp + 0x524]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x10015745
mov eax, dword [esp + 0xd34]
test eax, eax
push 0x400
je 0x100156fa
lea edx, [esp + 0x520]
push edx
push 0x2e
jmp 0x10015704
lea eax, [esp + 0x520]
push eax
push 0x4f
call fcn.1000f520
add esp, 0xc
push 0x124
push 0x100397e3
lea ecx, [esp + 0x524]
push ecx
push 0
call dword [0x1004bf88]
cmp eax, 6
jne 0x1001576e
mov edx, dword [esp + 0xd2c]
mov dword [edx], 0xffffffff
mov eax, dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0c
ret
push ebx
call dword [0x100480e4]
mov edx, dword [esp + 0xd38]
mov eax, dword [esp + 0xd30]
push edx
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.10015240
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esi]
cmp ebx, eax
jne 0x10015510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0c
ret
mov eax, dword [esp + 0xd20]
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0c
ret