Function at 0x492a00
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0795
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x520404]
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 dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
call fcn.00479a90
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x492a6b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0048f600
add esp, 8
push dword [eax]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00417dd0
mov edx, dword [ebp - 0xa0]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492ab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x492aee
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x492ae4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492e8f
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x30], 7
push eax
mov dword [ebp - 0x2c], str.channel
call fcn.00417e10
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00417dd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
push 0
lea ecx, [ebp - 0x9c]
call fcn.00484250
lea ecx, [ebp - 0x74]
call fcn.0047b200
mov edi, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x98]
push 0
sub esp, 0xc
mov byte [ebp - 4], 5
mov dword [ebp - 0xb4], esp
mov eax, esp
mov dword [ebp - 0x90], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
cmp edi, ebx
je 0x492c58
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
mov ecx, dword [ebp - 0x90]
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
push esi
call fcn.00484e90
mov edi, eax
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0x90]
shl ecx, 4
add ecx, edi
mov dword [ebp - 0xb8], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 9
push esi
mov ecx, edi
mov dword [ebp - 0xa4], edi
call fcn.00417e10
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [edi + 0x18]
call fcn.00417e10
add edi, 0x30
mov byte [ebp - 4], 9
add esi, 0x30
mov dword [ebp - 0xac], edi
cmp esi, ebx
jne 0x492c14
mov eax, dword [ebp - 0x90]
or esi, 0xffffffff
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x9c]
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0xa4], esp
push str.uninstall
call fcn.00417dd0
mov byte [ebp - 4], 0xc
call fcn.0047c450
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0047d2c0
mov ecx, 0x528774
mov dword [0x5282f0], 0
call fcn.00497390
test al, al
je 0x492ca1
xor eax, eax
jmp 0x492cae
push 0
push str.360GameAssistantUninstWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, 0x5282f8
mov dword [0x5282f4], eax
lea edx, [ecx + 2]
jmp 0x492cc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492cc0
sub ecx, edx
sar ecx, 1
jne 0x492cd6
call fcn.00491770
mov ecx, 0x5282f8
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492ce0
sub ecx, edx
sar ecx, 1
jne 0x492cf6
call fcn.00491770
lea eax, [ebp - 0x90]
push eax
call fcn.00491400
add esp, 4
push dword [ebp - 0x90]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492d34
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x492d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x492d51
mov eax, dword [ebp - 0x90]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x492d4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov byte [0x528708], al
mov eax, dword [0x5282f4]
test eax, eax
je 0x492da9
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x7e9
push eax
call esi
cmp dword [0x5282f0], 0
jl 0x492d83
cmp byte [0x528709], 0
jne 0x492da9
mov eax, dword [0x5282f4]
mov dword [0x5282f0], 0
test eax, eax
je 0x492da9
push 0
push 0
push 0x7e8
push eax
mov byte [0x528709], 1
call esi
mov ecx, 0x528774
call fcn.00497390
push 0
test al, al
je 0x492dc0
call fcn.00490450
jmp 0x492ddc
push 0
push 0
push fcn.00490450
push 0
push 0
call fcn.004b5208
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x492e13
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x492e09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492e94
push edx
push ecx
call fcn.004a7d37
add esp, 8
test edi, edi
je 0x492e71
mov esi, edi
cmp esi, ebx
je 0x492e2e
lea ecx, [ecx]
mov ecx, esi
call fcn.0047b200
add esi, 0x30
cmp esi, ebx
jne 0x492e20
mov ecx, dword [ebp - 0x94]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 4
cmp ecx, 0x1000
jb 0x492e67
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492e94
push ecx
push edi
call fcn.004a7d37
add esp, 8
mov al, 1
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.004a7f4e
mov esp, ebp
pop ebp
ret
call fcn.004af45f
call fcn.004af45f
int3