Function at 0x416ae0
Capabilities:
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e66c
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x3fc
lea ecx, [esp + 0x5c]
push 0
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], 0x41
call fcn.00446a60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.00424a60
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416b69
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x468], 0
test ebx, ebx
jne 0x416bdf
mov edi, str.There_is_no_drive_to_show..or_issue_in_drive_calculation
call fcn.00419530
lea eax, [esi - 0x10]
mov dword [esp + 0x468], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.00442896
mov esp, ebp
pop ebp
ret 4
test bl, 1
je 0x416df7
lea eax, [esp + 0x54]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416bf0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x18]
call fcn.004046e0
push 0x46bc44
lea esi, [esp + 0x14]
call fcn.004042a0
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
call edi
test eax, eax
je 0x416da8
push esi
call edi
cmp eax, 1
je 0x416da8
push esi
call edi
cmp eax, 2
je 0x416da8
push esi
call edi
cmp eax, 4
je 0x416da8
push esi
call edi
cmp eax, 5
je 0x416da8
push esi
call edi
cmp eax, 6
je 0x416da8
push esi
call edi
cmp eax, 3
jne 0x416da8
push 0x46bc48
lea esi, [esp + 0x14]
call fcn.004042a0
mov ebx, dword [esp + 0x14]
mov edx, esi
push edx
lea eax, [esp + 0x44]
add ebx, 0x55a4
push eax
mov esi, ebx
call fcn.0041b690
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
add edi, 0x55cc
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call fcn.00414210
test al, al
je 0x416da4
mov eax, dword [esp + 0x14]
add eax, 0x10a0
push eax
push 0
push 0x468000
push str.auto
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402780
inc esi
push esi
lea edx, [esp + 0x1c]
push 0x467ad8
push edx
mov byte [esp + 0x474], 1
call fcn.00402c20
add esp, 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
lea eax, [esp + 0x14]
lea esi, [esp + 0x3c]
call fcn.0041b710
mov edi, eax
lea esi, [esp + 0x30]
mov byte [esp + 0x468], 2
call fcn.0041bbe0
mov ecx, esi
push ecx
push ebx
lea ebx, [esp + 0x50]
mov byte [esp + 0x470], 3
call fcn.0041b560
mov eax, esi
call fcn.00416900
lea eax, [esp + 0x38]
call fcn.00416900
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push edi
push 0x468000
push str.auto
call ebx
push esi
mov esi, dword [esp + 0x14]
push esi
push edi
push str.auto
call ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 0
call fcn.00402850
jmp 0x416da8
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x416df7
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x416dd1
cmp dword [esi - 8], 0
jl 0x416e11
xor edx, edx
mov dword [esi - 0xc], 0
mov word [esi], dx
jmp 0x416df7
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x1c]
inc word [esp + 0x54]
shr ebx, 1
mov dword [esp + 0x1c], ebx
jne 0x416bdf
jmp 0x416b92
push 0x80070057
call fcn.00401000
int3