Function at 0x39a9d00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x3a36206
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov esi, ecx
call fcn.039a8b30
test al, al
je 0x39a9fa6
push 0
push str.InventoryName
call fcn.0395a0a0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x39a9d73
push str.AppSync
push str.SandboxName
call fcn.0395a0a0
add esp, 8
mov ebp, eax
mov ecx, esi
call fcn.039a8440
cmp eax, 0xffffffff
je 0x39a9db0
push eax
mov byte [esi + 0x1d0], 1
call dword [0x3a5fd90]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.039a84a0
mov ecx, esi
call fcn.039a8500
cmp dword [esp + 0x38], 0
setne cl
mov byte [esi + 0x121], cl
jmp 0x39a9dda
lea edi, [esi + 0x128]
push ebp
push edi
mov byte [esi + 0x1d0], 0
call fcn.0394f4b0
mov edx, dword [0x3a56b80]
add esp, 8
push edx
push str..asd
mov ecx, edi
call fcn.039efdd0
mov edi, dword [0x3a5fdbc]
push 0x3a3c130
push str.TS_SKIP_APPSYNC
call edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x1b], 0
call fcn.039a87a0
mov ebx, dword [esp + 0x18]
test al, al
je 0x39a9f3a
test bl, bl
je 0x39a9f33
mov edx, dword [esi]
mov eax, dword [edx + 4]
push ebx
mov ecx, esi
call eax
test al, al
jne 0x39a9f4a
lea ecx, [esp + 0x3c]
call fcn.039efdc0
mov dword [esp + 0x190], 0
cmp byte [esi + 0x1d0], 0
je 0x39a9e65
mov ecx, dword [0x3a56b80]
push ecx
push str.This_application_has_been_unable_to_contact_its_update_server_for__expire_days__day_s___so_it_is_unavailable_for_use._Check_your_network_connection_and_try_again.
push str.AppSyncExpireMessage
call fcn.0395a0a0
add esp, 8
push eax
lea ecx, [esp + 0x44]
call fcn.03931210
jmp 0x39a9e74
lea edx, [esp + 0x3c]
push edx
push 0x16
call fcn.0395a5b0
add esp, 8
mov eax, dword [esp + 0x3c]
push str._expire_days_
push eax
call fcn.03a02f84
add esp, 8
lea ecx, [esp + 0xe0]
mov edi, eax
call fcn.039efdc0
mov byte [esp + 0x190], 1
test edi, edi
jne 0x39a9ebb
mov ecx, dword [0x3a56b80]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xec]
call fcn.039321e0
jmp 0x39a9f14
push 0xa8c0
push str.AppSyncExpirePeriod
mov ecx, esi
call fcn.039a8520
mov esi, eax
mov eax, edi
sub eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
sar eax, 1
push eax
push 0
push ecx
lea ecx, [esp + 0xec]
call fcn.039321e0
mov eax, 0x6c16c16d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
add edi, 0x1a
push edi
shr esi, 0xa
push esi
lea edx, [esp + 0xe8]
push str._d_ls
push edx
call fcn.039f0800
add esp, 0x10
mov eax, dword [esp + 0xe0]
push 0
push str.AppSync
push eax
push 0
call dword [0x3a5fd48]
push 1
call dword [0x3a5fd44]
mov byte [esp + 0x17], 1
jmp 0x39a9f4a
push str.No_update_check_needed__skipping_AppSyncing
push 0
push esi
call fcn.039fb730
add esp, 0xc
push 0
push str.TS_SKIP_APPSYNC
call edi
test bl, bl
je 0x39a9f5e
mov ecx, esi
call fcn.039a9c30
cmp byte [esp + 0x17], 0
je 0x39a9fa6
lea ecx, [esi + 8]
mov edx, 1
lock xadd dword [ecx], edx
push 0
push 0
push esi
push 0x39fb700
push 0
push 0
call fcn.03a01906
add esp, 0x18
test eax, eax
jne 0x39a9f9f
mov ecx, esi
call fcn.039bbbb0
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x39a9fa6
push eax
call dword [0x3a5fd90]
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x180
ret