Function at 0x469100
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
and eax, 7
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x11c], edi
cmp eax, 2
jne 0x46948f
mov ecx, dword [esi + 0x10ba8]
mov dl, byte [edi]
mov byte [ecx], dl
mov edx, dword [esi + 0x10ba8]
cmp byte [edx], 0
mov eax, edi
mov dword [ebp - 0x114], 0
mov ecx, 1
je 0x46917e
jmp 0x469160
add dword [esi + 0x10ba8], ecx
mov edx, dword [esi + 0x10ba8]
mov bl, byte [eax + ecx]
add eax, ecx
mov byte [edx], bl
mov edx, dword [esi + 0x10ba8]
cmp byte [edx], 0
jne 0x469160
mov ecx, dword [esi + 0x10ba0]
mov ebx, esi
call fcn.004681d0
test eax, eax
je 0x469198
cmp dword [esi + 0x10b94], 0
jne 0x4691c4
mov ecx, dword [esi + 0x10bac]
mov dl, byte [edi]
lea ebx, [esi + 0x10bac]
mov byte [ecx], dl
mov ecx, dword [ebx]
cmp byte [ecx], 0
mov eax, edi
je 0x4691d5
inc dword [ebx]
mov edx, dword [ebx]
mov cl, byte [eax + 1]
inc eax
mov byte [edx], cl
mov edx, dword [ebx]
cmp byte [edx], 0
jne 0x4691b1
jmp 0x4691d5
lea ebx, [esi + 0x10bac]
push ebx
mov ecx, edi
call fcn.00468f90
add esp, 4
mov eax, dword [esi + 0x10ba8]
sub eax, dword [esi + 0x10ba0]
cmp eax, 0x101
jle 0x4691f2
mov dword [ebp - 0x114], 1
mov eax, dword [esi + 0x10ba4]
lea ecx, [esi + 0x10980]
push ecx
mov ecx, esi
call fcn.00469b40
add esp, 4
test eax, eax
je 0x469389
cmp dword [esi + 0x7c], 0
jne 0x46924b
mov edx, dword [esi + 0x10ba0]
push edx
call fcn.004aa14e
mov eax, dword [esi + 0x10ba4]
add esp, 4
push eax
call fcn.004aa14e
add esp, 4
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x114], 0
je 0x4692bb
mov eax, dword [esi + 0x10ba0]
push 1
lea ebx, [esi + 0x88dc]
lea edi, [esi + 0x8dc]
call fcn.0046d700
push eax
push str.checkdir_error:__path_too_long:__s_n
push edi
call fcn.004a931b
mov ecx, dword [esi + 0x10b54]
add esp, 0xc
push eax
push edi
push esi
call ecx
mov edx, dword [esi + 0x10ba0]
push edx
call fcn.004aa14e
mov eax, dword [esi + 0x10ba4]
add esp, 4
push eax
call fcn.004aa14e
add esp, 4
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10ba4]
push ecx
call fcn.004b1200
add esp, 4
cmp eax, 0xffffffff
jne 0x469348
push 1
lea ebx, [esi + 0x88dc]
lea eax, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.0046d700
push eax
mov eax, dword [esi + 0x10ba4]
lea ebx, [esi + 0xc8dc]
call fcn.0046d700
push eax
push str.checkdir_error:__cannot_create__s_n_________________unable_to_process__s._n
push edi
call fcn.004a931b
mov edx, dword [esi + 0x10b54]
add esp, 0x10
push eax
push edi
push esi
call edx
mov eax, dword [esi + 0x10ba0]
push eax
call fcn.004aa14e
mov ecx, dword [esi + 0x10ba4]
add esp, 4
push ecx
call fcn.004aa14e
add esp, 4
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10b80], 1
mov edx, dword [esi + 0x10ba8]
mov byte [edx], 0x2f
mov eax, dword [ebx]
inc dword [esi + 0x10ba8]
mov byte [eax], 0x2f
inc dword [ebx]
mov ebx, dword [ebx]
mov byte [ebx], 0
mov ecx, dword [esi + 0x10ba8]
mov byte [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov dx, word [esi + 0x10986]
mov eax, 0xf000
and dx, ax
mov ecx, 0x4000
cmp dx, cx
je 0x46941b
push 1
lea ebx, [esi + 0x88dc]
lea eax, [esi + 0x109f0]
lea edi, [esi + 0x8dc]
call fcn.0046d700
push eax
mov eax, dword [esi + 0x10ba4]
lea ebx, [esi + 0xc8dc]
call fcn.0046d700
push eax
push str.checkdir_error:___s_exists_but_is_not_directory_n_________________unable_to_process__s._n
push edi
call fcn.004a931b
mov edx, dword [esi + 0x10b54]
add esp, 0x10
push eax
push edi
push esi
call edx
mov eax, dword [esi + 0x10ba0]
push eax
call fcn.004aa14e
mov ecx, dword [esi + 0x10ba4]
add esp, 4
push ecx
call fcn.004aa14e
add esp, 4
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x114], 0
je 0x469352
mov eax, dword [esi + 0x10ba0]
push 1
lea ebx, [esi + 0x88dc]
lea edi, [esi + 0x8dc]
call fcn.0046d700
push eax
push str.checkdir_error:__path_too_long:__s_n
push edi
call fcn.004a931b
mov edx, dword [esi + 0x10b54]
add esp, 0xc
push eax
push edi
push esi
call edx
mov eax, dword [esi + 0x10ba0]
push eax
call fcn.004aa14e
mov ecx, dword [esi + 0x10ba4]
add esp, 4
push ecx
call fcn.004aa14e
add esp, 4
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4694f3
mov ecx, dword [esi + 0x10ba4]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edi], al
inc ecx
inc edi
test al, al
jne 0x4694a0
mov edx, dword [esi + 0x10ba4]
push edx
call fcn.004aa14e
mov eax, dword [esi + 0x10ba0]
add esp, 4
push eax
call fcn.004aa14e
add esp, 4
xor eax, eax
mov dword [esi + 0x10bac], eax
mov dword [esi + 0x10ba8], eax
mov dword [esi + 0x10ba4], eax
mov dword [esi + 0x10ba0], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x469665
mov edx, dword [esi + 0x10ba8]
mov al, byte [edi]
mov byte [edx], al
mov edx, dword [esi + 0x10ba8]
cmp byte [edx], 0
mov ecx, edi
mov dword [ebp - 0x114], 0
je 0x4695c2
inc dword [esi + 0x10ba8]
mov eax, dword [esi + 0x10ba8]
mov edx, eax
sub edx, dword [esi + 0x10ba0]
inc ecx
mov dword [ebp - 0x118], ecx
cmp edx, 0x104
jl 0x4695a9
dec eax
mov dword [esi + 0x10ba8], eax
mov byte [eax], 0
mov eax, dword [esi + 0x10ba0]
push 1
lea ebx, [esi + 0xc8dc]
lea edi, [esi + 0x8dc]
call fcn.0046d700
push eax
lea ebx, [esi + 0x88dc]
lea eax, [esi + 0x109f0]
call fcn.0046d700
push eax
push str.checkdir_warning:__path_too_long__truncating_n____________________s_n____________________s_n
push edi
call fcn.004a931b
add esp, 0x10
push eax
mov eax, dword [esi + 0x10b54]
push edi
push esi
call eax
mov edi, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x114], pe_nt_image_headers32
mov edx, dword [esi + 0x10ba8]
mov al, byte [ecx]
mov byte [edx], al
mov edx, dword [esi + 0x10ba8]
cmp byte [edx], 0
jne 0x469521
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 0x20
jne 0x469610
mov ecx, dword [esi + 0x10ba0]
mov ebx, esi
call fcn.004681d0
test eax, eax
je 0x469610
cmp dword [esi + 0x10b94], 0
je 0x469610
add esi, 0x10bac
push esi
mov ecx, edi
call fcn.00468f90
mov eax, dword [ebp - 0x114]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10bac]
mov dl, byte [edi]
mov byte [ecx], dl
mov ecx, dword [esi + 0x10bac]
cmp byte [ecx], 0
mov eax, edi
je 0x46964e
mov ecx, 1
lea esp, [esp]
add dword [esi + 0x10bac], ecx
mov edx, dword [esi + 0x10bac]
mov bl, byte [eax + ecx]
add eax, ecx
mov byte [edx], bl
mov edx, dword [esi + 0x10bac]
cmp byte [edx], 0
jne 0x469630
mov eax, dword [ebp - 0x114]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4698da
mov ecx, dword [esi + 0x10b88]
mov eax, dword [esi + 0x10cbc]
lea eax, [ecx + eax + 1]
push eax
mov dword [ebp - 0x118], eax
call fcn.004aa188
mov ebx, eax
add esp, 4
mov dword [esi + 0x10ba0], ebx
test ebx, ebx
je 0x4696bb
mov edx, dword [ebp - 0x118]
push edx
call fcn.004aa188
add esp, 4
mov dword [esi + 0x10ba4], eax
test eax, eax
jne 0x4696d1
push ebx
call fcn.004aa14e
add esp, 4
mov eax, 0xa00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 0x20
je 0x469833
mov eax, dword [esi + 0x10b84]
mov bl, 0x3a
test eax, eax
je 0x46970f
cmp byte [edi + 1], bl
jne 0x46970b
movsx ecx, byte [edi]
push ecx
call fcn.004ab46d
mov edx, dword [esi + 0x10ba0]
add esp, 4
mov byte [edx], al
jmp 0x4697a8
test eax, eax
jne 0x469731
cmp dword [esi + 0x10cbc], 1
jle 0x469731
mov eax, dword [esi + 0x10b9c]
cmp byte [eax + 1], bl
jne 0x469731
movsx eax, byte [eax]
push eax
call fcn.004ab46d
add esp, 4
jmp 0x4697a0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0x4d8f74
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x104
jbe 0x46978d
push 1
lea edi, [esi + 0x8dc]
push str.checkdir_warning:_current_dir_path_too_long_n
push edi
call fcn.004a931b
mov ecx, dword [esi + 0x10b54]
add esp, 8
push eax
push edi
push esi
call ecx
mov eax, pe_nt_image_headers32
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
movsx edx, byte [ebp - 0x110]
sub edx, 0x60
mov dword [esi + 0x10b8c], edx
lea eax, [edx + 0x60]
mov ecx, dword [esi + 0x10ba0]
mov byte [ecx], al
mov edx, dword [esi + 0x10ba0]
movsx eax, byte [edx]
mov ecx, dword [esi + 0x40]
add eax, 0xffffffa0
mov dword [esi + 0x10b8c], eax
test ecx, ecx
je 0x4697ff
cmp byte [edx], 0x61
jl 0x4697ff
cmp ecx, 1
jne 0x4697f4
lea edx, [ebp - 0x114]
add al, 0x40
push edx
mov byte [ebp - 0x114], al
mov byte [ebp - 0x113], bl
mov word [ebp - 0x112], 0x2f
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4697ff
mov eax, dword [esi + 0x10ba0]
mov byte [eax], 0
jmp 0x46986f
mov ecx, dword [esi + 0x10ba0]
push ecx
call fcn.004aa14e
mov edx, dword [esi + 0x10ba4]
add esp, 4
push edx
call fcn.004aa14e
add esp, 4
mov eax, 0x1100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x10b84], 0
je 0x46984c
mov ecx, ebx
mov edi, edi
mov al, byte [edi]
mov byte [ecx], al
inc edi
inc ecx
test al, al
jne 0x469840
jmp 0x46986f
cmp dword [esi + 0x10cbc], 0
jle 0x46986c
mov ecx, dword [esi + 0x10b9c]
mov edx, ebx
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x469860
jmp 0x46986f
mov byte [ebx], 0
mov eax, dword [esi + 0x10ba0]
mov ecx, dword [esi + 0x10ba4]
mov dword [esi + 0x10bac], ecx
mov dword [esi + 0x10ba8], eax
mov al, byte [eax]
mov byte [ecx], al
mov ecx, dword [esi + 0x10bac]
cmp byte [ecx], 0
je 0x4698c7
mov eax, 1
jmp 0x4698a0
add dword [esi + 0x10bac], eax
add dword [esi + 0x10ba8], eax
mov edx, dword [esi + 0x10ba8]
mov ecx, dword [esi + 0x10bac]
mov dl, byte [edx]
mov byte [ecx], dl
mov ecx, dword [esi + 0x10bac]
cmp byte [ecx], 0
jne 0x4698a0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp eax, ebx
jne 0x469aed
cmp edi, ebx
je 0x469b09
cmp dword [esi + 0x10cbc], ebx
jg 0x469376
lea ecx, [edi + 1]
jmp 0x469900
mov al, byte [edi]
inc edi
test al, al
jne 0x469900
sub edi, ecx
mov dword [esi + 0x10cbc], edi
cmp edi, ebx
jle 0x469376
add edi, 3
push edi
xor ebx, ebx
call fcn.004aa188
mov edi, eax
add esp, 4
test edi, edi
jne 0x469947
mov dword [esi + 0x10cbc], ebx
mov eax, 0xa00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x469951
movzx edx, byte [edi]
push edx
call fcn.004aa54b
add esp, 4
test eax, eax
je 0x469976
cmp byte [edi + 1], 0x3a
mov edx, 1
je 0x469978
mov edx, ebx
mov eax, dword [esi + 0x10cbc]
mov cl, byte [eax + edi - 1]
cmp cl, 0x2f
je 0x46998c
cmp cl, 0x5c
jne 0x46999b
dec eax
mov dword [esi + 0x10cbc], eax
mov byte [eax + edi], bl
mov ebx, 1
test edx, edx
je 0x469a18
cmp dword [esi + 0x10cbc], 2
jne 0x469a18
test ebx, ebx
jne 0x4699b6
mov byte [edi + 2], 0x2e
inc dword [esi + 0x10cbc]
mov edx, dword [esi + 0x10cbc]
mov byte [edi + edx], 0x2f
inc dword [esi + 0x10cbc]
mov eax, dword [esi + 0x10cbc]
mov byte [eax + edi], 0
mov eax, dword [esi + 0x10cbc]
inc eax
push eax
push edi
call fcn.004ae4a6
add esp, 8
mov dword [esi + 0x10b9c], eax
test eax, eax
jne 0x469376
push edi
call fcn.004aa14e
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0xa00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x10cbc], 0
jle 0x4699b6
lea eax, [esi + 0x10980]
push eax
mov eax, edi
mov ecx, esi
call fcn.00469b40
add esp, 4
test eax, eax
jne 0x469a55
mov cx, word [esi + 0x10986]
mov edx, 0xf000
and cx, dx
mov eax, 0x4000
cmp cx, ax
je 0x4699b6
cmp dword [esi + 0x7c], 0
push edi
jne 0x469a84
call fcn.004aa14e
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
call fcn.004b1200
add esp, 4
cmp eax, 0xffffffff
jne 0x4699b6
push 1
lea ebx, [esi + 0x88dc]
mov eax, edi
call fcn.0046d700
push eax
push str.checkdir:__cannot_create_extraction_directory:__s_n
lea ebx, [esi + 0x8dc]
push ebx
call fcn.004a931b
mov ecx, dword [esi + 0x10b54]
add esp, 0xc
push eax
push ebx
push esi
call ecx
push edi
call fcn.004aa14e
add esp, 4
mov dword [esi + 0x10cbc], 0
mov eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x469b22
cmp dword [esi + 0x10cbc], ebx
jle 0x469b0f
mov ecx, dword [esi + 0x10b9c]
push ecx
call fcn.004aa14e
add esp, 4
mov dword [esi + 0x10cbc], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x6300
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret