Function at 0x1003f609
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003f63e
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1003f639
push 0x8ed
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1003f880
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov dword [eax], 0x27213ec7
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov ecx, dword [ebp - 0x14]
mov esi, dword [eax]
sub esi, dword [ecx]
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
cmp esi, dword [eax]
jge 0x1003f6d4
mov dword [ebp - 0xc], 1
jmp 0x1003f6d8
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
je 0x1003f6f7
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x1003f6f7
mov dword [ebp - 0x18], 1
jmp 0x1003f6fb
and dword [ebp - 0x18], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax]
je 0x1003f724
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
cmp dword [eax], 0
je 0x1003f724
mov dword [ebp - 0x10], 1
jmp 0x1003f728
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push 2
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jle 0x1003f74a
mov dword [ebp - 0x20], 1
jmp 0x1003f74e
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jg 0x1003f761
mov dword [ebp - 0x6c], 1
jmp 0x1003f765
and dword [ebp - 0x6c], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
mov esi, eax
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov ecx, dword [esi]
cmp ecx, dword [eax]
jle 0x1003f78a
mov dword [ebp - 0x24], 1
jmp 0x1003f78e
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jge 0x1003f7b4
push 0
mov ecx, dword [ebp - 4]
call fcn.1001597e
cmp dword [eax], 0
jne 0x1003f7b4
and dword [ebp - 0x28], 0
jmp 0x1003f7bb
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
jae 0x1003f7ca
mov dword [ebp - 0x2c], 1
jmp 0x1003f7ce
and dword [ebp - 0x2c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jle 0x1003f7f7
push 1
mov ecx, dword [ebp - 4]
call fcn.1001597e
cmp dword [eax], 0
je 0x1003f7f7
mov dword [ebp - 0x30], 1
jmp 0x1003f7fb
and dword [ebp - 0x30], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
imul eax, eax, 0x6352
neg eax
cmp eax, 0xffff
jne 0x1003f822
mov dword [ebp - 0x34], 1
jmp 0x1003f826
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xfffffff8
jne 0x1003f835
mov dword [ebp - 0x38], 1
jmp 0x1003f839
and dword [ebp - 0x38], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1001597e
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax]
jg 0x1003f853
mov dword [ebp - 0x3c], 1
jmp 0x1003f857
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jg 0x1003f86a
mov dword [ebp - 0x40], 1
jmp 0x1003f86e
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x74]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.1001597e
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret