Function at 0x4506f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e5710
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push str.label_version
call dword [0x511194]
mov esi, eax
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 0
test byte [0x5431e4], 1
jne 0x45076b
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
cmp byte [0x5431c0], 0
je 0x4507b1
test byte [0x5431e4], 1
jne 0x450796
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
cmp dword [0x5430f4], 8
mov eax, dword [0x5430e0]
jae 0x4507a9
mov eax, 0x5430e0
push eax
push 0x50d8cc
jmp 0x4507bb
push 0x50a8b0
push str._s
lea edi, [esp + 0x18]
call fcn.00408a70
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
add esp, 8
push ecx
mov ecx, esi
call edx
push str.btn_reinstall
mov ecx, ebx
call dword [0x511194]
xor ecx, ecx
mov edi, eax
push ecx
mov eax, 0x4509d0
push eax
push ebx
lea esi, [esp + 0x20]
call fcn.00450da0
add esp, 0xc
push eax
lea ecx, [edi + 0x34]
mov byte [esp + 0x3c], 1
call dword [0x511004]
mov ecx, esi
mov byte [esp + 0x38], 0
call dword [0x511018]
push str.btn_min1
mov ecx, ebx
call dword [0x511194]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x45089e
test byte [0x54366c], 1
jne 0x45086c
or dword [0x54366c], 1
push 0x4ec610
mov dword [0x543650], esi
mov dword [0x543654], esi
mov dword [0x543658], esi
mov dword [0x54365c], esi
mov dword [0x543660], esi
mov dword [0x543668], esi
call fcn.004b3d86
add esp, 4
mov edx, dword [0x543654]
mov eax, 0x44b7d0
lea esi, [esp + 0x14]
call fcn.00450df0
push eax
lea ecx, [edi + 0x34]
mov byte [esp + 0x3c], 2
call dword [0x511004]
mov ecx, esi
mov byte [esp + 0x38], 0
call dword [0x511018]
xor esi, esi
push str.btn_close1
mov ecx, ebx
call dword [0x511194]
mov edi, eax
cmp edi, esi
je 0x450924
test byte [0x54366c], 1
jne 0x4508f2
or dword [0x54366c], 1
push 0x4ec610
mov dword [0x543650], esi
mov dword [0x543654], esi
mov dword [0x543658], esi
mov dword [0x54365c], esi
mov dword [0x543660], esi
mov dword [0x543668], esi
call fcn.004b3d86
add esp, 4
mov edx, dword [0x543654]
mov eax, 0x44b810
lea esi, [esp + 0x14]
call fcn.00450df0
push eax
lea ecx, [edi + 0x34]
mov byte [esp + 0x3c], 3
call dword [0x511004]
mov ecx, esi
mov byte [esp + 0x38], 0
call dword [0x511018]
xor esi, esi
test byte [0x54366c], 1
jne 0x450965
or dword [0x54366c], 1
push 0x4ec610
mov dword [0x543650], esi
mov dword [0x543654], esi
mov dword [0x543658], esi
mov dword [0x54365c], esi
mov dword [0x543660], esi
mov dword [0x543668], esi
call fcn.004b3d86
add esp, 4
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [0x543664], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret