Function at 0x4039aa
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1f0
mov eax, dword [0x40a010]
add eax, 9
sub esp, 8
push eax
push str.GamersGate_Downloader__1_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 0x30], eax
sub esp, 4
push dword [ebp - 0x30]
push 0
push 0
call sub.KERNEL32.dll_CreateMutexA
add esp, 4
mov dword [ebp - 0x2c], eax
sub esp, 0xc
push dword [ebp - 0x30]
call sym._free
add esp, 0x10
cmp dword [ebp - 0x2c], 0
je 0x403a33
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x403a33
sub esp, 0xc
push dword [ebp - 0x2c]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
sub esp, 0xc
push str.Installation_of_this_game_is_already_in_progress_on_this_computer.
call sym._show_info
add esp, 0x10
mov dword [ebp - 0x1f4], 0
jmp 0x4040a6
mov dword [0x416d30], 0
mov eax, dword [ebp + 8]
mov dword [0x416d20], eax
mov dword [0x416da0], 0
mov dword [ebp - 0x1e8], 0x154
push 0
lea eax, [ebp - 0x1e8]
push eax
push 0x154
push 0x29
call sub.USER32.dll_SystemParametersInfoA
sub esp, 8
push eax
push str.SystemParametersInfo
call sym._system_assert_
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x1e8]
add eax, 0x118
push eax
call sub.GDI32.dll_CreateFontIndirectA
add esp, 0xc
mov dword [0x416d90], eax
mov eax, dword [0x416d90]
sub esp, 8
push eax
push str.CreateFontIndirect
call sym._system_assert_
add esp, 0x10
sub esp, 0xc
push 0
call sub.USER32.dll_GetDC
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub esp, 8
push eax
push str.GetDC
call sym._system_assert_
add esp, 0x10
mov eax, dword [0x416d90]
sub esp, 8
push eax
push dword [ebp - 0x28]
call sub.GDI32.dll_SelectObject
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub esp, 8
push eax
push str.SelectObject
call sym._system_assert_
add esp, 0x10
sub esp, 8
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x28]
call sub.GDI32.dll_GetTextMetricsA
add esp, 8
sub esp, 8
push eax
push str.GetTextMetrics
call sym._system_assert_
add esp, 0x10
sub esp, 8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.GDI32.dll_SelectObject
add esp, 8
sub esp, 8
push dword [ebp - 0x28]
push 0
call sub.USER32.dll_ReleaseDC
add esp, 8
mov eax, dword [ebp - 0x94]
mov dword [0x416d70], eax
mov eax, dword [ebp - 0xd0]
push eax
fild dword [esp]
lea esp, [esp + 4]
fld qword [0x40cca0]
fmulp st(1)
fnstcw word [ebp - 0x1ea]
mov ax, word [ebp - 0x1ea]
mov ah, 0xc
mov word [ebp - 0x1ec], ax
fldcw word [ebp - 0x1ec]
fistp dword [ebp - 0x1f0]
fldcw word [ebp - 0x1ea]
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0x2bc
sub esp, 0xc
lea eax, [ebp - 0x1e8]
add eax, 0x118
push eax
call sub.GDI32.dll_CreateFontIndirectA
add esp, 0xc
mov dword [0x416d40], eax
mov eax, dword [0x416d40]
sub esp, 8
push eax
push str.CreateFontIndirect
call sym._system_assert_
add esp, 0x10
sub esp, 0xc
push 0
call sub.USER32.dll_GetDC
add esp, 0xc
mov dword [0x416e00], eax
mov eax, dword [0x416e00]
sub esp, 8
push eax
push str.GetDC
call sym._system_assert_
add esp, 0x10
mov eax, dword [0x416e00]
sub esp, 4
push 0x3a
push 0x1e0
push eax
call sub.GDI32.dll_CreateCompatibleBitmap
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [0x416e00]
sub esp, 8
push eax
push 0
call sub.USER32.dll_ReleaseDC
add esp, 8
sub esp, 0xc
push 0
call sub.GDI32.dll_CreateCompatibleDC
add esp, 0xc
mov dword [0x416e00], eax
mov eax, dword [0x416e00]
sub esp, 8
push eax
push str.CreateCompatibleDC
call sym._system_assert_
add esp, 0x10
mov eax, dword [0x416e00]
sub esp, 8
push dword [ebp - 0x20]
push eax
call sub.GDI32.dll_SelectObject
add esp, 8
sub esp, 8
push eax
push str.SelectObject
call sym._system_assert_
add esp, 0x10
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x1e0
mov dword [ebp - 0x1c], 0
jmp 0x403d66
mov edx, dword [ebp - 0x1c]
mov eax, edx
add eax, eax
add eax, edx
mov al, byte [eax + 0x40ca00]
mov ecx, 0
mov cl, al
mov edx, dword [ebp - 0x1c]
mov eax, edx
add eax, eax
add eax, edx
inc eax
mov al, byte [eax + 0x40ca00]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, edx
add eax, eax
add eax, edx
add eax, 2
mov al, byte [eax + 0x40ca00]
and eax, 0xff
shl eax, 0x10
or eax, ecx
sub esp, 0xc
push eax
call sub.GDI32.dll_CreateSolidBrush
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub esp, 8
push eax
push str.CreateSolidBrush
call sym._system_assert_
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x50], eax
mov edx, dword [0x416e00]
sub esp, 4
push dword [ebp - 0x10]
lea eax, [ebp - 0x5c]
push eax
push edx
call sub.USER32.dll_FillRect
add esp, 4
mov eax, dword [ebp - 0x1c]
add eax, 0x1d
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
mov dword [ebp - 0x50], eax
mov edx, dword [0x416e00]
sub esp, 4
push dword [ebp - 0x10]
lea eax, [ebp - 0x5c]
push eax
push edx
call sub.USER32.dll_FillRect
add esp, 4
sub esp, 0xc
push dword [ebp - 0x10]
call sub.GDI32.dll_DeleteObject
add esp, 0xc
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x1c
jle 0x403c95
mov dword [ebp - 0x18], 0
jmp 0x403e47
mov dword [ebp - 0x14], 0
jmp 0x403e3a
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
lea edx, [eax*8]
add eax, edx
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
mov al, byte [eax + 0x40b6e0]
mov ecx, 0
mov cl, al
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
lea edx, [eax*8]
add eax, edx
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
inc eax
mov al, byte [eax + 0x40b6e0]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
lea edx, [eax*8]
add eax, edx
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
add eax, 2
mov al, byte [eax + 0x40b6e0]
and eax, 0xff
shl eax, 0x10
or eax, ecx
mov edx, dword [ebp - 0x14]
add edx, 9
mov ecx, dword [ebp - 0x18]
add ecx, 0xba
mov ebx, dword [0x416e00]
push eax
push edx
push ecx
push ebx
call sub.GDI32.dll_SetPixel
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jle 0x403d88
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x6b
jle 0x403d7c
mov dword [ebp - 0x18], 0
jmp 0x403f13
mov dword [ebp - 0x14], 0
jmp 0x403f06
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 3
sub eax, edx
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
mov al, byte [eax + str.7S__39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_399_7S__8_BdpCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeq_8__06AcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAco_06]
mov ecx, 0
mov cl, al
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 3
sub eax, edx
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
inc eax
mov al, byte [eax + str.7S__39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_399_7S__8_BdpCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeq_8__06AcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAco_06]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 3
sub eax, edx
mov edx, eax
add edx, dword [ebp - 0x18]
mov eax, edx
add eax, eax
add eax, edx
add eax, 2
mov al, byte [eax + str.7S__39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_39_399_7S__8_BdpCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeqCeq_8__06AcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAcoAco_06]
and eax, 0xff
shl eax, 0x10
or eax, ecx
mov edx, dword [ebp - 0x14]
add edx, 3
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c3
mov ebx, dword [0x416e00]
push eax
push edx
push ecx
push ebx
call sub.GDI32.dll_SetPixel
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x16
jle 0x403e69
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x16
jle 0x403e5d
mov dword [ebp - 0x94], 0x20
mov eax, sym._wnd_proc
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov eax, dword [0x416d20]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
sub esp, 8
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
add esp, 8
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x40cc54
sub esp, 0xc
lea eax, [ebp - 0x94]
push eax
call sub.USER32.dll_RegisterClassA
add esp, 0xc
and eax, 0xffff
sub esp, 8
push eax
push str.RegisterClass
call sym._system_assert_
add esp, 0x10
mov ebx, dword [0x416d20]
sub esp, 0xc
push 0x11
call sub.USER32.dll_GetSystemMetrics
add esp, 0xc
mov edx, eax
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
lea esi, [eax - 0x60]
sub esp, 0xc
push 0x10
call sub.USER32.dll_GetSystemMetrics
add esp, 0xc
mov edx, eax
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
sub eax, 0xf0
push 0
push ebx
push 0
push 0
push 0xc0
push 0x1e0
push esi
push eax
push 0x6ca0000
push 0x40cc54
push 0x40cc54
push 0x40100
call sub.USER32.dll_CreateWindowExA
mov dword [0x416da0], eax
mov eax, dword [0x416da0]
sub esp, 8
push eax
push 0x40cc78
call sym._system_assert_
add esp, 0x10
call sym._sign_in_init
mov eax, dword [0x416da0]
sub esp, 8
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 8
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40409c
cmp dword [ebp - 0xc], 0
setg al
and eax, 0xff
sub esp, 8
push eax
push str.GetMessage
call sym._system_assert_
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
add esp, 0xc
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
add esp, 0xc
jmp 0x404047
mov dword [ebp - 0x1f4], 0
mov eax, dword [ebp - 0x1f4]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10