Function at 0x41b1b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45710b
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebp
push esi
mov esi, dword [esp + 0x138]
mov ebp, ecx
push edi
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp ecx, 3
jge 0x41b1fd
mov ecx, dword [esp + 0x140]
push ecx
push eax
push 0x6e
mov ecx, ebp
call fcn.0041b8d0
mov eax, 0x57
jmp 0x41b5e9
mov cl, byte [eax + 1]
cmp cl, 0x3a
je 0x41b221
mov edx, dword [esp + 0x140]
mov ecx, ebp
push edx
push eax
push 0x6e
call fcn.0041b8d0
mov eax, 0x57
jmp 0x41b5e9
push 0x46b838
push 0x46e120
mov ecx, esi
call fcn.0044894b
mov eax, dword [esi]
mov cl, byte [eax + 2]
cmp cl, 0x5c
je 0x41b258
mov ecx, dword [esp + 0x140]
push ecx
push eax
push 0x6e
mov ecx, ebp
call fcn.0041b8d0
mov eax, 0x57
jmp 0x41b5e9
mov ecx, dword [eax - 8]
cmp byte [eax + ecx - 1], 0x5c
je 0x41b26e
push 0x46b838
mov ecx, esi
call fcn.0044e4f5
mov edx, dword [0x46b788]
mov eax, dword [esi]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov al, byte [eax]
push ecx
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41b2f1
mov al, byte [esp + 0x11]
mov cl, byte [0x476654]
mov byte [esp + 0xd], al
mov byte [esp + 0x28], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov dl, byte [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0xc], dl
lea edx, [esp + 0x28]
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x1a], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea ecx, [esp + 0x28]
push 0x46b780
push ecx
call fcn.00435f1b
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0xc], eax
jne 0x41b311
mov edx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push edx
push eax
push 0x59
mov ecx, ebp
call fcn.0041b8d0
mov eax, 0x57
jmp 0x41b5e9
mov eax, dword [esi]
mov edx, dword [ebp + 0x2f4]
mov ecx, dword [eax - 8]
cmp ecx, edx
jle 0x41b33c
mov ecx, dword [esp + 0x140]
push ecx
push eax
push 0x53
mov ecx, ebp
call fcn.0041b8d0
mov eax, 0x57
jmp 0x41b5e9
push 0x46b838
push 0x46e11c
mov ecx, esi
call fcn.0044894b
test eax, eax
je 0x41b366
push 0x46b838
push 0x46e11c
mov ecx, esi
call fcn.0044894b
test eax, eax
jne 0x41b351
push 0x46b838
push 0x46e118
mov ecx, esi
call fcn.0044894b
test eax, eax
je 0x41b390
push 0x46b838
push 0x46e118
mov ecx, esi
call fcn.0044894b
test eax, eax
jne 0x41b37b
push 0x46b838
push 0x46ca54
mov ecx, esi
call fcn.0044894b
test eax, eax
je 0x41b3ba
push 0x46b838
push 0x46ca54
mov ecx, esi
call fcn.0044894b
test eax, eax
jne 0x41b3a5
push 0x46c780
push 0x46e114
mov ecx, esi
call fcn.0044894b
test eax, eax
je 0x41b3e4
push 0x46c780
push 0x46e114
mov ecx, esi
call fcn.0044894b
test eax, eax
jne 0x41b3cf
push ebx
xor ebx, ebx
mov eax, dword [ebp + 0x2e4]
test eax, eax
jne 0x41b3f6
mov eax, 0x45a50c
push eax
mov ecx, esi
call fcn.0044e5e0
mov edi, eax
cmp edi, 0xffffffff
je 0x41b443
cmp edi, 1
je 0x41b432
test ebx, ebx
jne 0x41b432
push 0x3a
push 1
mov ecx, esi
call fcn.0044e600
mov edx, dword [esp + 0x144]
mov eax, dword [esi]
push edx
push eax
push 0x57
mov ecx, ebp
call fcn.0041b8d0
mov ebx, 1
mov cl, byte [ebp + 0x2f0]
push ecx
push edi
mov ecx, esi
call fcn.0044e600
jmp 0x41b3e7
push 0x3a
push 1
mov ecx, esi
call fcn.0044e600
mov edx, dword [esi]
mov al, byte [edx]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0041b720
test eax, eax
pop ebx
jne 0x41b5bd
mov eax, dword [ebp + 0x10c]
test eax, eax
jne 0x41b617
lea ecx, [ebp + 0x1c4]
call fcn.0042ae9a
push eax
call fcn.0044b0f3
push eax
lea ecx, [esp + 0x2c]
call fcn.00401cd0
lea ecx, [esp + 0x28]
mov dword [esp + 0x134], 0
call fcn.00411130
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0xc], eax
jne 0x41b4e4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
call fcn.0041f4f1
add esp, 4
push eax
push str.Failure_to_initialize_dialog
push str._s_failed_returning__s_n
push 0x476888
call fcn.0041ebbf
add esp, 0x10
call edi
jmp 0x41b593
lea ecx, [esp + 0x28]
call fcn.0044a7ce
mov dl, byte [0x476654]
mov edi, eax
mov ecx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x15], eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x19], eax
push ecx
mov dword [esp + 0x21], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x25], eax
push 0x46b6e0
mov word [esp + 0x2d], ax
push edx
mov byte [esp + 0x33], al
call fcn.00435e2f
mov eax, dword [esp + 0xd8]
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Exiting_dialog____s____s
push 1
push 0x476888
call fcn.004011d0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 1
jl 0x41b567
cmp edi, 0x7d00
mov ecx, 0x20
jle 0x41b56c
mov ecx, 0x400
mov edx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0x8c]
push edx
push eax
push edi
push str.Unexpected_result__d_when_in_Dialog_ID_d__s__exitCode_d
push ecx
push 0x476888
call fcn.004011d0
add esp, 0x1c
mov eax, edi
cmp eax, 1
jne 0x41b603
mov ecx, dword [esp + 0x124]
push ecx
push 0
mov ecx, esi
call fcn.0044e600
lea ecx, [esp + 0x28]
mov dword [esp + 0x134], 0xffffffff
call fcn.00401d70
mov edx, dword [esi]
movsx eax, byte [edx]
push eax
call fcn.0043606b
add esp, 4
test eax, eax
je 0x41b5e7
mov ecx, dword [esi]
movsx edx, byte [ecx]
push edx
call fcn.00436d2d
add esp, 4
mov ecx, esi
push eax
push 0
call fcn.0044e600
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x12c
ret 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x134], 0xffffffff
call fcn.00401d70
mov eax, 0x70
jmp 0x41b5e9