Function at 0x41f430
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e44e8
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
xor edi, edi
push edi
push ebx
mov esi, ecx
push eax
call fcn.0041e090
mov ebp, eax
mov dword [esi + 0xdc], edi
mov dword [esi + 0xa0], edi
cmp ebp, edi
mov edi, dword [esp + 0x40]
je 0x41f4a5
cmp dword [ebp + 0x38], 0xf
jne 0x41f48c
or ecx, 0xffffffff
or eax, 0xffffffff
push edi
push ecx
push eax
mov ecx, ebp
call fcn.00429ed0
cmp dword [ebp + 0x38], 0x16
jne 0x41f4a5
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x41f4a5
mov edx, dword [esp + 0x44]
push ebx
push edx
push edi
call fcn.0040d550
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x41f4c2
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x41f4c2
mov eax, dword [esp + 0x44]
push ebx
push eax
push edi
call fcn.0040d550
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x41f4e0
cmp dword [ecx + 0x38], 0xf
jne 0x41f4e0
or edx, 0xffffffff
or eax, 0xffffffff
push edi
push edx
push eax
call fcn.00429ed0
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x41f50a
mov dword [esi + 0x94], 0
mov ecx, dword [edi + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x8c], 0
mov eax, dword [esi + 0xa8]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
test eax, eax
mov dword [esi + 0xd8], 0
je 0x41f5bf
push 0
push 0
push 1
push eax
push edi
mov ecx, esi
call fcn.00420840
mov edx, dword [esi + 0xa8]
add edx, 0xa4
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x41f5a3
cmp ebp, dword [esi + 0xb8]
jne 0x41f5a3
push 0
push 0
push 0
push eax
push edi
mov ecx, esi
call fcn.00420840
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa8]
add eax, 0xa4
add ecx, 0xa4
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
push 2
lea eax, [esp + 0x14]
push 2
push eax
call ebx
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0xac]
test eax, eax
je 0x41f61a
push 0
push 0
push 1
push eax
push edi
mov ecx, esi
call fcn.00420840
mov eax, dword [esi + 0xac]
push 2
add eax, 0xa4
push 2
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x28], edx
call ebx
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
cmp ebp, eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb8], eax
je 0x41f7bd
push 1
mov ecx, ebp
call fcn.004289d0
mov dword [esi + 0xb8], 0
mov eax, dword [ebp + 0x38]
cmp eax, 5
je 0x41f65b
cmp eax, 1
je 0x41f65b
cmp eax, 0xb
jne 0x41f698
lea eax, [ebp + 0xa4]
push 2
push 2
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], edx
call ebx
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x188]
test eax, eax
jle 0x41f7a9
cmp eax, 6
jne 0x41f6d0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41f6c2
mov eax, dword [esp + 0x50]
mov dword [eax], 6
jmp 0x41f7bb
push 0
push 0
push str.Unable_to_exit
call fcn.004dd168
mov eax, dword [ebp + 0x188]
mov edx, dword [esp + 0x50]
cmp eax, 5
jne 0x41f73a
mov dword [edx], 5
mov eax, dword [ebp + 0x190]
mov edi, str.NEW_WINDOW
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x41f714
test cl, cl
je 0x41f710
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x41f714
add eax, 2
add edi, 2
test cl, cl
jne 0x41f6f0
xor eax, eax
jmp 0x41f719
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f73a
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41f7bb
lea edx, [ebp + 0x18c]
push edx
call fcn.004d8659
jmp 0x41f7bb
mov eax, dword [ebp + 0x188]
cmp eax, 6
jle 0x41f75d
mov ecx, dword [esp + 0x54]
mov dword [edx], eax
test ecx, ecx
je 0x41f7bb
lea eax, [ebp + 0x18c]
push eax
call fcn.004d8659
jmp 0x41f7bb
cmp eax, 0xd
jl 0x41f76b
cmp eax, 0x10
jg 0x41f76b
mov dword [edx], eax
jmp 0x41f71d
push eax
push ecx
lea eax, [ebp + 0x190]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004d8295
push ecx
lea edx, [ebp + 0x18c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov dword [esp + 0x48], 0
call fcn.004d8295
mov ecx, esi
mov dword [esp + 0x44], 0xffffffff
call fcn.0041f840
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41f7bb
push 0x52c320
call fcn.004d86a9
mov eax, ebp
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x18