Function at 0x491eb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x587013
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
call fcn.00453ee0
mov esi, eax
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
mov dword [esi + 4], ebx
call fcn.0042e410
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebp
call fcn.00453ee0
mov edi, eax
lea esi, [edi + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], 1
je 0x491f33
push 1
mov dword [edi], 1
call fcn.00454250
add esp, 4
push esi
call ebp
lea eax, [esp + 0x70]
push eax
xor si, si
call fcn.00491600
add esp, 4
mov edi, eax
push 1
push 0x598ec0
lea ecx, [esp + 0x20]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0040c1c0
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xb0], 1
call fcn.0040cec0
push str.update.exe_
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xbc], 2
call fcn.0040cf70
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.download
push eax
push ecx
mov byte [esp + 0xcc], 3
call fcn.0040cf70
add esp, 0xc
mov ecx, esi
lea edx, [esp + 0xa8]
call fcn.00491490
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x50], esi
mov byte [esp + 0x17], al
jb 0x491fea
mov edx, dword [esp + 0x3c]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x6c], esi
mov edi, 0xf
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x49200e
mov eax, dword [esp + 0x58]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x30], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x49202d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0xa4], 0xffffffff
jb 0x49205a
mov edx, dword [esp + 0x74]
push edx
call fcn.0055215c
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
je 0x4920a9
mov eax, dword [esp + 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x8c]
push ebx
push ebx
push ecx
push 0x491c60
push ebx
push ebx
call fcn.00555225
add esp, 0x18
cmp eax, ebx
je 0x4920a9
push eax
call esi
mov eax, 1
jmp 0x492106
push 0x71a84
call fcn.004b9d40
add esp, 4
call fcn.00453ee0
mov esi, eax
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 2
je 0x4920dc
push 2
mov dword [esi], 2
call fcn.00454250
add esp, 4
push edi
call ebp
call fcn.00453ee0
mov esi, eax
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push ebx
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
call fcn.00462b10
add esp, 8
push edi
call ebp
xor eax, eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret