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

Disassembly:
push 0x28
mov eax, 0x1019df68
call fcn.1000196c
mov ebx, ecx
lea eax, [ebx + 4]
push eax
push dword [0x1027a4e0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x1000afa4
call fcn.10080eaa
push dword [ebp + 8]
push ebx
call fcn.10108fd4
pop ecx
pop ecx
test eax, eax
je 0x1000b1b2
lea ecx, [ebx + 0x140]
call fcn.1000b4a7
test al, al
je 0x1000b1b2
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 0x1000afeb
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push eax
push ebx
call fcn.10108fd4
add esp, 0xc
lea ecx, [ebx + 1]
push 0x2b0
call fcn.10108fd4
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1000b00f
push ebx
call fcn.1000b72a
mov esi, eax
xor eax, eax
jmp 0x1000b011
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], eax
test esi, esi
je 0x1000b193
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.10108fd4
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x1000b057
lea ecx, [ebp - 0x34]
push ecx
push esi
mov ecx, eax
call fcn.1000b9e8
jmp 0x1000b059
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 0x1000b177
push 0
mov ecx, eax
call fcn.10108fd4
test al, al
je 0x1000b177
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x38]
jne 0x1000b094
push 1
lea ecx, [ebx + 0x30]
call fcn.10108fd4
test al, al
je 0x1000b0a0
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 0x1000b0bb
push 1
mov ecx, edi
call fcn.10108fd4
test al, al
je 0x1000b0cb
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 0x1000b0ce
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.10108fd4
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.10108fd4
pop ecx
test eax, eax
je 0x1000b177
push ebx
call fcn.10108fd4
pop ecx
test al, al
je 0x1000b177
call fcn.1000c2f2
mov dword [ebx + 0x42bc], eax
test eax, eax
je 0x1000b177
lea ecx, [ebx + 0x42c0]
call fcn.1000acd0
push 0x10
lea ecx, [ebx + 0x8fb4]
call fcn.10108fd4
test al, al
je 0x1000b177
lea ecx, [ebx + 0x8fd8]
call fcn.100015f0
test al, al
je 0x1000b177
push 0x10
lea ecx, [ebx + 0x2a98]
call fcn.10108fd4
test al, al
je 0x1000b177
call fcn.10108fd4
mov dword [ebx + 0xc4], eax
call fcn.1000c340
mov byte [ebx + 0x8fcd], al
mov byte [ebp - 0x18], 1
jmp 0x1000b17c
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x11
test edi, edi
je 0x1000b193
mov ecx, edi
call fcn.10108fd4
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 0x1000b1ad
mov ecx, esi
call fcn.10108fd4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [ebp - 0x18]
jmp 0x1000b1b4
xor al, al
call fcn.100019cb
ret 4