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

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x46793d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x488540]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x146
push dword [ebx + 0x3178]
call esi
test eax, eax
je 0x412166
lea esp, [esp]
push 0
push 0
push 0x144
push dword [ebx + 0x3178]
call esi
push 0
push 0
push 0x146
push dword [ebx + 0x3178]
call esi
test eax, eax
jne 0x412140
call fcn.00431d31
mov ecx, eax
test ecx, ecx
je 0x4126c9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
call fcn.00431d31
mov ecx, eax
test ecx, ecx
je 0x4126d3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
push 0x200
lea eax, [ebp + 0x200]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0044e5d0
add esp, 0xc
mov dword [ebp - 0x20], 0
lea eax, [ebp + 0x200]
mov dword [ebp - 0x14], eax
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push dword [ebx + 0xd4]
mov dword [ebx + 0x41c], 0
push 2
push str.DriveLetter
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp word [ebp + 0x200], 0
mov dword [ebx + 0x408], eax
je 0x412529
lea eax, [ebp + 0x200]
jmp 0x412220
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov edi, eax
lea ecx, [edi + 2]
mov dword [ebp - 0x10], ecx
mov edi, edi
mov cx, word [edi]
add edi, 2
test cx, cx
jne 0x412260
sub edi, dword [ebp - 0x10]
sar edi, 1
cmp edx, 3
je 0x412288
cmp edx, 4
je 0x412288
cmp edx, 2
je 0x412288
cmp edx, 6
jne 0x412513
xor ecx, ecx
mov word [eax + 2], cx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x2c]
push str._C:
push eax
call fcn.00408d30
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x412510
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
push esi
call fcn.00408b90
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp edx, 2
ja 0x412398
jb 0x412310
test esi, esi
jae 0x412398
sub esi, dword [ebp - 0x34]
mov dword [ebp - 0x4c], esi
sbb edx, dword [ebp - 0x30]
mov eax, edx
mov dword [ebp - 0x54], 0
mov ecx, eax
mov dword [ebp - 0x64], 0
and eax, 0x7fffffff
mov dword [ebp - 0x10], str._s:__.0f_____.0f__.0fMiB_
mov dword [ebp - 0x48], eax
and ecx, 0x80000000
fild qword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
fild qword [ebp - 0x54]
shrd esi, edx, 0xa
fchs
faddp st(1)
shr edx, 0xa
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x58], ecx
fild qword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x64]
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fdiv qword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
shrd eax, ecx, 0xa
shr ecx, 0xa
jmp 0x412421
sub esi, dword [ebp - 0x34]
mov dword [ebp - 0x6c], esi
sbb edx, dword [ebp - 0x30]
mov eax, edx
mov dword [ebp - 0x74], 0
mov ecx, eax
mov dword [ebp - 0x84], 0
and eax, 0x7fffffff
mov dword [ebp - 0x10], str._s:__.0f_____.0f__.0fGiB_
mov dword [ebp - 0x68], eax
and ecx, 0x80000000
fild qword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
fild qword [ebp - 0x74]
shrd esi, edx, 0x14
fchs
faddp st(1)
shr edx, 0x14
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x7c], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x78], ecx
fild qword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fdiv qword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [ebp - 0x8c], eax
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 0x94], 0
and eax, 0x80000000
mov dword [ebp - 0x9c], esi
and ecx, 0x7fffffff
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ecx
mov eax, edx
fild qword [ebp - 0x8c]
and edx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x2c]
fild qword [ebp - 0x94]
mov dword [ebp - 0xa4], 0
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fld qword [0x47dc70]
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 0x10]
fild qword [ebp - 0x9c]
fild qword [ebp - 0xa4]
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fmul qword [ebp - 0x28]
fstp qword [esp + 8]
fmul qword [0x47dcc0]
fstp qword [esp]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
call fcn.00408d30
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
add esp, 0x24
push dword [esi - 0xc]
push esi
call fcn.00408b90
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx]
sub eax, 0x41
cmp dword [ebx + 0x408], eax
mov eax, dword [ebp - 0x20]
jne 0x4124f8
mov dword [ebx + 0x41c], eax
push esi
push 0
push 0x143
push dword [ebx + 0x3178]
inc eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
lea eax, [eax + edi*2]
add eax, 2
mov dword [ebp - 0x14], eax
cmp word [eax], 0
jne 0x412220
mov edi, dword [ebp - 0x38]
push 0
push ecx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], esp
call fcn.00431d31
mov ecx, eax
test ecx, ecx
je 0x4126dd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
push str.SELECT_FOLDER
mov byte [ebp - 4], 2
call fcn.00402800
test al, al
jne 0x41256f
mov ecx, dword [ebp - 0x10]
push 0xd
push str.SELECT_FOLDER
call fcn.004029e0
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esp
call fcn.00431d31
mov ecx, eax
test ecx, ecx
je 0x4126e7
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
push str.Menu
mov byte [ebp - 4], 4
call fcn.00402800
test al, al
jne 0x4125b4
mov ecx, dword [ebp - 0x10]
push 4
push str.Menu
call fcn.004029e0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00422780
push dword [eax]
push 0
push 0x143
push dword [ebx + 0x3178]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x44]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xd4]
lea eax, [ebp]
push 0x100
push eax
push 0x4753f0
push str.TargetPath
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp]
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412624
sub ecx, dword [ebp - 0x10]
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x404]
call fcn.004029e0
cmp dword [ebx + 0x408], 0x63
mov eax, dword [ebp - 0x20]
jne 0x412656
mov dword [ebx + 0x41c], eax
mov ecx, ebx
mov dword [ebx + 0x40c], eax
call fcn.00412700
push 0
mov ecx, ebx
call fcn.0043776a
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41268a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4126a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0044c3da
lea esp, [ebp + 0x404]
pop ebp
ret
push 0x80004005
call fcn.00402eb0
push 0x80004005
call fcn.00402eb0
push 0x80004005
call fcn.00402eb0
push 0x80004005
call fcn.00402eb0
int3