Function at 0x46ad40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf591
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x640844]
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, dword [ebp + 8]
mov dword [ebp - 0x374], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x378], 0
mov ecx, dword [esi]
lea edx, [ebp - 0x37c]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 0x68]
cmp dword [ebp + 0x7c], 0
jne 0x46ade8
push 0x5de8d4
lea ecx, [ebp - 0x2ac]
call fcn.00489280
mov ecx, dword [esi]
lea edx, [ebp - 0x2ac]
push edx
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 4
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
call fcn.00419a70
jmp 0x46adf7
mov ecx, dword [esi]
lea edx, [ebp + 0x6c]
push edx
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov esi, eax
test esi, esi
je 0x46b58e
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0xc]
mov eax, dword [ebp - 0x37c]
cmovae edx, dword [ebp + 0xc]
push edx
push str.Trying_to_get_bundleID:__s_n
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0xc
cmp dword [ebp + 0x7c], 0
je 0x46ae53
cmp dword [ebp + 0x80], 0x10
lea edx, [ebp + 0x6c]
mov eax, dword [ebp - 0x37c]
cmovae edx, dword [ebp + 0x6c]
push edx
push str.Currently__installedBundleId:__s_n
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0xc
mov eax, dword [ebp - 0x37c]
push esi
push str.Failed_to_start_synchronous_manifest_download..._error_0x_08x___n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
add esp, 0xc
cmp esi, 7
jne 0x46b423
lea eax, [ebp - 0x394]
push eax
call fcn.0048fd60
add esp, 4
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 5
call fcn.004895d0
mov ecx, dword [ebp - 0x394]
lea edx, [ebp - 0x36c]
push 1
push edx
mov byte [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov edx, dword [ebp - 0x37c]
xor ecx, ecx
test al, al
setne cl
mov esi, dword [edx]
push ecx
push str.tempResult:__d__n
push edx
call dword [esi + 4]
add esp, 0xc
cmp dword [ebp - 0x35c], 0
je 0x46aef7
cmp dword [ebp - 0x358], 0x10
lea edx, [ebp - 0x36c]
mov eax, dword [ebp - 0x37c]
cmovae edx, dword [ebp - 0x36c]
push edx
push str.tempFile:__s__n
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 8
push eax
call fcn.0047aa40
mov edx, dword [ebp - 0x238]
add esp, 8
mov esi, 1
cmp edx, 8
jb 0x46af77
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46af6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b5f2
push edx
push ecx
call fcn.004ece5f
add esp, 8
movups xmm0, xmmword [ebp - 0x234]
xor eax, eax
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [ebp - 0x224]
movq qword [ebp - 0x23c], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
call fcn.00419980
jmp 0x46afd6
cmp dword [ebp - 0x23c], 0
mov dword [ebp - 4], 7
je 0x46b39b
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x24c]
or esi, 2
mov dword [ebp - 0x234], 0
cmp dword [ebp - 0x238], 8
lea edi, [ebp - 0x24c]
mov dword [ebp - 0x374], esi
cmovae edx, dword [ebp - 0x24c]
cmovae edi, dword [ebp - 0x24c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
lea esi, [edx + eax*2]
mov byte [ebp - 0x234], 0
call fcn.004764f0
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push edi
call fcn.004757d0
cmp dword [ebp - 0x220], 0x10
lea ecx, [ebp - 0x234]
mov edx, dword [ebp - 0x380]
cmovae ecx, dword [ebp - 0x234]
push ecx
push str.tempDir:__s__n
mov eax, dword [edx]
push edx
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
add esp, 0x1c
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x46b0cd
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b0c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b5f7
push edx
push ecx
call fcn.004ece5f
add esp, 8
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x24c]
push eax
call fcn.004893f0
cmp dword [ebp - 0x298], 0x10
lea edx, [ebp - 0x2ac]
mov eax, dword [ebp - 0x37c]
cmovae edx, dword [ebp - 0x2ac]
push edx
push str.tempDir2:__s__n
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xb
call dword [ecx + 4]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004ef230
add esp, 0x18
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x2ac]
push eax
push 0
push 0x5e1b28
call fcn.00489710
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004893f0
cmp dword [ebp - 0x2f8], 0x10
lea edx, [ebp - 0x30c]
mov eax, dword [ebp - 0x37c]
cmovae edx, dword [ebp - 0x30c]
push edx
push str.tempDir3:__s__n
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xc
call dword [ecx + 4]
cmp dword [ebp - 0x2f8], 0x10
lea esi, [ebp - 0x30c]
mov dword [ebp - 0x234], 0
cmovae esi, dword [ebp - 0x30c]
xor eax, eax
mov dword [ebp - 0x38c], 0
mov byte [ebp - 0x388], 0
mov dword [ebp - 0x384], 0x5e18d8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0xd
call fcn.004764f0
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call fcn.004756d0
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0047a2c0
mov edx, dword [ebp - 0x220]
add esp, 0x24
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x46b256
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b24c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b5fc
push edx
push ecx
call fcn.004ece5f
add esp, 8
cmp dword [ebp - 0x2f8], 0x10
lea esi, [ebp - 0x30c]
mov dword [ebp - 0x234], 0
cmovae esi, dword [ebp - 0x30c]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0xf
call fcn.004764f0
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call fcn.004756d0
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00478e70
mov edx, dword [ebp - 0x220]
add esp, 0x18
mov byte [ebp - 0x36d], al
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x46b314
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b601
push edx
push ecx
call fcn.004ece5f
mov al, byte [ebp - 0x36d]
add esp, 8
test al, al
jne 0x46b385
mov ecx, dword [ebp - 0x384]
mov esi, dword [ebp - 0x37c]
push dword [ebp - 0x38c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
cmp eax, fcn.00471690
jne 0x46b344
lea eax, [ebp - 0x234]
push eax
call fcn.00471690
jmp 0x46b34d
lea edx, [ebp - 0x234]
push edx
call eax
cmp dword [ebp - 0x220], 0x10
lea ecx, [ebp - 0x234]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x234]
push ecx
push dword [ebp - 0x38c]
mov byte [ebp - 4], 0x11
push str.tempCreateSubDirectory:__d__s__n
push esi
call dword [eax + 4]
add esp, 0x10
lea ecx, [ebp - 0x234]
call fcn.0042bc10
lea ecx, [ebp - 0x30c]
call fcn.00419a70
lea ecx, [ebp - 0x2ac]
call fcn.00419a70
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x46b3db
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b3d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b606
push edx
push ecx
call fcn.004ece5f
add esp, 8
lea ecx, [ebp - 0x36c]
call fcn.00419a70
mov edi, dword [ebp - 0x390]
or esi, 0xffffffff
test edi, edi
je 0x46b544
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b544
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46b544
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x46b544
call fcn.0041a4a0
mov ecx, eax
test ecx, ecx
je 0x46b60b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x374], eax
cmp byte [ebp + 0x12c], 0
mov byte [ebp - 4], 0x12
jne 0x46b4f2
call fcn.0041a4a0
mov ecx, eax
test ecx, ecx
je 0x46b615
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x380], eax
lea eax, [ebp + 0xcc]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004890e0
push 0xae
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 0x14
call fcn.0041aa70
cmp dword [ebp - 0x298], 0x10
lea eax, [ebp - 0x2ac]
mov esi, dword [ebp - 0x380]
cmovae eax, dword [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x374]
push esi
push eax
call fcn.0043a330
add esp, 0xc
lea ecx, [ebp - 0x2ac]
call fcn.00419a70
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x12
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b505
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46b505
push 0xa3
lea ecx, [ebp - 0x374]
call fcn.0041aa70
or esi, 0xffffffff
push ecx
lea eax, [ebp - 0x374]
mov ecx, esp
push eax
call fcn.00468390
lea eax, [ebp - 0x37c]
push eax
call fcn.0046b620
mov edx, dword [ebp - 0x374]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b544
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x378]
test edi, edi
je 0x46b56c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b56c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46b56c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp + 0xc]
call fcn.00419a70
lea ecx, [ebp + 0x6c]
call fcn.00419a70
lea ecx, [ebp + 0xcc]
call fcn.00419a70
mov eax, 0xc
jmp 0x46b5d6
mov edi, dword [ebp - 0x378]
test edi, edi
je 0x46b5b9
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b5b9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46b5b9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp + 0xc]
call fcn.00419a70
lea ecx, [ebp + 0x6c]
call fcn.00419a70
lea ecx, [ebp + 0xcc]
call fcn.00419a70
xor eax, eax
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.004ed0cc
mov esp, ebp
pop ebp
ret
call fcn.004f242f
call fcn.004f242f
call fcn.004f242f
call fcn.004f242f
call fcn.004f242f
push 0x80004005
call fcn.0041a0e0
push 0x80004005
call fcn.0041a0e0
int3