Function at 0x100403a9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [0x100844bc]
push edi
cmp eax, 0xffffffff
je 0x10040679
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x210], ebx
cmp ebx, esi
je 0x10040677
cmp dword [ebx], esi
jne 0x10040677
mov eax, dword [ebp + 8]
mov dword [ebx], 1
cmp eax, 0x63
ja 0x10040675
mov edi, dword [ebx + eax*4 + 4]
cmp edi, esi
je 0x10040675
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 0x218], eax
call fcn.100401cf
cmp eax, dword [edi + 0x24]
jg 0x1004049c
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x44]
jge 0x1004049c
mov eax, dword [edi + 4]
test al, 1
jne 0x1004049c
test eax, 0x400
jne 0x1004049c
test byte [ebp + 0x14], 0x10
jne 0x1004049c
cmp dword [0x1008abc4], esi
je 0x1004049c
push esi
lea eax, [ebp - 0x2a0]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x21c], eax
mov esi, edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x2a0]
push dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.10040306
test byte [esi + 4], 2
jne 0x100404d8
mov esi, dword [esi]
test esi, esi
jne 0x1004049e
cmp dword [ebp - 0x214], 0
jne 0x1004062c
cmp dword [0x10089e6c], 0
je 0x1004062c
cmp byte [0x10089e31], 0
mov al, byte [0x10089e70]
mov esi, Ordinal_4
je 0x1004051f
cmp al, 4
jae 0x10040511
test al, al
jne 0x1004062c
test byte [0x10089e68], 2
jne 0x1004056d
jmp 0x1004062c
cmp al, 4
jae 0x1004052b
test al, al
jne 0x1004062c
mov eax, dword [0x10089e58]
mov ecx, dword [0x10089e5c]
and eax, 2
and ecx, esi
or eax, ecx
je 0x1004062c
mov eax, dword [0x10089e60]
mov ebx, dword [0x10089e64]
mov ecx, eax
mov edx, ebx
and ecx, 2
and edx, esi
cmp ecx, eax
jne 0x10040626
cmp edx, ebx
jne 0x10040626
mov ebx, dword [ebp - 0x210]
push dword [ebp - 0x220]
push dword [ebp - 0x218]
push dword [ebp + 0xc]
push dword [edi + 8]
push dword [edi + 0x38]
push dword [edi + 0x34]
push 0x10003a04
push 0x10003a38
push dword [0x10089e44]
push dword [0x10089e40]
call fcn.1003fce3
cmp byte [0x10089e31], 0
mov al, byte [0x10089e70]
je 0x100405c1
cmp al, 4
jae 0x100405b6
test al, al
jne 0x1004062c
test byte [0x10089e68], 1
jne 0x100405ff
jmp 0x1004062c
cmp al, 4
jae 0x100405c9
test al, al
jne 0x1004062c
mov eax, dword [0x10089e58]
mov ecx, dword [0x10089e5c]
and eax, 1
and ecx, esi
or eax, ecx
je 0x1004062c
mov eax, dword [0x10089e60]
mov ebx, dword [0x10089e64]
mov ecx, eax
mov edx, ebx
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x10040626
cmp edx, ebx
jne 0x10040626
mov ebx, dword [ebp - 0x210]
push 0x100039f4
push 0x10003a28
push 0x10003a18
push 0x10003a38
push dword [0x10089e44]
push dword [0x10089e40]
call fcn.10040121
jmp 0x1004062c
mov ebx, dword [ebp - 0x210]
mov edi, dword [edi + 0xc]
cmp edi, 0xffffffff
je 0x10040670
mov esi, dword [ebx + edi*4 + 4]
jmp 0x1004066c
push 0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.10040306
test byte [esi + 4], 2
jne 0x10040670
mov esi, dword [esi]
test esi, esi
jne 0x1004063a
and dword [ebx], 0
jmp 0x10040677
mov dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1004da72
leave
ret 0x10