Function at 0x10049e80
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
push str.CreateUser
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CDAOContext.0
mov dword [esp + 0x10], esi
call fcn.10009750
lea ecx, [esp + 0x4c]
mov dword [esp + 8], vtable.CDAOVARGContext.0
mov word [esp + 0x18], 0
mov dword [esp + 0x14], 1
call fcn.10013930
lea ecx, [esp + 0x34]
call fcn.10013930
lea ecx, [esp + 0x1c]
call fcn.10013930
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push 0
lea eax, [esp + 0x50]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], edx
call fcn.10007380
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
push 0
lea eax, [esp + 0x38]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], edx
call fcn.1000a260
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
push 0
lea eax, [esp + 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb0]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], edx
call fcn.1000a260
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x1004a02f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x50]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x7c]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 8]
mov dword [eax + 0x10], ecx
push edx
lea eax, [esp + 0xac]
push eax
call fcn.100695c0
test eax, eax
je 0x1004a036
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x1004a0e2
call fcn.10020d20
test eax, eax
jl 0x1004a065
mov ecx, dword [0x1007eed0]
push 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
test eax, eax
jne 0x1004a0b8
push 0x100202e0
call fcn.1005ad10
xor eax, eax
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x28]
push edx
push ecx
lea edx, [esp + 0xc]
push edx
push 0x100703e8
push 0
push eax
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jge 0x1004a0d5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1004a0c1
mov eax, dword [eax + 8]
test eax, eax
je 0x1004a0c1
push 2
push esi
push eax
call fcn.10019ba0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
push eax
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x1004a0e2
mov ecx, eax
call fcn.10004a40
jmp 0x1004a067
mov eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x14], esi
call fcn.100573a0
mov esi, dword [esp + 0x10]
jmp 0x1004a0e2
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 4]
mov dword [ecx], edx
lea ecx, [esp + 0x1c]
call fcn.10013940
lea ecx, [esp + 0x34]
call fcn.10013940
lea ecx, [esp + 0x4c]
call fcn.10013940
lea ecx, [esp + 8]
call fcn.10007380
mov eax, esi
pop esi
add esp, 0x60
ret 0x38