Function at 0x4158e0
Capabilities:
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c456
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x500], edi
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f8], ebx
jne 0x416264
mov esi, dword [ebp + 0xc]
cmp esi, 0x100
jne 0x415975
cmp word [ebp + 0x10], 0x1b
mov dword [edi + 0x54], 1
jne 0x415954
push 0
call fcn.004167d0
jmp 0x41595b
mov dword [edi + 0x54], 0
mov dword [ebx], 0
cmp dword [edi + 0x54], 0
je 0x415f27
mov eax, 1
jmp 0x416266
cmp esi, 1
jne 0x415996
push ecx
mov dword [edi + 0x54], esi
call fcn.004169b0
mov dword [ebx], eax
cmp dword [edi + 0x54], 0
je 0x415f27
mov eax, esi
jmp 0x416266
cmp esi, 0x112
jne 0x4159c1
cmp dword [ebp + 0x10], 0xf060
mov al, byte [edi + 0x183]
mov dword [edi + 0x54], 1
jne 0x415954
test al, al
je 0x41594b
push 1
call fcn.004167d0
jmp 0x41595b
cmp esi, 0x501
jne 0x415a29
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x415a05
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
push dword [edi + 4]
mov dword [edi + 0x7e8], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
test eax, eax
setne byte [ebp - 0x4f4]
push dword [ebp - 0x4f4]
call fcn.004167d0
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x10
jne 0x415a98
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x415a3f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x593480
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415a6c
push 0
push 6
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [edi + 0x700]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x718], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
mov dword [ebx], 1
jmp 0x4161d0
cmp esi, 0x505
jne 0x415aec
mov esi, dword [edi + 0x7e8]
test esi, esi
je 0x415a19
cmp dword [esi + 0x28], 1
lea eax, [esi + 0x28]
jne 0x415a19
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x415ad2
call fcn.004182f0
jmp 0x415ad5
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x509
jne 0x415b6a
cmp eax, 0x203
je 0x415b0d
cmp eax, 0x201
je 0x415b0d
cmp eax, 0x405
jne 0x415a19
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3a4
lea eax, [ebp - 0x4dc]
push 0
push eax
call fcn.004d9fe0
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x4e0], 0x3a8
mov dword [ebp - 0x4d8], 0
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x50a
jne 0x415c83
push 0x200
lea eax, [ebp - 0x338]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [edi + 0x7ee]
push eax
push str.__appidshowtip__upgnewver__s
lea eax, [ebp - 0x338]
push 0x100
push eax
call fcn.00412070
add esp, 0x10
mov byte [ebp - 0x4f8], 0
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4e4], 0xffffffff
call fcn.004cf1b0
push 0
push 0
push 0
push 0
push str.SGTool.exe
add eax, 0x870
lea ecx, [ebp - 0x138]
push eax
call fcn.00451610
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x338]
push eax
push ecx
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x138]
call fcn.00453c60
test al, al
je 0x415c2d
cmp dword [ebp - 0x4e4], 0
jne 0x415c2d
mov byte [edi + 0x7ec], 1
push 0
push 0
push 0x505
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x415c68
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x415c68
push eax
call fcn.004e1b56
add esp, 4
lea ecx, [ebp - 0x4fc]
call fcn.00450c20
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x1400
je 0x415a19
cmp esi, 0x1401
je 0x415a19
cmp esi, 0x1410
jne 0x415d1b
add dword [edi + 0x7e4], eax
mov eax, dword [edi + 0x7e0]
mov edx, dword [edi + 0x7e4]
test eax, eax
jle 0x415d0c
cmp dword [edi + 4], 0
je 0x415d0c
mov ecx, dword [edi + 0x7c8]
test ecx, ecx
je 0x415cfe
movd xmm0, eax
movd xmm1, edx
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x5af4f0]
addsd xmm0, qword [eax*8 + 0x5af650]
push dword [ebp + 0x10]
push edx
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
call fcn.0043a600
xor eax, eax
mov dword [ebx], eax
mov eax, 1
jmp 0x416266
or eax, 0xffffffff
mov dword [ebx], eax
mov eax, 1
jmp 0x416266
cmp esi, 0x2400
jne 0x415d43
movd xmm0, eax
mov eax, 1
cvtdq2pd xmm0, xmm0
movsd qword [edi + 0x6e8], xmm0
mov dword [ebx], 0
jmp 0x416266
cmp esi, 0x2411
jne 0x415dd2
movsd xmm2, qword [edi + 0x6e8]
ucomisd xmm2, qword [0x5af4b8]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
lahf
addsd xmm1, qword [edi + 0x6f0]
movsd qword [edi + 0x6f0], xmm1
test ah, 0x44
jp 0x415d8c
or eax, 0xffffffff
mov dword [ebx], eax
mov eax, 1
jmp 0x416266
cmp dword [edi + 4], 0
je 0x415d7d
mov ecx, dword [edi + 0x7c8]
test ecx, ecx
je 0x415dc4
movaps xmm0, xmm1
mulsd xmm1, qword [0x5af4f0]
mulsd xmm0, qword [0x5af4f8]
push dword [ebp + 0x10]
divsd xmm1, xmm2
cvttsd2si eax, xmm0
cvtpd2ps xmm1, xmm1
push eax
call fcn.0043a600
xor eax, eax
mov dword [ebx], eax
mov eax, 1
jmp 0x416266
cmp esi, 0x1411
jne 0x415e50
mov ecx, dword [ebp + 0x10]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mov dword [edi + 0x7e0], eax
mov dword [edi + 0x7e4], ecx
ucomisd xmm1, qword [0x5af4b8]
lahf
test ah, 0x44
jnp 0x415d7d
cmp dword [edi + 4], 0
je 0x415d7d
mov eax, dword [edi + 0x7c8]
test eax, eax
je 0x415dc4
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x5af650]
mov ecx, eax
mulsd xmm0, qword [0x5af4f0]
divsd xmm0, xmm1
cvtpd2ps xmm1, xmm0
call fcn.0043a4a0
xor eax, eax
mov dword [ebx], eax
mov eax, 1
jmp 0x416266
cmp esi, 0x1421
jne 0x415eba
lea esi, [edi + 0x700]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x718], 0
je 0x415e71
push esi
jmp 0x415ea4
push ecx
mov ecx, edi
call fcn.00416930
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x94]
call esi
push 5
push dword [edi + 0x98]
call esi
push 0
push dword [edi + 0xf4]
call esi
lea eax, [edi + 0x700]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x8012
jne 0x415f06
mov eax, dword [edi + 0xa08]
cmp eax, 0xffffffff
je 0x415a19
sub esp, 8
push eax
call fcn.0048b0f0
mov ecx, eax
call fcn.0048b950
sub esp, 8
push dword [edi + 0xa08]
call fcn.0048b0f0
mov ecx, eax
call fcn.0048bb90
mov dword [ebx], 0
mov eax, 1
jmp 0x416266
cmp esi, 0x522
jne 0x415f27
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xa08], eax
mov eax, 1
mov dword [ebx], 0
jmp 0x416266
cmp esi, 0x117
jne 0x41613d
cmp dword [ebp + 0x10], 0
jne 0x415f45
mov eax, 1
mov dword [ebx], eax
jmp 0x4161d0
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x4e8], eax
test eax, eax
jne 0x415f5e
mov eax, 1
mov dword [ebx], eax
jmp 0x4161d0
mov edx, dword [edi + 0x48]
mov dword [ebp - 0x4ec], 0xffff
mov dword [ebp - 0x4f0], edx
movzx ecx, word [edx]
cmp cx, word [ebp - 0x4ec]
je 0x416134
mov esi, dword [ebp + 0x10]
mov ebx, 0x2c
mov edi, 0xbfff
nop
test byte [edx + 2], 1
je 0x416102
movzx ecx, cx
mov dword [ebp - 0x4e4], ecx
mov ecx, 0x4000
test word [eax], cx
je 0x415fc1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [ebp - 0x4e8]
and word [eax], di
push 0x30
lea eax, [ebp - 0x530]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x530], 0x30
call fcn.00414f20
mov ecx, dword [ebp - 0x530]
test al, al
mov eax, dword [ebp - 0x4e8]
mov edx, dword [ebp - 0x4e4]
cmovne ecx, ebx
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x52c], 1
movzx ecx, word [eax]
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x520], edx
test ecx, 0x100
je 0x41602a
or eax, 3
mov dword [ebp - 0x524], eax
test ecx, 0x200
je 0x41603b
or eax, 8
mov dword [ebp - 0x524], eax
test ecx, 0x1000
je 0x41604e
or eax, 0x1000
mov dword [ebp - 0x524], eax
test ecx, 0x2000
je 0x4160e5
push 0x30
lea eax, [ebp - 0x560]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x560], 0x30
call fcn.00414f20
mov ecx, dword [ebp - 0x560]
test al, al
mov eax, dword [ebp - 0x4e4]
cmovne ecx, ebx
mov dword [ebp - 0x55c], 0x10
mov dword [ebp - 0x560], ecx
lea ecx, [ebp - 0x560]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x550], eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov edx, dword [ebp - 0x4e4]
test eax, eax
je 0x4160e5
mov eax, dword [ebp - 0x558]
or dword [ebp - 0x52c], 0x10
and eax, 0xfffff7fb
or dword [ebp - 0x528], eax
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x50c], eax
lea eax, [ebp - 0x530]
push eax
push 0
push edx
push esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [ebp - 0x4e8]
mov edx, dword [ebp - 0x4f0]
movzx ecx, word [edx + 4]
add edx, 4
add eax, 8
mov dword [ebp - 0x4f0], edx
mov dword [ebp - 0x4e8], eax
cmp cx, word [ebp - 0x4ec]
jne 0x415f90
mov edi, dword [ebp - 0x500]
mov ebx, dword [ebp - 0x4f8]
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx], eax
jmp 0x4161d0
cmp esi, 0x111
jne 0x4161d0
xor ecx, ecx
cmp byte [edi + 0x52], cl
je 0x4161bd
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x10
cmp eax, 1
jne 0x4161bd
mov ecx, dword [edi + 0x48]
movzx eax, dx
mov edx, dword [edi + 0x4c]
mov dword [ebp - 0x4f8], eax
test edx, edx
je 0x4161a2
movzx eax, word [ecx]
mov dword [ebp - 0x4ec], 0xffff
cmp ax, word [ebp - 0x4ec]
je 0x4161a2
cmp word [ebp - 0x4f8], ax
je 0x4161b8
movzx eax, word [ecx + 4]
add ecx, 4
add edx, 8
cmp ax, word [ebp - 0x4ec]
jne 0x416186
xor eax, eax
test eax, 0x100
mov ecx, 0
mov eax, 1
cmovne ecx, eax
jmp 0x4161c2
movzx eax, word [edx]
jmp 0x4161a4
mov eax, 1
mov dword [ebx], 0
test ecx, ecx
jne 0x416266
cmp esi, 5
jne 0x4161ec
cmp dword [ebp + 0x10], 1
je 0x4161e4
push 1
mov ecx, edi
call fcn.00418c80
mov dword [ebx], 1
jmp 0x416245
cmp esi, 0x4e
jne 0x416245
mov ecx, dword [ebp - 0x4f4]
mov eax, dword [ecx + 8]
cmp eax, 0xfffffcbe
jne 0x416215
push 0
mov ecx, edi
call fcn.00418c80
mov dword [ebx], 0
lea eax, [esi - 0x4d]
jmp 0x416266
cmp eax, 0xfffffcb7
jne 0x416245
lea eax, [ebp - 0x4f0]
mov dword [ebp - 0x4f0], 1
push eax
push ecx
push ecx
mov ecx, edi
call fcn.00418550
cmp dword [ebp - 0x4f0], 0
mov dword [ebx], eax
jne 0x41596b
push 0
push ebx
push dword [ebp - 0x4f4]
mov ecx, edi
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.00418330
test eax, eax
jne 0x41596b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0x18