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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x3214
call fcn.0042ddc0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x20]
mov dword [eax + 0x60], ecx
mov edx, dword [ebx + 0x24]
add eax, 0x60
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x2c]
push esi
push edi
lea ecx, [esp + 0x80]
mov dword [eax + 0xc], edx
mov word [esp + 0x56], 1
mov dword [esp + 0x50], vtable.hkpDeferredConstraintOwner.0
call fcn.0045f230
fld dword [0x4b33d8]
xor edi, edi
fstp dword [esp + 0x31c0]
cmp word [ebx], 0xd
fldz
lea eax, [esp + 0x50]
fst dword [esp + 0x31e0]
fstp dword [esp + 0x31e4]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x194], eax
jne 0x45f713
mov ecx, dword [0x4c6074]
mov edi, dword [ebx + 4]
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x45f3b2
mov dword [esi], str.TtNarrowPhase
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], edx
add esi, 0xc
mov dword [ecx + 4], esi
movzx ecx, word [ebx + 0x18]
mov eax, dword [ebx + 0x30]
mov edx, dword [edi + 0x5c]
sub ecx, 1
mov dword [esp + 0x34], ecx
lea ecx, [eax*4]
mov esi, dword [ecx + edx]
add eax, 1
cmp eax, dword [edi + 0x60]
jne 0x45f3da
mov edi, dword [edi + 0x58]
jmp 0x45f3df
mov edi, 0x200
lea edx, [esi + 0x80]
add edi, esi
cmp edx, edi
lea ebx, [edx + 0x80]
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ebx
jb 0x45f409
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edx
jmp 0x45f415
cmp ebx, edi
jb 0x45f415
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x10]
fld dword [0x4b33d8]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
movsx eax, byte [esi + 0xc]
mov edx, dword [esi + 0x14]
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [esp + 0x28], ecx
mov ecx, dword [edi]
shl eax, 6
lea eax, [eax + ecx + 0x1c20]
mov dword [edi + 0x60], eax
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x10]
lea eax, [esp + 0x1a0]
mov dword [edi + 0x10], edx
fstp dword [esp + 0x31c0]
mov dword [esp + 0x190], eax
mov dword [esp + 0x3210], 0
mov ecx, dword [esi + 8]
push ecx
lea edx, [esp + 0x194]
push edx
push edi
push esi
call fcn.0047a3d0
lea eax, [esp + 0x1b0]
add esp, 0x10
cmp dword [esp + 0x190], eax
je 0x45f4b9
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x190]
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x34]
push eax
call edx
fld dword [esp + 0x31c0]
fcomp qword [0x4b7fa8]
fnstsw ax
test ah, 0x44
jnp 0x45f4fa
lea edi, [ebx + 0x340]
mov ecx, edi
call fcn.00404790
push esi
lea eax, [esp + 0x194]
push eax
mov ecx, ebx
call fcn.0046dbe0
or eax, 0xffffffff
push edi
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x68]
xor edi, edi
cmp eax, edi
jne 0x45f50a
mov dword [esp + 0x70], edi
jmp 0x45f571
mov ecx, dword [esp + 0x6c]
jle 0x45f542
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
add eax, esi
lea eax, [esp + eax + 0x80]
mov byte [esp + 0x44], 0
mov esi, dword [esp + 0x44]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp + 0x70], edi
jmp 0x45f569
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
add eax, edx
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x3c]
mov dword [esp + eax + 0x80], edx
mov dword [esp + eax + 0x84], ecx
add dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x20]
cmp eax, edi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x68], edi
mov dword [esp + 0x30], eax
je 0x45f5df
add eax, 0x80
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
jb 0x45f5df
add dword [esp + 0x2c], 4
mov eax, 1
add dword [esp + 0x1c], eax
sub dword [esp + 0x34], eax
js 0x45f5db
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x5c]
mov ecx, dword [edx + ecx]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 0x60]
mov dword [esp + 0x20], ecx
jne 0x45f5ce
mov eax, dword [eax + 0x58]
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x45f5df
mov eax, 0x200
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x45f5df
mov dword [esp + 0x20], edi
cmp esi, edi
jne 0x45f41d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x45f655
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
push esi
call fcn.00440230
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jg 0x45f60d
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x5c]
add dword [esi + 0xc], eax
mov ecx, dword [esp + 0x60]
add dword [esi + 0x10], ecx
mov edx, dword [esp + 0x64]
add dword [esi + 0x14], edx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x45f64b
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x84]
lea ecx, [esp + eax + 0x84]
push ecx
push edx
call fcn.00464da0
add esp, 0xc
mov ecx, dword [edi]
push esi
call fcn.0043f080
jmp 0x45f6c6
movsx ecx, word [ecx + 0x14]
mov esi, dword [eax + ecx*4 + 0xc]
mov edx, dword [esp + 0x58]
mov dword [esi], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x84]
test edx, edx
mov ebx, edx
je 0x45f6c6
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x80]
lea edi, [esi + 0x10]
sar edx, 4
add eax, edi
test edx, edx
lea ecx, [esp + ecx + 0x80]
jle 0x45f6c3
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
mov dword [eax + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [eax + 0xc], edi
add eax, 0x10
add ecx, 0x10
sub edx, 1
jne 0x45f6a2
mov dword [esi + 0x14], ebx
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45f6f5
mov dword [ecx], str.EtNarrowPhase
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [eax + 8]
push ebx
push ebx
push eax
call fcn.0046ae50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45f742
mov dword [ecx], str.TtNarrowPhaseTOI
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
movzx eax, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x14]
imul eax, ecx
cmp word [ebx + 0x18], di
mov dword [esp + 0x18], edi
jbe 0x45f904
lea edx, [eax*4]
mov dword [esp + 0x1c], edx
cmp byte [ebx + 0x30], 0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + eax]
mov esi, dword [ebp + 8]
je 0x45f79b
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 8]
add esi, 0x10
lea edx, [eax + 0x1da0]
mov dword [ecx + 0x70], edx
movsx edx, byte [edi + 0xc]
shl edx, 6
mov eax, dword [edx + eax + 0x1c30]
jmp 0x45f7b8
movsx ecx, byte [edi + 0xc]
mov edx, dword [esi + 0x10]
shl ecx, 6
add esi, 0x10
lea eax, [ecx + edx + 0x1c20]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], eax
mov eax, dword [eax + 0x10]
fld dword [0x4b33d8]
mov dword [ecx + 0x20], eax
lea ecx, [esp + 0x1a0]
fstp dword [esp + 0x31c0]
mov dword [esp + 0x190], ecx
mov dword [esp + 0x3210], 0
mov edx, dword [edi + 8]
push edx
lea eax, [esp + 0x194]
push eax
push esi
push edi
call fcn.0047a3d0
lea ecx, [esp + 0x1b0]
add esp, 0x10
cmp dword [esp + 0x190], ecx
je 0x45f822
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x190]
push eax
mov eax, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 0x10]
push eax
call edx
fld dword [esp + 0x31c0]
fcomp qword [0x4b7fa8]
fnstsw ax
test ah, 0x44
jnp 0x45f86d
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
add esi, 0x340
mov ecx, esi
call fcn.00404790
mov edx, dword [ebp + 8]
push edi
lea ecx, [esp + 0x194]
push ecx
mov ecx, dword [edx + 4]
call fcn.0046dbe0
or eax, 0xffffffff
push esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
jne 0x45f87d
mov dword [esp + 0x70], esi
jmp 0x45f8e4
mov ecx, dword [esp + 0x6c]
jle 0x45f8b5
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
add eax, edi
lea eax, [esp + eax + 0x80]
mov byte [esp + 0x44], 0
mov edi, dword [esp + 0x44]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp + 0x70], esi
jmp 0x45f8dc
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
add eax, edx
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x3c]
mov dword [esp + eax + 0x80], edx
mov dword [esp + eax + 0x84], ecx
add dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x18]
movzx ecx, word [ebx + 0x18]
add dword [esp + 0x1c], 4
add eax, 1
cmp eax, ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x18], eax
jl 0x45f766
movsx edx, word [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + edx*4 + 0xc]
mov ecx, dword [esp + 0x58]
mov dword [esi], ecx
mov edx, dword [esp + 0x5c]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x60]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x84]
test edx, edx
mov dword [esp + 0x24], edx
je 0x45f988
mov ecx, dword [esp + 0x80]
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
add eax, dword [esp + 0x28]
sar edx, 4
test edx, edx
lea ecx, [esp + ecx + 0x80]
jle 0x45f981
jmp 0x45f960
mov edi, dword [ecx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
mov dword [eax + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [eax + 0xc], edi
add eax, 0x10
add ecx, 0x10
sub edx, 1
jne 0x45f960
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edx
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45f6f8
mov dword [ecx], str.EtNarrowPhaseTOI
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
jmp 0x45f6f8