Function at 0x46ad60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf551
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 0x46ae08
push 0x5de8c4
lea ecx, [ebp - 0x2ac]
call fcn.004892c0
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 0x46ae17
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 0x46b5ae
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 0x46ae73
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 0x46b443
lea eax, [ebp - 0x394]
push eax
call fcn.0048fda0
add esp, 4
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 5
call fcn.00489610
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 0x46af17
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.0047aa60
mov edx, dword [ebp - 0x238]
add esp, 8
mov esi, 1
cmp edx, 8
jb 0x46af97
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46af8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b612
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 0x46aff6
cmp dword [ebp - 0x23c], 0
mov dword [ebp - 4], 7
je 0x46b3bb
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.00476510
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push edi
call fcn.004757f0
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 0x46b0ed
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b0e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b617
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.00489430
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 0x5e1ad8
call fcn.00489750
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00489430
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], 0x5e1888
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 0xd
call fcn.00476510
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call fcn.004756f0
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0047a2e0
mov edx, dword [ebp - 0x220]
add esp, 0x24
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x46b276
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b26c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b61c
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.00476510
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call fcn.004756f0
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00478e90
mov edx, dword [ebp - 0x220]
add esp, 0x18
mov byte [ebp - 0x36d], al
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x46b334
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b621
push edx
push ecx
call fcn.004ece5f
mov al, byte [ebp - 0x36d]
add esp, 8
test al, al
jne 0x46b3a5
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.004716b0
jne 0x46b364
lea eax, [ebp - 0x234]
push eax
call fcn.004716b0
jmp 0x46b36d
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 0x46b3fb
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b3f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b626
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 0x46b564
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b564
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x46b564
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x46b564
call fcn.0041a4a0
mov ecx, eax
test ecx, ecx
je 0x46b62b
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 0x46b512
call fcn.0041a4a0
mov ecx, eax
test ecx, ecx
je 0x46b635
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.00489120
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.0043a360
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 0x46b525
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46b525
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.004683b0
lea eax, [ebp - 0x37c]
push eax
call fcn.0046b640
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 0x46b564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x378]
test edi, edi
je 0x46b58c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b58c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46b58c
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 0x46b5f6
mov edi, dword [ebp - 0x378]
test edi, edi
je 0x46b5d9
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x46b5d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x46b5d9
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