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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100fe4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1014f644]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
mov dword [esp + 0x68], esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0xb4], esi
je 0x10031f39
add eax, 0xa4
push eax
lea edi, [esp + 0x40]
call fcn.100355a0
cmp eax, esi
je 0x10031eae
test byte [0x1015a8a4], 1
jne 0x10031e18
or dword [0x1015a8a4], 1
push 0x10103b50
mov dword [0x1015a8a8], esi
mov dword [0x1015a8ac], esi
mov dword [0x1015a8b0], esi
call fcn.10072866
add esp, 4
push str.sdkapp::LinkRunWebkit:env_js_download_failed
mov esi, 0x1015a8a8
call fcn.1003a4d0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
xor esi, esi
push esi
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
sub esp, 0x1c
mov byte [esp + 0xa0], 1
mov ecx, esp
mov dword [esp + 0x50], esp
push esi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
push esi
mov byte [esp + 0xa4], 0
mov ecx, dword [ebx]
push 0x7d7
call fcn.1002ff60
mov ecx, dword [ebx]
push ecx
xor dl, dl
call fcn.10030460
mov esi, dword [ebx]
add esi, 0x78
call fcn.10040c50
cmp dword [esp + 0x50], 0x10
jb 0x10032175
mov edx, dword [esp + 0x3c]
push edx
jmp 0x1003216d
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x20]
call fcn.1005e7e0
mov byte [esp + 0x68], 2
mov ecx, dword [ebx]
add ecx, 0x20
push eax
call fcn.1000a250
mov esi, 0x10
mov byte [esp + 0x68], 0
cmp dword [esp + 0x30], esi
jb 0x10031ee9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100719b6
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x34], esi
jb 0x10031ef5
mov esi, dword [eax + 0x20]
jmp 0x10031ef8
lea esi, [eax + 0x20]
test byte [0x1015a8a4], 1
jne 0x10031f26
or dword [0x1015a8a4], 1
xor eax, eax
push 0x10103b50
mov dword [0x1015a8a8], eax
mov dword [0x1015a8ac], eax
mov dword [0x1015a8b0], eax
call fcn.10072866
add esp, 4
push esi
push str.sdkapp::LinkRunWebkit:env_js_____s_
mov esi, 0x1015a8a8
call fcn.1003a3f0
add esp, 8
test byte [0x1015a8b4], 1
jne 0x10031f5b
or dword [0x1015a8b4], 1
call fcn.1001f1e0
push 0x10103b80
call fcn.10072866
add esp, 4
lea esi, [esp + 0x14]
mov eax, 0x1015a8b8
call fcn.1002aa90
mov byte [esp + 0x68], 3
mov eax, dword [eax]
xor edi, edi
xor edx, edx
mov ecx, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], dx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10031f90
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x20]
call fcn.10006bc0
mov byte [esp + 0x68], 4
test byte [0x1015a8b4], 1
jne 0x10031fd0
or dword [0x1015a8b4], 1
call fcn.1001f1e0
push 0x10103b80
call fcn.10072866
add esp, 4
mov eax, dword [0x1015a8b8]
mov edx, dword [ebx]
push eax
add edx, 0x78
lea ecx, [esp + 0x20]
call fcn.1003bc50
cmp dword [esp + 0x30], 8
mov byte [esp + 0x13], al
jb 0x10031ffc
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100719b6
add esp, 4
xor edx, edx
mov byte [esp + 0x68], dl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov word [esp + 0x1c], dx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10032033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0xa0], 5
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push edi
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 0x10152a68
mov byte [ecx], 0
call fcn.10006dc0
movzx ecx, byte [esp + 0x4b]
push ecx
mov byte [esp + 0xa4], 0
mov ecx, dword [ebx]
push 0xfa1
call fcn.1002ff60
cmp byte [esp + 0x13], 0
jne 0x100320fd
test byte [0x1015a8a4], 1
jne 0x100320cc
or dword [0x1015a8a4], 1
push 0x10103b50
mov dword [0x1015a8a8], edi
mov dword [0x1015a8ac], edi
mov dword [0x1015a8b0], edi
call fcn.10072866
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
push str.sdkapp::LinkRunWebkit:webkit_init_failed_____d_
mov esi, 0x1015a8a8
call fcn.1003a4d0
mov edx, dword [ebx]
add esp, 8
push edx
xor dl, dl
call fcn.10030460
mov esi, dword [ebx]
add esi, 0x78
call fcn.10040c50
jmp 0x10032161
mov ebx, dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda8___A0xe8b8f8f3___0A__tr1_std__X_tr1_std__.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x68], 6
mov edx, dword [ebx + 0x1c]
mov esi, dword [edx + 0x10]
mov eax, dword [0x1015a808]
add esi, 5
push eax
imul esi, esi, 0x3e8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.1004a550
mov byte [esp + 0x68], 0
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
je 0x10032161
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x1c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call edx
cmp dword [esp + 0x50], 0x10
jb 0x10032175
mov eax, dword [esp + 0x3c]
push eax
call fcn.100719b6
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4