Function at 0x10009a89
Capabilities:
Query environment variable
Set thread local storage value

Disassembly:
push 0x28
mov eax, 0x1019d732
call fcn.1000195f
mov ebx, ecx
lea eax, [ebx + 4]
push eax
push dword [0x102764c0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x10009ab0
call fcn.10080b90
push dword [ebp + 8]
push ebx
call fcn.10014ba0
pop ecx
pop ecx
test eax, eax
je 0x10009cbe
lea ecx, [ebx + 0x140]
call fcn.1000a03c
test al, al
je 0x10009cbe
push str.JSGC_MARK_STACK_LIMIT
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x10009af7
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push eax
push ebx
call fcn.10014ba0
add esp, 0xc
lea ecx, [ebx + 1]
push 0x2b0
call fcn.10014ba0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10009b1b
push ebx
call fcn.1000a15e
mov esi, eax
xor eax, eax
jmp 0x10009b1d
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], eax
test esi, esi
je 0x10009c9f
or dword [ebp - 0x20], 0xffffffff
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x34]
mov byte [ebp - 0x24], al
lea ecx, [ebx + 1]
movsd dword es:[edi], dword [esi]
push 0x1c8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10014ba0
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x10009b63
lea ecx, [ebp - 0x34]
push ecx
push esi
mov ecx, eax
call fcn.1000a358
jmp 0x10009b65
xor eax, eax
mov edi, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test eax, eax
je 0x10009c83
push 0
mov ecx, eax
call fcn.10014ba0
test al, al
je 0x10009c83
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x38]
jne 0x10009ba0
push 1
lea ecx, [ebx + 0x30]
call fcn.10014ba0
test al, al
je 0x10009bac
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x30]
mov dword [eax + ecx*4], esi
inc dword [ebx + 0x34]
lea edi, [esi + 0x230]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x10009bc7
push 1
mov ecx, edi
call fcn.10014ba0
test al, al
je 0x10009bd7
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
jmp 0x10009bda
mov edx, dword [ebp - 0x10]
xor eax, eax
mov byte [edx + 0x18], 1
push eax
push 0x2000
mov ecx, esi
mov byte [esi + 0x268], 1
call fcn.10014ba0
xor eax, eax
mov esi, eax
mov edi, eax
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x28], eax
call fcn.10014ba0
pop ecx
test eax, eax
je 0x10009c83
push ebx
call fcn.10014ba0
pop ecx
test al, al
je 0x10009c83
call fcn.1000abd0
mov dword [ebx + 0x42bc], eax
test eax, eax
je 0x10009c83
lea ecx, [ebx + 0x42c0]
call fcn.10009624
push 0x10
lea ecx, [ebx + 0x8fb4]
call fcn.10014ba0
test al, al
je 0x10009c83
lea ecx, [ebx + 0x8fd8]
call fcn.100015c0
test al, al
je 0x10009c83
push 0x10
lea ecx, [ebx + 0x2a98]
call fcn.10014ba0
test al, al
je 0x10009c83
call fcn.10014ba0
mov dword [ebx + 0xc4], eax
call fcn.1000ac20
mov byte [ebx + 0x8fcd], al
mov byte [ebp - 0x18], 1
jmp 0x10009c88
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x11
test edi, edi
je 0x10009c9f
mov ecx, edi
call fcn.10014ba0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov dword [ebp - 4], 0x12
test esi, esi
je 0x10009cb9
mov ecx, esi
call fcn.10014ba0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [ebp - 0x18]
jmp 0x10009cc0
xor al, al
call fcn.100019bb
ret 4