Function at 0x42c780
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f2c6
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ecx, [ebp - 0x94]
call fcn.004086c0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xeb4]
push eax
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov ecx, dword [esi + 0xeb8]
push ecx
sub esp, 0x1c
lea edi, [esi + 0x9a4]
mov ecx, esp
mov dword [ebp - 0xc4], esp
push edi
lea ebx, [ebp - 0x94]
call fcn.00408630
lea ecx, [esi + 0xadc]
call fcn.00409a50
mov edx, ebx
mov ecx, eax
call fcn.00429490
test eax, eax
jne 0x42c861
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x9f0
push str._CloudUpdate_...__d_request_from_server_failed_err_d
call fcn.0042de30
mov edx, dword [esi + 0xe68]
add esp, 0xc
push edx
mov dword [esi + 0xeb0], 0
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x49704c
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 2
call fcn.00435ff8
lea ecx, [ebp - 0x94]
call fcn.00409a50
lea ecx, [ebp - 0x94]
mov ebx, eax
call fcn.00414ae0
lea ecx, [ebp - 0xb0]
push ecx
mov edx, eax
mov ecx, ebx
call fcn.00428f20
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00409a50
push eax
mov ecx, edi
call fcn.00420340
lea ecx, [ebp - 0xb0]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00408830
test ebx, ebx
je 0x42c93a
push 0x9f8
push 0x492130
call fcn.0042de30
add esp, 8
push 0x9f9
push 0x1f41
lea edx, [ebp - 0x78]
push str._d:_d
push edx
call fcn.0042ed57
add esp, 0x10
mov ecx, edi
call fcn.00409a50
mov ecx, dword [esi + 0x99c]
mov edx, dword [esi + 0x994]
push ecx
mov ecx, dword [esi + 0x998]
push edx
push ecx
lea ebx, [ebp - 0x78]
mov edi, eax
call fcn.004295b0
mov edx, dword [esi + 0xe68]
push edx
mov dword [esi + 0xeb0], 0
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x49704c
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 2
call fcn.00435ff8
push 0x9ff
push 0x3eb
lea ecx, [ebp - 0x78]
push str._d:_d
push ecx
call fcn.0042ed57
add esp, 0x10
mov ecx, edi
call fcn.00409a50
mov edx, dword [esi + 0x99c]
mov ecx, dword [esi + 0x994]
push edx
mov edx, dword [esi + 0x998]
push ecx
push edx
lea ebx, [ebp - 0x78]
mov edi, eax
call fcn.004295b0
lea ecx, [ebp - 0x94]
call fcn.00414ae0
lea ecx, [ebp - 0x94]
mov dword [esi + 0x990], eax
call fcn.00414ae0
push eax
call fcn.0042ecc3
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [esi + 0xeb0], eax
call fcn.00409a50
mov ecx, dword [esi + 0x990]
mov edx, dword [esi + 0xeb0]
push ecx
push eax
push edx
call fcn.0043a470
add esp, 0xc
cmp dword [esi + 0xd1c], 0
jne 0x42ca16
mov ecx, esi
call fcn.0042c470
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x42ca16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xa0b
push 0x492160
call fcn.0042de30
add esp, 0xc
push 0x49704c
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 2
call fcn.00435ff8
mov ecx, dword [esi + 0x990]
push ecx
push 0xa11
push str._CloudUpdate_...__d_Finished_to_get_package__size___d
mov dword [ebp - 0xb4], 1
call fcn.0042de30
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.00408830
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret