Function at 0x1004e090
Capabilities:
Allocate thread local storage
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10139f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x101bb518]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x101bb518]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
test byte [0x101cb200], 1
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
je 0x1004e109
push dword [0x101cb20c]
mov ecx, 0x10172868
push dword [0x101cb208]
call fcn.1002fc50
add esp, 8
push 0xc
call fcn.1002fc50
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x140], 0
test eax, eax
je 0x1004e14b
mov dword [eax], vtable.appv::utility::scope_guard_func.0
mov byte [esp + 0x140], 1
mov dword [eax], vtable.._AV__scope_guard_func_impl_V___Bind__00XQ6AXXZ___V_std___utility_appv__.0
mov dword [eax + 4], 0x1004dc80
mov byte [esp + 0x140], 0
jmp 0x1004e14d
xor eax, eax
mov dword [esp + 0x140], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x140], 3
lea eax, [esp + 0xac]
push eax
mov ecx, 0x101bcbc8
call fcn.1002fc50
mov byte [esp + 0x140], 4
mov edx, eax
push str.vfs_subsystem
lea ecx, [esp + 0x98]
call fcn.1002fc50
add esp, 4
mov esi, eax
mov byte [esp + 0x140], 5
cmp byte [0x101bcbcc], 0
jne 0x1004e1b4
mov ecx, 0x101bcbc8
call fcn.1002fc50
push dword [0x101bcbe8]
lea ecx, [esp + 0x6c]
push esi
call fcn.1002fc50
mov byte [esp + 0x140], 7
cmp dword [esp + 0xa8], 8
jb 0x1004e1e5
push dword [esp + 0x94]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov byte [esp + 0x140], 8
cmp dword [esp + 0xc0], 8
jb 0x1004e226
push dword [esp + 0xac]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
test byte [0x101cb200], 1
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
je 0x1004e270
push dword [0x101cb20c]
mov ecx, 0x10166f78
push dword [0x101cb208]
call fcn.1002fc50
add esp, 8
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x68]
lea eax, [esp + 0x54]
push eax
call fcn.1002fc50
mov byte [esp + 0x140], 9
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x38]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ebx
push ecx
push eax
lea ecx, [esp + 0x110]
call fcn.1002fc50
add esp, 0x18
mov esi, eax
mov byte [esp + 0x140], 0xa
call fcn.1002fc50
movss xmm2, dword [0x10183e0c]
mov ecx, esi
mov edx, dword [eax + 4]
call fcn.1002fc50
mov dword [esp + 0x2c], eax
mov byte [esp + 0x140], 9
lea ecx, [esp + 0xf8]
call fcn.1002fc50
mov byte [esp + 0x140], 8
mov esi, dword [esp + 0x58]
test esi, esi
je 0x1004e332
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x1004e332
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x1004e332
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test byte [0x101cb200], 1
je 0x1004e354
push dword [0x101cb20c]
mov ecx, 0x10165db8
push dword [0x101cb208]
call fcn.1002fc50
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x1004e53a
cmp eax, 0x80040200
jne 0x1004e379
mov dword [esp + 0x10], 0
mov ebx, 0x80
jmp 0x1004ec2b
push str.Failed_to_get_configuration_from_RPC_server._HRESULT:__1_
lea ecx, [esp + 0x98]
call fcn.1002fc50
mov byte [esp + 0x140], 0xc
lea ecx, [esp + 0xac]
push 0x1016f598
call fcn.1002fc50
mov byte [esp + 0x140], 0xd
call fcn.1002fc50
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.1002fc50
mov edi, eax
mov byte [esp + 0x140], 0xe
lea ecx, [esp + 0xc4]
push 0x44
push str.vfs_process_runtime::start_runtime
call fcn.1002fc50
mov esi, eax
mov byte [esp + 0x140], 0xf
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.1002fc50
push edi
lea eax, [esp + 0xb0]
mov ecx, esi
push eax
push 1
call fcn.1002fc50
mov byte [esp + 0x140], 0xe
cmp dword [esp + 0xd8], 0x10
jb 0x1004e42b
push dword [esp + 0xc4]
call fcn.10115871
add esp, 4
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
mov byte [esp + 0x140], 0xd
mov dword [esp + 0xf8], vtable.AppV::LogFormatter.0
mov byte [esp + 0x140], 0xd
cmp dword [esp + 0x114], 8
jb 0x1004e47d
push dword [esp + 0x100]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], 0
mov word [esp + 0x100], ax
mov byte [esp + 0x140], 0xc
cmp dword [esp + 0xc0], 8
jb 0x1004e4be
push dword [esp + 0xac]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov byte [esp + 0x140], 8
cmp dword [esp + 0xa8], 8
jb 0x1004e4ff
push dword [esp + 0x94]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
call fcn.1002fc50
or eax, 0x20002
mov ebx, edx
mov dword [esp + 0x10], eax
or ebx, 0x80a
jmp 0x1004ec2b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x140], 0x13
lea ecx, [esp + 0x40]
call fcn.1002fc50
test al, al
jne 0x1004e6bd
push str.Got_invalid_configuration_from_the_RPC_server.
lea ecx, [esp + 0xb0]
call fcn.1002fc50
mov byte [esp + 0x140], 0x14
lea ecx, [esp + 0x94]
push 0x1016f598
call fcn.1002fc50
mov byte [esp + 0x140], 0x15
lea ecx, [esp + 0xc4]
push 0x4e
push str.vfs_process_runtime::start_runtime
call fcn.1002fc50
mov byte [esp + 0x140], 0x16
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x98]
push ecx
push 1
mov ecx, eax
call fcn.1002fc50
mov byte [esp + 0x140], 0x15
cmp dword [esp + 0xd8], 0x10
jb 0x1004e602
push dword [esp + 0xc4]
call fcn.10115871
add esp, 4
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
mov byte [esp + 0x140], 0x14
cmp dword [esp + 0xa8], 8
jb 0x1004e641
push dword [esp + 0x94]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov byte [esp + 0x140], 0x13
cmp dword [esp + 0xc0], 8
jb 0x1004e682
push dword [esp + 0xac]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
call fcn.1002fc50
or eax, 0x20003
mov ebx, edx
mov dword [esp + 0x10], eax
or ebx, 0x90a
jmp 0x1004ec1a
mov eax, dword [esp + 0x14]
lea ebx, [edi + 0x10]
push 0x20
mov dword [esp + 0x1c], ebx
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x14]
movdqu xmmword [ebx], xmm0
movdqu xmm0, xmmword [eax]
movdqu xmmword [edi + 0x20], xmm0
call fcn.1002fc50
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x140], 0x18
test eax, eax
je 0x1004e700
mov ecx, eax
call fcn.1002fc50
jmp 0x1004e702
xor eax, eax
mov byte [esp + 0x140], 0x13
lea ecx, [edi + 0x38]
push eax
call fcn.1002fc50
push 0x10
call fcn.1002fc50
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x140], 0x19
test eax, eax
je 0x1004e737
push ecx
mov ecx, eax
call fcn.1002fc50
jmp 0x1004e739
xor eax, eax
mov byte [esp + 0x140], 0x13
lea esi, [edi + 0x30]
push eax
mov ecx, esi
call fcn.1002fc50
push 0xc
call fcn.1002fc50
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x140], 0x1a
test eax, eax
je 0x1004e770
push esi
mov ecx, eax
call fcn.1002fc50
jmp 0x1004e772
xor eax, eax
mov byte [esp + 0x140], 0x13
lea ecx, [edi + 0x40]
push eax
mov dword [esp + 0x18], ecx
call fcn.1002fc50
push 0x3c
call fcn.1002fc50
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
mov byte [esp + 0x140], 0x1b
test esi, esi
je 0x1004e7c6
push ebx
mov ecx, esi
call fcn.1002fc50
mov byte [esp + 0x140], 0x1c
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [esi + 0x38], eax
mov byte [esp + 0x140], 0x1b
jmp 0x1004e7c8
xor esi, esi
mov byte [esp + 0x140], 0x13
lea ecx, [edi + 8]
push esi
call fcn.1002fc50
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x40]
push eax
call fcn.1002fc50
mov ebx, edx
mov dword [esp + 0x10], eax
mov ecx, ebx
xor eax, eax
and ecx, 0x80
or eax, ecx
jne 0x1004e975
push str.Failed_to_build_policy_from_configuration_received_from_the_RPC_server._Error_code:__1_
lea ecx, [esp + 0xb0]
call fcn.1002fc50
mov byte [esp + 0x140], 0x1d
lea ecx, [esp + 0x94]
push 0x1016f598
call fcn.1002fc50
mov byte [esp + 0x140], 0x1e
call fcn.1002fc50
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.1002fc50
mov edi, eax
mov byte [esp + 0x140], 0x1f
lea ecx, [esp + 0xc4]
push 0x60
push str.vfs_process_runtime::start_runtime
call fcn.1002fc50
mov esi, eax
mov byte [esp + 0x140], 0x20
mov ecx, edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ebx
call fcn.1002fc50
push eax
lea eax, [esp + 0x98]
mov ecx, esi
push eax
push 1
call fcn.1002fc50
mov byte [esp + 0x140], 0x1f
cmp dword [esp + 0xd8], 0x10
jb 0x1004e8bc
push dword [esp + 0xc4]
call fcn.10115871
add esp, 4
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
mov byte [esp + 0x140], 0x1e
lea ecx, [esp + 0xf8]
call fcn.1002fc50
mov byte [esp + 0x140], 0x1d
cmp dword [esp + 0xa8], 8
jb 0x1004e90f
push dword [esp + 0x94]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov byte [esp + 0x140], 0x13
cmp dword [esp + 0xc0], 8
jb 0x1004e950
push dword [esp + 0xac]
call fcn.10115871
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
jmp 0x1004ec1a
lea ecx, [esp + 0x40]
call fcn.1002fc50
push eax
lea ecx, [esp + 0x60]
call fcn.1002fc50
mov byte [esp + 0x140], 0x23
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x14]
push eax
mov ecx, dword [ecx]
call fcn.1002fc50
mov ebx, edx
mov dword [esp + 0x10], eax
mov ecx, ebx
xor eax, eax
and ecx, 0x80
or eax, ecx
jne 0x1004eaa5
push str.Failed_to_initialize_name_mappers._Error_code:__1_
lea ecx, [esp + 0xb0]
call fcn.1002fc50
mov byte [esp + 0x140], 0x24
lea ecx, [esp + 0x94]
push 0x1016f598
call fcn.1002fc50
mov byte [esp + 0x140], 0x25
call fcn.1002fc50
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.1002fc50
mov edi, eax
mov byte [esp + 0x140], 0x26
lea ecx, [esp + 0xc4]
push 0x6c
push str.vfs_process_runtime::start_runtime
call fcn.1002fc50
mov esi, eax
mov byte [esp + 0x140], 0x27
mov ecx, edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ebx
call fcn.1002fc50
push eax
lea eax, [esp + 0x98]
mov ecx, esi
push eax
push 1
call fcn.1002fc50
mov byte [esp + 0x140], 0x26
lea ecx, [esp + 0xc4]
call fcn.1002fc50
mov byte [esp + 0x140], 0x25
lea ecx, [esp + 0xf8]
call fcn.1002fc50
mov byte [esp + 0x140], 0x24
lea ecx, [esp + 0x94]
call fcn.10006340
mov byte [esp + 0x140], 0x23
lea ecx, [esp + 0xac]
jmp 0x1004ec04
push dword [esp + 0x1c]
call fcn.1002fc50
xor eax, eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], 0
mov word [esp + 0xe0], ax
mov byte [esp + 0x140], 0x28
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push eax
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1004ebe8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002fc50
add esp, 4
mov esi, eax
push esi
push edi
call ebx
test eax, eax
je 0x1004ebdf
push str.___
lea ecx, [esp + 0x98]
call fcn.1002fc50
mov byte [esp + 0x140], 0x29
lea ecx, [esp + 0x94]
push esi
call fcn.1002fc50
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x98]
call fcn.1002fc50
add esp, 4
test al, al
je 0x1004ebcb
push 0xffffffffffffffff
push 4
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xec]
call fcn.1002fc50
mov byte [esp + 0x140], 0x2a
lea ecx, [esp + 0xe0]
push eax
call fcn.1002fc50
mov byte [esp + 0x140], 0x29
lea ecx, [esp + 0xac]
call fcn.10006340
cmp dword [esp + 0xf4], 8
lea eax, [esp + 0xe0]
cmovae eax, dword [esp + 0xe0]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov byte [esp + 0x140], 0x28
lea ecx, [esp + 0x94]
call fcn.10006340
push esi
call fcn.101166d1
add esp, 4
mov dword [esp + 0x10], 0
mov ebx, 0x80
mov byte [esp + 0x140], 0x23
lea ecx, [esp + 0xe0]
call fcn.10006340
mov byte [esp + 0x140], 0x13
lea ecx, [esp + 0x5c]
call fcn.1002fc50
mov byte [esp + 0x140], 8
lea ecx, [esp + 0x40]
call fcn.1002fc50
mov byte [esp + 0x140], 3
lea ecx, [esp + 0x68]
call fcn.1002fc50
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.1002fc50
mov eax, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10115876
mov esp, ebp
pop ebp
ret 0xc