Function at 0x450d40
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x30b4
call fcn.0042ddc0
mov eax, dword [0x4c6074]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
mov esi, ecx
call edi
mov ecx, eax
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 0xc]
jae 0x450d86
mov dword [ebx], str.TtSimulate
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ebx + 4], edx
add ebx, 0xc
mov dword [ecx + 4], ebx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0xf4]
mov eax, dword [ecx + 0x2c]
sub eax, edx
cmp eax, 1
jle 0x450db3
push 0x450110
add eax, 0xffffffff
push eax
mov eax, dword [ecx + 0x28]
lea ecx, [eax + edx*4]
push 0
push ecx
call fcn.00471750
add esp, 0x10
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xc]
cmp eax, dword [edx + 0x2c]
jge 0x450dd9
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x28]
mov ecx, dword [edx + eax*4]
mov word [ecx + 0x20], ax
mov edx, dword [esi + 0xc]
add eax, 1
cmp eax, dword [edx + 0x2c]
jl 0x450dc1
mov ecx, dword [esi + 0xc]
call fcn.0043ee80
mov eax, dword [esi + 0xac]
add eax, dword [esi + 0x70]
je 0x4510fa
mov ecx, dword [0x4c6074]
push ecx
call edi
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x450e23
mov dword [ecx], str.LtInterIsland
mov dword [ecx + 0xc], str.Stduplicates
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add ecx, 0x10
mov dword [ebx + 4], ecx
lea ebx, [esi + 0xa8]
lea eax, [esi + 0x6c]
push ebx
push eax
call fcn.00481340
mov eax, dword [0x4c6074]
add esp, 8
push eax
call edi
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x450e61
mov dword [edi], str.StsortPairs
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [edi + 4], edx
add edi, 0xc
mov dword [ecx + 4], edi
lea eax, [esi + 0x6c]
push eax
call fcn.00450400
push ebx
call fcn.00450400
mov eax, dword [0x4c6074]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x450ea2
mov dword [edi], str.StaddAgt
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [edi + 4], edx
add edi, 0xc
mov dword [ecx + 4], edi
fld dword [0x4b33d8]
xor ebx, ebx
cmp dword [esi + 0x70], ebx
fstp dword [esp + 0x3060]
fldz
mov dword [esp + 0x34], ebx
fst dword [esp + 0x3080]
mov dword [esp + 0x14], ebx
fstp dword [esp + 0x3084]
jle 0x451044
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x6c]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
movsx edi, byte [ecx + 5]
movsx ebx, byte [eax + 5]
movsx edx, byte [edi + ecx + 0x10]
add edi, ecx
movsx ecx, byte [ebx + eax + 0x10]
add ebx, eax
mov eax, dword [edx + edi + 0xb8]
mov ecx, dword [ecx + ebx + 0xb8]
cmp eax, ecx
je 0x450f17
mov edx, dword [esi + 0xc]
push ecx
push eax
push edx
call fcn.00449660
add esp, 0xc
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x18], eax
movzx eax, word [edi + 0x1a]
lea edx, [eax + eax*4]
movzx eax, word [ebx + 0x1a]
add eax, ecx
mov al, byte [eax + edx*2 + 0x1bb0]
test al, al
je 0x45102e
movsx edx, al
mov eax, dword [esp + 0x18]
push eax
shl edx, 6
mov ecx, dword [edx + ecx + 0x1c30]
push ebx
push edi
mov dword [eax + 0x10], ecx
call fcn.004569d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45102e
mov edx, dword [esi + 0xc]
fld dword [0x4b33d8]
mov ebx, dword [edx + 0x6c]
mov eax, dword [edi + 0x10]
movsx edx, byte [edi + 0xc]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
shl edx, 6
lea eax, [edx + eax + 0x1c20]
mov dword [ebx + 0x60], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
lea edx, [esp + 0x40]
fstp dword [esp + 0x3060]
mov dword [esp + 0x30], edx
mov dword [esp + 0x30b0], 0
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push edi
call fcn.0047a3d0
lea edx, [esp + 0x50]
add esp, 0x10
cmp dword [esp + 0x30], edx
je 0x450ff0
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push edx
mov edx, dword [esp + 0x28]
push edx
call eax
fld dword [esp + 0x3060]
fcomp qword [0x4b7fa8]
fnstsw ax
test ah, 0x44
jnp 0x45102e
lea ebx, [esi + 0x340]
mov ecx, ebx
call fcn.00404790
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0046dbe0
or eax, 0xffffffff
push ebx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x70]
mov dword [esp + 0x14], eax
jl 0x450ed2
xor ebx, ebx
mov dword [esi + 0x70], ebx
mov edx, dword [0x4c6074]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x451077
mov dword [edi], str.StremoveAgt
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
add edi, 0xc
mov dword [ecx + 4], edi
xor edi, edi
cmp dword [esi + 0xac], ebx
jle 0x4510be
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx + edi*8]
movsx eax, byte [edx + 5]
lea ecx, [ecx + edi*8]
add eax, edx
mov edx, dword [ecx + 4]
movsx ecx, byte [edx + 5]
add ecx, edx
push ecx
push eax
call fcn.004794d0
add esp, 8
cmp eax, ebx
je 0x4510b3
push eax
call fcn.00456b50
add esp, 4
add edi, 1
cmp edi, dword [esi + 0xac]
jl 0x451081
mov dword [esi + 0xac], ebx
mov edx, dword [0x4c6074]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x4510f4
mov dword [edi], 0x4b3398
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
add edi, 0xc
mov dword [ecx + 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [esi + 0x68], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x7c]
mov byte [edx + 0x1c], 0
mov ecx, dword [esi + 0xc]
add dword [ecx + 0x84], 0xffffffff
jne 0x45112b
cmp byte [ecx + 0x8c], 0
jne 0x45112b
cmp dword [ecx + 0x80], 0
je 0x45112b
call fcn.0043eff0
fld dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
fadd dword [esi + 0x18]
fstp dword [esi + 0x18]
cmp dword [eax + 0x154], 0
je 0x4511f3
mov ecx, dword [0x4c6074]
push ecx
call edi
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x451170
mov dword [ecx], str.TtPostCollideCB
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [ebx + 4], ecx
fld dword [esi + 0x18]
fsub dword [esi + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esi + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fst dword [esp + 0x20]
fld dword [esp + 0x18]
fst dword [esp + 0x24]
fsubrp st(1)
fstp dword [esp + 0x28]
fldz
fld dword [esp + 0x28]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x4511ae
fstp st(0)
fldz
jmp 0x4511b2
fld1
fdivrp st(1)
mov ecx, dword [esi + 0xc]
fstp dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0044d000
mov edx, dword [0x4c6074]
add esp, 8
push edx
call edi
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x4511f3
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0xc]
call fcn.0043ee80
mov ecx, dword [0x4c6074]
push ecx
call edi
mov edi, eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jae 0x451227
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [edi + 4], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov eax, dword [esi + 0xc]
cmp byte [eax + 0xd0], 0
je 0x451278
mov ecx, dword [esi + 0x170]
cmp byte [ecx + 0x10], 0
je 0x451278
lea edi, [esi + 0x140]
push 0
mov ecx, edi
call fcn.0046aac0
mov edx, dword [esi + 0x170]
mov byte [edx + 0x10], 0
mov eax, dword [esi + 0x170]
push eax
mov ecx, edi
call fcn.0046aa30
push 0
mov ecx, edi
call fcn.0046aa10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret