Function at 0x4121a0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44529b
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
lea eax, [ecx + 4]
push 0
mov ecx, eax
mov dword [ebp - 0x428], eax
call fcn.0040fb80
mov esi, dword [0x45d460]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
call edi
push eax
push 0xb
call edi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push esi
call edi
push eax
mov eax, dword [ebp - 0x428]
push 1
push 0x80
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [0x45d460]
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
push esi
call edi
mov esi, dword [ebp - 0x428]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x80
push dword [esi]
call edi
push 2
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push 0x3ff
push dword [esi]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x3ff
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ec
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [0x45b014]
mov dword [ebp - 0x424], eax
push 0x27de
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.004120a0
mov eax, dword [ebp - 0x424]
xorps xmm0, xmm0
movups xmmword [ebp - 0x454], xmm0
mov dword [ebp - 0x44c], eax
movups xmmword [ebp - 0x444], xmm0
mov dword [ebp - 0x454], 2
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x458], 7
mov dword [ebp - 0x450], 0x78
lea eax, [ebp - 0x458]
push eax
push 0
push 0x1061
push esi
call edi
push 0x27df
lea ecx, [ebp - 0x424]
call fcn.004120a0
mov eax, dword [ebp - 0x424]
xorps xmm0, xmm0
movups xmmword [ebp - 0x454], xmm0
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x458]
push eax
push 1
push 0x1061
push esi
movups xmmword [ebp - 0x444], xmm0
mov dword [ebp - 0x454], 2
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x458], 7
mov dword [ebp - 0x450], 0x78
call edi
push 0x87
lea ecx, [ebp - 0x424]
call fcn.004120a0
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x458]
push eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x458], 5
push 0x1061
movups xmmword [ebp - 0x454], xmm0
push esi
movups xmmword [ebp - 0x444], xmm0
mov dword [ebp - 0x44c], edi
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x454], 2
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffe
push 2
push 0x101e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x494]
mov dword [ebp - 0x494], 1
push eax
push 0
push 0x1060
push esi
mov dword [ebp - 0x490], 2
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 8
cmp eax, ecx
je 0x41243c
push ecx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x20
push 0
push 0x1036
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x42c]
push dword [ecx + 0x2c]
mov eax, dword [ecx]
push dword [ecx + 0x28]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x428]
push 0x3ff
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41251d
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00424380
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x447a98
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00424380
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00429a76
push str.KZMount.ini
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00429a01
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
push 1
push str.DiskReadOnly
push 0x447af4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
mov eax, dword [ebp - 0x428]
push 0x3ff
push dword [eax]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x3c
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.00424380
add esp, 0xc
mov dword [ebp - 0x45c], 3
lea eax, [ebp - 0x468]
mov dword [ebp - 0x458], 3
push eax
push 0
push 0x102b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [edi - 0xc]
cmp eax, dword [0x45b010]
je 0x41259c
add edi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41259c
push edi
call fcn.00420517
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret 0xc