Function at 0x40722a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 0xc]
push ebx
and eax, 7
cmp eax, 2
push esi
push edi
jne 0x40741b
mov esi, dword [ebp + 8]
mov al, byte [esi]
mov ecx, dword [0x426b00]
xor ebx, ebx
mov edi, esi
mov dword [ebp + 0xc], ebx
mov byte [ecx], al
jmp 0x407266
inc edi
inc eax
mov dword [0x426b00], eax
mov cl, byte [edi]
mov byte [eax], cl
mov eax, dword [0x426b00]
cmp byte [eax], bl
jne 0x40725b
mov eax, dword [0x426af8]
call fcn.0040681d
neg eax
sbb eax, eax
test dword [0x426aec], eax
jne 0x4072a7
mov al, byte [esi]
mov ecx, dword [0x426b04]
mov byte [ecx], al
jmp 0x40729c
inc esi
inc eax
mov dword [0x426b04], eax
mov cl, byte [esi]
mov byte [eax], cl
mov eax, dword [0x426b04]
cmp byte [eax], bl
jne 0x407291
jmp 0x4072b3
mov edi, 0x426b04
mov eax, esi
call fcn.004069fa
mov eax, dword [0x426b00]
sub eax, dword [0x426af8]
xor esi, esi
inc esi
cmp eax, 0x101
jle 0x4072cb
mov dword [ebp + 0xc], esi
push 0x426920
push dword [0x426afc]
call fcn.004070c0
test eax, eax
pop ecx
pop ecx
je 0x4073a7
cmp dword [0x41a148], ebx
jne 0x4072f7
mov esi, 0x200
jmp 0x4076c0
cmp dword [ebp + 0xc], ebx
je 0x40733b
push esi
push 0x41e880
push dword [0x426af8]
call fcn.00401cb2
push eax
push str.checkdir_error:__path_too_long:__s_n
mov esi, 0x41a880
push esi
call fcn.00408605
add esp, 0x14
push eax
push esi
push 0x41a0c0
call dword [fcn.00426abc]
add esp, 0x10
mov esi, 0x400
jmp 0x4076c0
push dword [0x426afc]
call fcn.00412573
cmp eax, 0xffffffff
pop ecx
jne 0x40739f
push esi
push 0x41e880
push 0x426984
call fcn.00401cb2
pop ecx
pop ecx
push eax
push 0x420880
push dword [0x426afc]
call fcn.00401cb2
pop ecx
pop ecx
push eax
push str.checkdir_error:__cannot_create__s_n_________________unable_to_process__s._n
mov esi, 0x41a880
push esi
call fcn.00408605
add esp, 0x10
push eax
push esi
push 0x41a0c0
call dword [fcn.00426abc]
add esp, 0x10
mov esi, 0x300
jmp 0x4076c0
mov dword [0x426ad8], esi
jmp 0x4073ec
mov eax, dword [0x426926]
and ax, 0xf000
cmp ax, 0x4000
je 0x4073e3
push esi
push 0x41e880
push 0x426984
call fcn.00401cb2
pop ecx
pop ecx
push eax
push 0x420880
push dword [0x426afc]
call fcn.00401cb2
pop ecx
pop ecx
push eax
push str.checkdir_error:___s_exists_but_is_not_directory_n_________________unable_to_process__s._n
jmp 0x407377
cmp dword [ebp + 0xc], ebx
jne 0x4072fc
mov eax, dword [0x426b00]
mov byte [eax], 0x2f
mov eax, dword [0x426b04]
inc dword [0x426b00]
mov byte [eax], 0x2f
inc dword [0x426b04]
mov eax, dword [0x426b04]
mov byte [eax], bl
mov eax, dword [0x426b00]
mov byte [eax], bl
jmp 0x407913
cmp eax, 4
jne 0x407466
push dword [0x426afc]
push dword [ebp + 8]
call fcn.0040a7b0
push dword [0x426afc]
call fcn.00409130
push dword [0x426af8]
call fcn.00409130
add esp, 0x10
xor ebx, ebx
mov dword [0x426b04], ebx
mov dword [0x426b00], ebx
mov dword [0x426afc], ebx
mov dword [0x426af8], ebx
jmp 0x407913
cmp eax, 3
jne 0x407576
mov edi, dword [ebp + 8]
mov al, byte [edi]
mov ecx, dword [0x426b00]
mov byte [ecx], al
mov eax, dword [0x426b00]
xor ebx, ebx
cmp byte [eax], bl
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], ebx
je 0x40751c
mov esi, 0x41a880
inc dword [ebp + 0xc]
inc eax
mov ecx, eax
sub ecx, dword [0x426af8]
mov dword [0x426b00], eax
cmp ecx, 0x104
jl 0x407508
dec eax
push 1
mov dword [0x426b00], eax
mov byte [eax], bl
push 0x420880
push dword [0x426af8]
call fcn.00401cb2
pop ecx
pop ecx
push eax
push 0x41e880
push 0x426984
call fcn.00401cb2
pop ecx
pop ecx
push eax
push str.checkdir_warning:__path_too_long__truncating_n____________________s_n____________________s_n
push esi
call fcn.00408605
add esp, 0x10
push eax
push esi
push 0x41a0c0
call dword [fcn.00426abc]
mov eax, dword [0x426b00]
add esp, 0x10
mov dword [ebp - 4], 0x100
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [0x426b00]
cmp byte [eax], bl
jne 0x407496
mov eax, dword [0x41a87c]
test byte [eax + 0x18], 0x20
jne 0x40754c
mov eax, dword [0x426af8]
call fcn.0040681d
neg eax
sbb eax, eax
test dword [0x426aec], eax
je 0x40754c
mov eax, dword [ebp + 8]
mov edi, 0x426b04
call fcn.004069fa
jmp 0x40756e
mov al, byte [edi]
mov ecx, dword [0x426b04]
mov esi, edi
mov byte [ecx], al
jmp 0x407565
inc esi
inc eax
mov dword [0x426b04], eax
mov cl, byte [esi]
mov byte [eax], cl
mov eax, dword [0x426b04]
cmp byte [eax], bl
jne 0x40755a
mov eax, dword [ebp - 4]
jmp 0x40791c
xor edi, edi
inc edi
cmp eax, edi
jne 0x40774e
mov eax, dword [0x426ae0]
mov ecx, dword [0x426c14]
lea eax, [ecx + eax + 1]
push eax
call fcn.0040911e
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [0x426af8], eax
je 0x4075cd
mov eax, dword [0x426ae0]
mov ecx, dword [0x426c14]
lea eax, [ecx + eax + 1]
push eax
call fcn.0040911e
cmp eax, ebx
pop ecx
mov dword [0x426afc], eax
jne 0x4075d7
push dword [0x426af8]
call fcn.00409130
pop ecx
mov eax, 0xa00
jmp 0x40791c
mov eax, dword [0x41a87c]
test byte [eax + 0x18], 0x20
je 0x4076dd
cmp dword [0x426adc], ebx
je 0x4075f3
mov eax, dword [ebp + 8]
jmp 0x407600
cmp dword [0x426c14], edi
jle 0x407612
mov eax, dword [0x426af4]
cmp byte [eax + 1], 0x3a
jne 0x407612
movzx eax, byte [eax]
push eax
call fcn.00409deb
pop ecx
jmp 0x407670
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
push 0x4153ac
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, esi
jbe 0x40765f
push edi
push str.checkdir_warning:_current_dir_path_too_long_n
mov esi, 0x41a880
push esi
call fcn.00408605
pop ecx
pop ecx
push eax
push esi
push 0x41a0c0
call dword [fcn.00426abc]
add esp, 0x10
mov eax, 0x100
jmp 0x40791c
movzx eax, byte [ebp - 0x108]
sub eax, 0x60
mov dword [0x426ae4], eax
add al, 0x60
mov ecx, dword [0x426af8]
mov byte [ecx], al
mov edx, dword [0x426af8]
movzx eax, byte [edx]
mov ecx, dword [0x41a0fc]
sub eax, 0x60
cmp ecx, ebx
mov dword [0x426ae4], eax
je 0x4076bb
cmp byte [edx], 0x61
jb 0x4076bb
cmp ecx, edi
jne 0x407707
add al, 0x40
mov byte [ebp + 0xc], al
lea eax, [ebp + 0xc]
push eax
mov byte [ebp + 0xd], 0x3a
mov byte [ebp + 0xe], 0x2f
mov byte [ebp + 0xf], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x407707
mov esi, 0x1100
push dword [0x426af8]
call fcn.00409130
push dword [0x426afc]
call fcn.00409130
pop ecx
pop ecx
jmp 0x40786b
cmp dword [0x426adc], ebx
je 0x4076f7
push dword [ebp + 8]
push dword [0x426af8]
call fcn.0040a7b0
pop ecx
pop ecx
jmp 0x40770e
cmp dword [0x426c14], ebx
jle 0x407707
push dword [0x426af4]
jmp 0x4076e8
mov eax, dword [0x426af8]
mov byte [eax], bl
mov eax, dword [0x426af8]
mov ecx, dword [0x426afc]
mov dword [0x426b00], eax
mov dword [0x426b04], ecx
mov al, byte [eax]
mov byte [ecx], al
jmp 0x407740
inc eax
inc dword [0x426b00]
mov ecx, dword [0x426b00]
mov dword [0x426b04], eax
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [0x426b04]
cmp byte [eax], bl
jne 0x40772a
jmp 0x407913
xor ebx, ebx
cmp eax, ebx
jne 0x4078f4
cmp dword [ebp + 8], ebx
jne 0x407764
xor esi, esi
jmp 0x407865
cmp dword [0x426c14], ebx
jg 0x407913
push dword [ebp + 8]
call fcn.00409640
cmp eax, ebx
pop ecx
mov dword [0x426c14], eax
jle 0x407913
add eax, 3
push eax
xor esi, esi
mov dword [ebp + 0xc], ebx
call fcn.0040911e
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4077a5
mov esi, 0xa00
jmp 0x407865
push dword [ebp + 8]
push edi
call fcn.0040a7b0
cmp dword [0x4191f0], 1
movzx eax, byte [edi]
pop ecx
pop ecx
jle 0x4077cb
push 0x103
push eax
call fcn.0040a278
pop ecx
pop ecx
jmp 0x4077da
mov ecx, dword [str.________________________________H]
movzx eax, word [ecx + eax*2]
and eax, 0x103
cmp eax, ebx
je 0x4077eb
cmp byte [edi + 1], 0x3a
jne 0x4077eb
mov dword [ebp + 0xc], 1
mov ecx, dword [0x426c14]
mov al, byte [ecx + edi - 1]
cmp al, 0x2f
je 0x4077fd
cmp al, 0x5c
jne 0x40780a
dec ecx
xor esi, esi
mov dword [0x426c14], ecx
mov byte [ecx + edi], bl
inc esi
cmp dword [ebp + 0xc], ebx
je 0x407872
cmp dword [0x426c14], 2
jne 0x407872
cmp esi, ebx
jne 0x407826
mov byte [edi + 2], 0x2e
inc dword [0x426c14]
mov eax, dword [0x426c14]
mov byte [eax + edi], 0x2f
inc dword [0x426c14]
mov eax, dword [0x426c14]
mov byte [eax + edi], bl
mov eax, dword [0x426c14]
inc eax
push eax
push edi
call fcn.0040a8a8
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x426af4], eax
jne 0x407913
mov esi, 0xa00
push edi
call fcn.00409130
pop ecx
mov dword [0x426c14], ebx
mov eax, esi
jmp 0x40791c
cmp dword [0x426c14], ebx
jle 0x407826
push 0x426920
push edi
call fcn.004070c0
test eax, eax
pop ecx
pop ecx
jne 0x40789a
mov eax, dword [0x426926]
and ax, 0xf000
cmp ax, 0x4000
je 0x407826
cmp dword [0x41a148], ebx
jne 0x4078a9
mov esi, 0x200
jmp 0x40785e
push edi
call fcn.00412573
cmp eax, 0xffffffff
pop ecx
jne 0x407826
push 1
push 0x41e880
push edi
call fcn.00401cb2
push eax
push str.checkdir:__cannot_create_extraction_directory:__s_n
mov esi, 0x41a880
push esi
call fcn.00408605
add esp, 0x14
push eax
push esi
push 0x41a0c0
call dword [fcn.00426abc]
add esp, 0x10
mov esi, 0x300
jmp 0x40785e
cmp eax, 5
jne 0x407917
cmp dword [0x426c14], ebx
jle 0x407913
push dword [0x426af4]
call fcn.00409130
pop ecx
mov dword [0x426c14], ebx
xor eax, eax
jmp 0x40791c
mov eax, 0x6300
pop edi
pop esi
pop ebx
leave
ret