Function at 0x476af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511a06
mov eax, dword fs:[0]
push eax
sub esp, 0x804
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7e0], ecx
mov edx, 0xfc
lea ecx, [ebp - 0x7dc]
call fcn.004496b0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476b60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xf8]
call fcn.00403f80
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov ecx, dword [ebp - 0x7dc]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x476baf
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov edx, 0xf8
lea ecx, [ebp - 0x7dc]
call fcn.004496b0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476be0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00403f80
mov byte [ebp - 4], 6
mov eax, edi
mov ecx, dword [ebp - 0x7dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x476c29
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov edx, 0xf9
lea ecx, [ebp - 0x7dc]
call fcn.004496b0
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476c60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403f80
mov byte [ebp - 4], 0xa
mov eax, edi
mov ecx, dword [ebp - 0x7dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x476ca9
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov edx, 0xfb
lea ecx, [ebp - 0x7dc]
call fcn.004496b0
mov byte [ebp - 4], 0xc
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476ce0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403f80
mov byte [ebp - 4], 0xe
mov eax, edi
mov ecx, dword [ebp - 0x7dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x476d29
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov edx, 0xfe
lea ecx, [ebp - 0x7dc]
call fcn.004496b0
mov byte [ebp - 4], 0x10
xorps xmm0, xmm0
mov edx, dword [eax]
mov ecx, edx
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476d62
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.00403f80
mov byte [ebp - 4], 0x12
mov eax, edi
mov ecx, dword [ebp - 0x7dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x476dae
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 4], 0x14
mov esi, dword [ebp - 0x7e0]
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x804], 0
lea eax, [esi + 0x4c]
mov dword [ebp - 0x800], 0xffffffff
mov dword [ebp - 0x808], eax
mov eax, dword [esi + 4]
cmp eax, 7
jne 0x476f05
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x7ec], eax
lea ecx, [ebp - 0xc8]
lea eax, [ebp - 0xf8]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x17
mov dword [ebp - 0xb0], 0xfc
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0xac]
mov dword [ebp - 0x7e8], eax
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x58]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x94], 0xf8
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x90]
mov dword [ebp - 0x7e4], eax
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x40]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x78], 0xf9
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x74]
mov dword [ebp - 0x7dc], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x5c], 0xfb
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x58]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
lea ecx, [ebp - 0x7fc]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0047d9c0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xc8]
push 0x477620
push 4
jmp 0x477078
cmp eax, 6
jne 0x476fd0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x7ec], eax
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x58]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x2b
mov dword [ebp - 0x94], 0xf8
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x90]
mov dword [ebp - 0x7e8], eax
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x40]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x30
mov dword [ebp - 0x78], 0xf9
mov byte [ebp - 4], 0x32
lea eax, [ebp - 0x74]
mov dword [ebp - 0x7e4], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x35
mov dword [ebp - 0x5c], 0xfb
mov byte [ebp - 4], 0x37
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x58]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
lea ecx, [ebp - 0x7fc]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0047d9c0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xac]
push 0x477620
push 3
jmp 0x477078
cmp eax, 8
je 0x476fde
cmp eax, 9
jne 0x477080
lea eax, [ebp - 0x90]
mov dword [ebp - 0x804], 3
mov dword [ebp - 0x7ec], eax
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x40]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x3a
mov dword [ebp - 0x78], 0xf9
mov byte [ebp - 4], 0x3c
lea eax, [ebp - 0x74]
mov dword [ebp - 0x7e8], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.004049c0
mov byte [ebp - 4], 0x3f
mov dword [ebp - 0x5c], 0xfb
mov byte [ebp - 4], 0x41
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x58]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
lea ecx, [ebp - 0x7fc]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0047d9c0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x90]
push 0x477620
push 2
push 0x1c
push eax
call fcn.004d42a9
mov eax, dword [ebp - 0x804]
mov ecx, 1
cmp byte [esi + 0x11d], 0
push 0x6e0
cmovne eax, ecx
mov dword [ebp - 0x804], eax
lea eax, [ebp - 0x7d8]
push 0
push eax
call fcn.004d5e00
add esp, 0xc
lea eax, [ebp - 0x7fc]
lea ecx, [ebp - 0x7d8]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0048f6c0
mov byte [ebp - 4], 0x42
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x7c4]
test eax, eax
jne 0x47710c
call fcn.004bc84f
mov dword [ebp - 0x7c4], eax
test eax, eax
jne 0x47710c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x47719a
push 0
push 0
push eax
call fcn.004bc951
lea eax, [ebp - 0x7d8]
mov dword [ebp - 0x7d0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x7cc], eax
mov dword [ebp - 0x7f0], 0x56c360
mov byte [ebp - 0x7ec], 0
mov byte [ebp - 4], 0x43
push 0x56c360
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x56c378]
mov dword [ebp - 0x7c8], eax
lea eax, [ebp - 0x7d0]
mov byte [ebp - 0x7ec], 1
mov dword [0x56c378], eax
mov byte [ebp - 4], 0x42
push 0x56c360
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x44b1c0
push esi
push 0xfa
push dword [0x56b0d0]
mov byte [ebp - 0x7ec], 0
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 1
push dword [ebp - 0x7d4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x74]
movq qword [ebp - 0x64], xmm0
push eax
movups xmmword [ebp - 0x74], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x47720b
nop
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x7d8]
call fcn.0048fc70
test eax, eax
jne 0x4771f7
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4771d0
cmp byte [ebp - 0x108], 0
je 0x477224
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x7e0], 0xe0000035
jmp 0x477232
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x7e0], 0
lea ecx, [ebp - 0x7d8]
call fcn.0048d8e0
call fcn.0042b830
cmp byte [eax + 0x1c], 0
je 0x477380
call fcn.0042b830
test byte [eax + 0x20], 8
je 0x477380
call fcn.0042b830
mov dword [ebp - 0x7ec], eax
call fcn.004047f0
mov dword [ebp - 0x7e4], eax
test eax, eax
je 0x477610
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x7e4]
call esi
add eax, 0x10
mov dword [ebp - 0x7dc], eax
mov byte [ebp - 4], 0x46
lea ecx, [ebp - 0x7dc]
push 0x23
push str.Updater_wizard_ended._Return_code:
call fcn.00402660
push dword [ebp - 0x7e0]
lea ecx, [ebp - 0x7dc]
call fcn.0042b240
mov dword [ebp - 0x7e8], eax
call fcn.004047f0
mov dword [ebp - 0x7e4], eax
test eax, eax
je 0x477610
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x7e4]
call esi
add eax, 0x10
mov dword [ebp - 0x7e0], eax
mov byte [ebp - 4], 0x49
lea ecx, [ebp - 0x7e0]
push 0
push 0x530654
call fcn.00402660
push ecx
push dword [ebp - 0x7e8]
lea eax, [ebp - 0x7e0]
push ecx
mov ecx, dword [ebp - 0x7ec]
push eax
call fcn.0042bba0
mov byte [ebp - 4], 0x46
mov eax, edi
mov ecx, dword [ebp - 0x7e0]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x477355
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x7dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x477380
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov byte [ebp - 4], 0x12
mov esi, dword [ebp - 0x7fc]
test esi, esi
je 0x477437
mov edi, dword [ebp - 0x7f8]
mov dword [ebp - 0x7ec], esi
cmp esi, edi
je 0x4773ca
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x7e8], esi
mov byte [ebp - 4], 0x12
mov ecx, esi
call fcn.00404130
add esi, 0x1c
mov dword [ebp - 0x7ec], esi
cmp esi, edi
jne 0x4773a2
mov esi, dword [ebp - 0x7fc]
mov ecx, dword [ebp - 0x7f4]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x47740f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push esi
call fcn.004d4054
add esp, 8
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x7f8], 0
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xcc]
cmp ecx, 7
jbe 0x47747b
mov edx, dword [ebp - 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x477471
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4774d6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4774cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x477528
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47751e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x47757a
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x477570
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xe4]
cmp ecx, 7
jbe 0x4775d1
mov edx, dword [ebp - 0xf8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4775c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47760b
push ecx
push edx
call fcn.004d4054
add esp, 8
xor eax, eax
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d91af
push 0x80004005
call fcn.004027d0
int3