Function at 0x41af30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451c10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x463070]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x46b44c]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [eax - 8], esi
jne 0x41afc1
mov ecx, str.IDS_PRODUCT_NAME
lea edi, [esp + 0x14]
call fcn.00403080
mov edi, eax
mov eax, 0x46b44c
mov dword [esp + 0x28], esi
call fcn.00408d10
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41afc1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41afc1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov eax, dword [ebx + 0x11c]
cmp eax, 0x5002
jne 0x41afda
mov esi, ebx
call fcn.0041aae0
jmp 0x41b1c0
cmp eax, 0x5000
jne 0x41b23d
mov ecx, str.IDS_PRODUCT_NAME
lea edi, [esp + 0x14]
call fcn.00403080
mov dword [esp + 0x28], 1
mov edx, dword [eax]
push edx
lea eax, [ebx + 0x120]
push 0x93
push eax
call fcn.0041bff0
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
add esp, 0xc
cmp ecx, 0x4674bc
je 0x41b047
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b047
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edx, dword [ebx + 0x314]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call edi
mov eax, dword [ebx + 0x314]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xf1
push eax
call esi
mov ecx, dword [ebx + 0x314]
push 1
push 0x12
push 0xd7
push 0xb4
push 0xda
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
call fcn.0041f5b0
test eax, eax
jne 0x41b0e4
mov edx, dword [ebx + 0x3e0]
push 5
push edx
call edi
mov eax, dword [ebx + 0x3e0]
push 0
push 1
push 0xf1
push eax
call esi
mov ecx, dword [ebx + 0x3e0]
push 1
push 0x12
push 0x14f
push 0xc8
push 0xda
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov dword [ebx + 0x5c4], 1
jmp 0x41b199
call fcn.0041f1a0
test eax, eax
jne 0x41b161
push 0xb3
lea eax, [esp + 0x18]
call fcn.0041bfd0
mov eax, dword [eax]
add esp, 4
lea esi, [ebx + 0x3a0]
call fcn.004173d0
lea esi, [esp + 0x14]
call fcn.004062b0
mov edx, dword [ebx + 0x3e0]
push 5
push edx
call edi
mov eax, dword [ebx + 0x3e0]
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x3e0]
push 1
push 0x12
push 0x14f
push 0xc8
push 0xda
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov dword [ebx + 0x5c4], 0xb3
jmp 0x41b199
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x5c4], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41b199
mov dword [esp + 0x18], 1
call fcn.0041a190
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov eax, dword [ebx + 0x4ac]
push 1
push 0x2a
push 0x86
push 0xe6
push 0xec
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x18], 0
jne 0x41b22a
mov edx, dword [0x4674cc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], 7
cmp dword [ebx + 0x11c], 0x5000
lea edx, [esp + 0x14]
mov ecx, 0xa1
je 0x41b1ec
mov ecx, 0xa0
call fcn.004099d0
mov ebx, dword [ebx + 0x7c]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3c]
push 0x1d4c0
push esi
push 1
push ebx
call ecx
lea edx, [esi - 0xc]
cmp edx, 0x4674bc
je 0x41b22a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b22a
push esi
call fcn.0043406a
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x5001
jne 0x41b3ec
mov ecx, str.IDS_ERROR_DOWNFAIL_PROMPT
lea edi, [esp + 0x14]
call fcn.00403080
lea esi, [ebx + 0x124]
mov edi, eax
mov eax, esi
mov dword [esp + 0x28], 2
call fcn.00408d10
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41b2a2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b2a2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edi, dword [esi]
lea esi, [ebx + 0xac]
push esi
call fcn.00418240
call fcn.00418280
mov edx, dword [ebx + 0xec]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, str.IDS_DOWNLOAD_ERR
lea edi, [esp + 0x14]
call fcn.00403080
lea esi, [ebx + 0x5c8]
mov edi, eax
mov eax, esi
mov dword [esp + 0x28], 3
call fcn.00408d10
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41b31e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b31e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edi, dword [esi]
lea esi, [ebx + 0x5cc]
push esi
call fcn.00418240
mov edx, 1
mov eax, esi
call fcn.004123c0
call fcn.00418280
mov edx, dword [ebx + 0x60c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x4ac]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 0x1e
push 0x8a
push 0xb4
push 0x77
push eax
call esi
mov ecx, dword [ebx + 0x60c]
push 1
push 0x14
push 0xe4
push 0x3c
push 0x6e
push ecx
call esi
mov edx, dword [ebx + 0xec]
push 1
push 0x1e
push 0xe4
push 0x55
push 0x6e
push edx
call esi
mov ecx, str.IDS_BUTTON_REDOWN
lea edi, [esp + 0x14]
call fcn.00403080
mov eax, dword [eax]
lea esi, [ebx + 0x46c]
call fcn.004173d0
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41b1c0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b1c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
jmp 0x41b1c0
mov ecx, str.IDS_PRODUCT_NAME
lea edi, [esp + 0x18]
call fcn.00403080
mov esi, eax
mov ecx, str.IDS_ERROR_INSTFAIL
lea edi, [esp + 0x14]
mov dword [esp + 0x28], 4
call fcn.00403080
mov byte [esp + 0x28], 5
mov edx, dword [esi]
mov eax, dword [eax]
push edx
lea edi, [ebx + 0x120]
push eax
mov edx, edi
call fcn.0040e170
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
add esp, 8
cmp ecx, 0x4674bc
je 0x41b45a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b45a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x4674bc
je 0x41b48f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b48f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edi, dword [edi]
lea esi, [ebx + 0xac]
push esi
call fcn.00418240
call fcn.00418280
mov eax, dword [ebx + 0xec]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, str.IDS_INSTALL_ERR
lea edi, [esp + 0x18]
call fcn.00403080
lea esi, [ebx + 0x5c8]
mov edi, eax
mov eax, esi
mov dword [esp + 0x28], 6
call fcn.00408d10
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41b50b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b50b
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
mov edi, dword [esi]
lea esi, [ebx + 0x5cc]
push esi
call fcn.00418240
mov edx, 1
mov eax, esi
call fcn.004123c0
call fcn.00418280
mov edx, dword [ebx + 0x60c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x4ac]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 0x1e
push 0x8a
push 0xb4
push 0x77
push eax
call esi
mov ecx, dword [ebx + 0x60c]
push 1
push 0x14
push 0xe4
push 0x3c
push 0x6e
push ecx
call esi
mov edx, dword [ebx + 0xec]
push 1
push 0x1e
push 0xe4
push 0x55
push 0x6e
push edx
call esi
mov ecx, str.IDS_BUTTON_REDOWN
lea edi, [esp + 0x18]
call fcn.00403080
mov eax, dword [eax]
lea esi, [ebx + 0x46c]
call fcn.004173d0
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x4674bc
je 0x41b1c0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b1c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0043406a
add esp, 4
jmp 0x41b1c0