Function at 0x100fd6a0
Capabilities:
Check if file exists
Get file attributes
Get thread local storage value
Set file attributes
Set thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126adb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push str.FileStreaming_Deploy
lea edi, [ebp - 0x50]
call fcn.10023fc0
mov edx, edi
lea ecx, [ebp - 0x54]
call fcn.1004a240
add esp, 4
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100fd712
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push str.Disk
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.10023fc0
mov byte [ebp - 4], 2
test esi, esi
je 0x100fd749
push 7
push str.Section
lea ecx, [ebp - 0x20]
call fcn.10024680
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push str.FileStreaming_Deploy__s_:__s
push eax
call fcn.10036910
mov esi, dword [ebp - 0x30]
add esp, 0xc
mov edi, esp
lea ecx, [esi - 0x10]
call fcn.10024750
add eax, 0x10
mov dword [edi], eax
call fcn.100f59d0
add esp, 4
lea eax, [ebp - 0x2c]
push dword [0x101750d8]
push dword [ebp + 8]
push dword [ebp - 0x20]
push str.FileStreaming_Deploy__s_:_in:__s__CarrierExeName_s
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 3
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x2c]
call fcn.10043b30
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100fd7cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x10175078]
test ecx, ecx
jne 0x100fd860
mov eax, dword [0x101750d8]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x100fd860
jns 0x100fd7f1
push 0x80070057
call fcn.100223c0
movzx eax, word [eax]
test ax, ax
je 0x100fd860
push 0x88
call fcn.101044b6
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x100fd838
push 1
push 0
push ecx
mov ecx, dword [0x101750d8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
mov ecx, dword [ebp - 0x4c]
add eax, 0x10
mov dword [edi], eax
call fcn.10035000
or edi, 0xffffffff
jmp 0x100fd83a
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x101751e0], eax
cmp dword [eax + 0x7c], 0
je 0x100fd85a
mov ecx, eax
call fcn.100c6ad0
mov ecx, eax
mov dword [0x10175078], ecx
jmp 0x100fd860
mov ecx, dword [0x10175078]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test dword [eax], 0x800
je 0x100fd8cc
push ecx
mov ecx, esp
push str.FileStreaming_Deploy:DeployFromVirtualStorage
call fcn.10023fc0
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x68]
call fcn.1004a240
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0x18]
call fcn.100292f0
test eax, eax
je 0x100fd8b0
mov ecx, dword [ebp + 8]
mov edx, 1
call fcn.1002a640
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
call fcn.1004a450
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
jmp 0x100fd912
test ecx, ecx
je 0x100fd8fd
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [ebp - 0x28], eax
or ecx, 1
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x24], 0
jmp 0x100fdaba
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], 0
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push str.FileStreaming_Deploy:_out:__s__bRet_d_
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 9
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fd958
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
jne 0x100fdfe1
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x38]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x64]
call fcn.1003d3b0
add esp, 0x10
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x2c], ecx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fd9bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2c], 0
push eax
push dword [ebp + 8]
jne 0x100fdf92
lea eax, [ebp - 0x3c]
push str._Warning:_could_not_deploy__s_FATAL__LE__FileExists__d_
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 0xb
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x3c]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fda15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x101750d8]
lea eax, [ebp - 0x5c]
push str.Cameyo
push str._s___s_
push eax
call fcn.10044f30
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push str.Warning:_could_not_deploy:_n_s___d_
push eax
call fcn.10044f30
add esp, 0x10
push 2
push dword [edi]
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x60], eax
or edi, 0xffffffff
mov eax, dword [ebp - 0x58]
mov edx, edi
add eax, 0xfffffff0
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100fda87
mov ecx, dword [eax]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdaa7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
sub eax, 3
je 0x100fdf8a
dec eax
jne 0x100fdfe1
cmp dword [ebp - 0x40], 0
jne 0x100fdb96
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x1012ec60
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 5
mov edi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10024750
mov edx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x10175078]
call fcn.100c2930
add esp, 8
test eax, eax
jne 0x100fdb7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100fdc29
cmp dword [ebp - 0x24], 0
jne 0x100fdc29
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x64]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x64]
call fcn.1003d3b0
add esp, 0x10
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x64]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdb6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 1
jmp 0x100fdac4
mov ecx, dword [ebp + 8]
mov edx, 1
call fcn.1002a640
mov dword [ebp - 0x14], 1
or edi, 0xffffffff
jmp 0x100fdc78
push ecx
mov ecx, esp
push str.FileStreaming_Deploy:DeployToSection
call fcn.10023fc0
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x6c]
call fcn.1004a240
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.100c2fe0
push eax
mov ecx, dword [0x10175078]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x7c]
push dword [eax + 0x78]
push dword [eax + 0x74]
push dword [eax + 0x70]
push dword [ebp - 0x40]
call fcn.1003bb80
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100fdc16
mov eax, dword [eax + 8]
mov edx, edi
sub eax, 0x10
mov dword [ebp - 0x60], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100fdc0b
mov ecx, dword [eax]
push dword [ebp - 0x60]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
call fcn.1010338d
add esp, 4
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
call fcn.1004a450
cmp dword [ebp - 0x14], 0
jne 0x100fdc78
jmp 0x100fdc2c
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push str.FileStreaming_Deploy:_COULD_NOT_UNPACK:__s___d__
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 6
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x44]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdc78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x28]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100fd912
mov eax, dword [0x101750c8]
cmp dword [eax - 0xc], 0
mov eax, dword [ebp - 0x14]
je 0x100fd912
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x48]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x64]
call fcn.1003d3b0
add esp, 0x10
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x48]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x60], ecx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdd01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
jne 0x100fd912
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push dword [0x1017507c]
push str.Cameyo.Streaming._s._s
push eax
call fcn.10044f30
add esp, 0x10
push 0x3e
push 0x5c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.1003ded0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
lea edx, [ebp - 0x8c]
movq qword [ebp - 0x74], xmm0
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x8c], 0
movdqu xmmword [ebp - 0x8b], xmm0
mov word [ebp - 0x7b], 0
mov byte [ebp - 0x79], 0
call fcn.100491a0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x78]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100fdda0
push dword [ebp - 0x1c]
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100fde90
push ecx
mov eax, esp
push dword [ebp + 8]
push dword [0x1017507c]
push str.FileStreaming_Deploy:_StreamingClientRequest:_UrgentStreaming:AppID_sFile_s
push eax
call fcn.10044f30
add esp, 0x10
call fcn.100fd630
mov esi, dword [ebp - 0x2c]
add esp, 4
xor edi, edi
jmp 0x100fddd0
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100fdde9
inc edi
cmp edi, 0x258
jl 0x100fddd0
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x100fddfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
mov edi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x4c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x64]
call fcn.1003d3b0
add esp, 0x10
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x60], ecx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fde57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x60], 0
je 0x100fdf33
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov eax, dword [ebp - 0x14]
test ecx, ecx
jg 0x100fd912
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
jmp 0x100fd912
push 0
push str.Cannot_create_event_to_wait_on_streaming._Aborting_
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdec2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdee2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdeff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100fdf20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea eax, [ebp - 0x4c]
push dword [0x1017507c]
push str.FileStreaming_Deploy:_StreamingClientRequest_timed_out_for_UrgentStreaming:AppID_sFile_s
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 8
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x4c]
call fcn.10043b30
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdf7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push str.Cannot_stream_this_file._Aborting_
jmp 0x100fde97
push 0x63
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x4c]
push str.Warning:_could_not_deploy__s__non_fatal__file_already_exists___LE_d
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 0xa
mov ecx, str.VirtUtils
mov edx, dword [ebp - 0x4c]
call fcn.10043b30
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fdfd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov edx, 1
call fcn.1002a640
mov eax, dword [0x1017344c]
test eax, eax
jne 0x100fe023
mov eax, dword [0x10173e8c]
test eax, eax
jne 0x100fe00e
push str.XRayDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x10173e8c], eax
test eax, eax
jne 0x100fe00e
mov eax, dword [0x1017344c]
jmp 0x100fe01f
push str._XRayAPI_8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1017344c], eax
test eax, eax
je 0x100fe02f
push 0x1012ec60
push str.Resume
call eax
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
call fcn.1004a450
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fe05a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100fe077
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100fe098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret