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

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x4665cd
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x486540]
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 + 0x3108]
call esi
test eax, eax
je 0x411da6
lea esp, [esp]
push 0
push 0
push 0x144
push dword [ebx + 0x3108]
call esi
push 0
push 0
push 0x146
push dword [ebx + 0x3108]
call esi
test eax, eax
jne 0x411d80
call fcn.00430fae
mov ecx, eax
test ecx, ecx
je 0x4122e9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
call fcn.00430fae
mov ecx, eax
test ecx, ecx
je 0x4122f3
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.0044d4e0
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 + 0x414], 0
push 2
push str.DriveLetter
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp word [ebp + 0x200], 0
mov dword [ebx + 0x400], eax
je 0x412149
lea eax, [ebp + 0x200]
xor ecx, ecx
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
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
jmp 0x411e80
mov cx, word [edi]
add edi, 2
test cx, cx
jne 0x411e80
sub edi, dword [ebp - 0x10]
sar edi, 1
cmp edx, 3
je 0x411ea8
cmp edx, 4
je 0x411ea8
cmp edx, 2
je 0x411ea8
cmp edx, 6
jne 0x412133
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.00408310
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 0x412130
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
push esi
call fcn.004081a0
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
cmp edx, 2
ja 0x411fb8
jb 0x411f30
test esi, esi
jae 0x411fb8
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 0x412041
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 [0x47ba98]
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 [0x47bae0]
fstp qword [esp]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
call fcn.00408310
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
add esp, 0x24
push dword [esi - 0xc]
push esi
call fcn.004081a0
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx]
sub eax, 0x41
cmp dword [ebx + 0x400], eax
mov eax, dword [ebp - 0x20]
jne 0x412118
mov dword [ebx + 0x414], eax
push esi
push 0
push 0x143
push dword [ebx + 0x3108]
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 0x411e53
mov edi, dword [ebp - 0x38]
push 0
push ecx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], esp
call fcn.00430fae
mov ecx, eax
test ecx, ecx
je 0x4122fd
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.00402660
test al, al
jne 0x41218f
mov ecx, dword [ebp - 0x10]
push 0xd
push str.SELECT_FOLDER
call fcn.00402840
push ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esp
call fcn.00430fae
mov ecx, eax
test ecx, ecx
je 0x412307
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.00402660
test al, al
jne 0x4121d4
mov ecx, dword [ebp - 0x10]
push 4
push str.Menu
call fcn.00402840
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004211b0
push dword [eax]
push 0
push 0x143
push dword [ebx + 0x3108]
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 0x412217
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 0x4733b8
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 0x412244
sub ecx, dword [ebp - 0x10]
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x3fc]
call fcn.00402840
cmp dword [ebx + 0x400], 0x63
mov eax, dword [ebp - 0x20]
jne 0x412276
mov dword [ebx + 0x414], eax
mov ecx, ebx
mov dword [ebx + 0x404], eax
call fcn.00412320
push 0
mov ecx, ebx
call fcn.004368fc
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 0x4122aa
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 0x4122c6
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.0044b35e
lea esp, [ebp + 0x404]
pop ebp
ret
push 0x80004005
call fcn.00402d40
push 0x80004005
call fcn.00402d40
push 0x80004005
call fcn.00402d40
push 0x80004005
call fcn.00402d40
int3