Function at 0x406b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52cdf6
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, str.click
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b76
test dx, dx
je 0x406b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b76
add eax, 4
add ecx, 4
test dx, dx
jne 0x406b50
xor eax, eax
jmp 0x406b7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406f06
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
call eax
mov eax, dword [eax]
mov ecx, str.closeBtn
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406bc6
test dx, dx
je 0x406bc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406bc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406ba0
xor eax, eax
jmp 0x406bcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
sete bl
cmp eax, ecx
je 0x406be5
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406bf5
cmp dword [esi + 0x9f8], 2
jmp 0x406efc
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
call edx
mov eax, dword [eax]
mov ecx, str.minBtn
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406c36
test dx, dx
je 0x406c32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406c36
add eax, 4
add ecx, 4
test dx, dx
jne 0x406c10
xor eax, eax
jmp 0x406c3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
sete bl
cmp eax, ecx
je 0x406c55
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406c74
mov edx, dword [esi - 0x1c]
push 0
push 0xf020
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406f06
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
call eax
push str.ChoseDirBtn
mov ecx, eax
call sym.zSignInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const
mov bl, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x406ca9
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406cba
lea ecx, [esi - 0x20]
call fcn.004070a0
jmp 0x406f06
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
call edx
push str.InstallBtn
mov ecx, eax
call sym.zSignInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const
mov bl, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x406cef
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406e7c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x589fc0
call fcn.00404320
mov eax, dword [esi + 0x9b8]
cdq
push edx
push eax
call fcn.0041c4e0
add esp, 0x24
test al, al
jne 0x406d9e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x536a30
xor edi, edi
call fcn.004043f0
add esi, 0x9bc
push esi
lea edx, [esp + 0xc8]
push 0x536f48
push edx
mov dword [esp + 0x188], edi
call fcn.004082b0
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x50], esp
push eax
mov edx, 0x536f40
mov byte [esp + 0x19c], 1
call fcn.00408390
add esp, 4
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax - 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x19c], 2
call fcn.004051d0
add esp, 0x3c
lea ecx, [esp + 0xa8]
call fcn.00401c30
jmp 0x406f06
mov edi, dword [0x589fd4]
mov ebx, dword [0x589fc0]
mov edx, ebx
cmp edi, 0x10
jae 0x406db6
mov edx, 0x589fc0
push 0
mov ecx, 0x536a2f
call fcn.00402130
add esp, 4
test eax, eax
jne 0x406dda
cmp dword [0x589fd0], eax
setne al
test eax, eax
je 0x406e63
mov eax, ebx
cmp edi, 0x10
jae 0x406de6
mov eax, 0x589fc0
push 0
push eax
call fcn.005045ec
add esp, 8
test eax, eax
je 0x406e2d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x589fc0
call fcn.00404320
call fcn.00419570
add esp, 0x1c
test al, al
jne 0x406e2d
push 0
push 0x536f68
push 0x536f70
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406f06
add esi, 0xffffffe0
call fcn.00407680
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x407420
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x9d8], eax
jmp 0x406f06
push 0
push 0x536f80
push 0x536f88
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406f06
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
call edx
push str.UseBtn
mov ecx, eax
call sym.zSignInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const
mov bl, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x406eb1
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406ebc
call fcn.00407c50
jmp 0x406efe
mov ecx, dword [edi + 0x108]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0xc4]
push eax
call edx
push str.ExitBtn
mov ecx, eax
call sym.zSignInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const
mov bl, al
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0xc8]
cmp eax, ecx
je 0x406efa
push eax
call fcn.0050567c
add esp, 4
test bl, bl
je 0x406f06
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 4