Function at 0x45fb40
Capabilities:
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
mov eax, dword [0x4c6074]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, dword [edi + 4]
push eax
mov dword [esp + 0x1c], ebp
call ebx
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x45fb83
mov dword [esi], str.TtBroadphase
rdtsc
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x34]
mov dword [esi + 4], edx
add esi, 0xc
mov dword [ecx + 4], esi
mov eax, dword [edi + 8]
cmp dword [eax + 8], 0
mov esi, dword [esp + 0x2c]
je 0x45fbb1
mov eax, dword [esi]
cmp byte [eax + 0xc5], 0
je 0x45fbb1
mov cl, 0xc
test byte [ebp + 0x26], cl
je 0x45fbb1
test byte [ebp + 0x25], cl
jne 0x45fbb1
push ebp
push eax
call fcn.00448c70
add esp, 8
mov ebp, dword [edi + 8]
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x4c]
mov eax, dword [eax + 0x48]
add ebp, 0x1c
push ebp
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x20], ebp
call fcn.0046f220
mov esi, dword [edi + 8]
push 0xffffffffffffffff
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cmp eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
jne 0x45fcc2
mov eax, dword [esi + 0x20]
test eax, eax
je 0x45fcbc
xor ebp, ebp
lea esp, [esp]
add ebp, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jne 0x45fc00
mov edx, dword [0x4c6060]
push edx
mov dword [esp + 0x24], ebp
call ebx
lea ecx, [ebp + 1]
mov ebp, dword [eax + 0x20]
shl ecx, 4
and ecx, 0xfffffff0
lea edx, [ecx + ebp]
cmp edx, dword [eax + 0x2c]
ja 0x45fc2f
mov dword [eax + 0x20], edx
jmp 0x45fc3b
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov ebp, eax
mov edx, dword [esi + 0x20]
xor ebx, ebx
test edx, edx
mov dword [esp + 0x34], ebx
je 0x45fc7e
mov ecx, dword [edx]
add ecx, ecx
mov eax, ebx
shl eax, 4
add ecx, ecx
add eax, ebp
test ecx, ecx
jle 0x45fc71
mov esi, edx
sub esi, eax
add esi, 0x10
mov ebx, dword [esi + eax]
mov dword [eax], ebx
add eax, 4
sub ecx, 1
jne 0x45fc60
mov ebx, dword [esp + 0x34]
add ebx, dword [edx]
mov edx, dword [edx + 4]
test edx, edx
mov dword [esp + 0x34], ebx
jne 0x45fc48
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
push ecx
push ebp
push eax
call fcn.0044d210
mov ecx, dword [0x4c6060]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp ebp, dword [eax + 0x28]
mov dword [eax + 0x20], ebp
jne 0x45fcb2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push ebp
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x10]
mov byte [ebp], 2
jmp 0x45fd27
cmp byte [ebp], 2
je 0x45fd27
mov ecx, dword [0x4c6074]
push ecx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45fcf4
mov dword [ecx], str.TtWaitForSolverCallbacks
rdtsc
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov al, byte [ebp]
cmp al, 2
jne 0x45fcf4
mov ecx, dword [0x4c6074]
push ecx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45fd27
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 [esi + 4], ecx
cmp dword [esp + 0x24], 1
jne 0x45fe76
mov esi, dword [edi + 8]
cmp dword [esi + 0x68], 0
je 0x45fd85
jmp 0x45fd40
mov ebp, dword [esi + 0x68]
mov eax, dword [ebp]
mov dword [esi + 0x68], eax
mov ecx, dword [0x4c6060]
push ecx
call ebx
mov edx, dword [eax + 0xb4]
cmp edx, dword [eax + 0x34]
jl 0x45fd69
push ebp
push 0xf
mov ecx, eax
call fcn.004022b0
jmp 0x45fd7f
mov ecx, dword [eax + 0xb0]
add dword [eax + 0xb4], 1
mov dword [ebp], ecx
mov dword [eax + 0xb0], ebp
cmp dword [esi + 0x68], 0
jne 0x45fd40
cmp dword [esi + 0x78], 0
je 0x45fdc8
jmp 0x45fd90
mov ebp, dword [esi + 0x78]
mov edx, dword [ebp]
mov dword [esi + 0x78], edx
mov eax, dword [0x4c6060]
push eax
call ebx
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [eax + 0x34]
jl 0x45fdb5
push ebp
push 4
mov ecx, eax
call fcn.004022b0
jmp 0x45fdc2
mov edx, dword [eax + 0x58]
add dword [eax + 0x5c], 1
mov dword [ebp], edx
mov dword [eax + 0x58], ebp
cmp dword [esi + 0x78], 0
jne 0x45fd90
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45fdea
mov ebp, dword [esi + 0x18]
mov ecx, dword [0x4c606c]
mov edx, dword [ecx]
push 0x2c
push ebp
push eax
mov eax, dword [edx + 0x18]
call eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], 1
jle 0x45fe23
mov ecx, dword [0x4c6060]
movzx ebp, word [esi + 0x56]
mov ebx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
lea edx, [ebp*4]
push edx
push ebx
mov ecx, eax
call fcn.004023e0
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x64]
test eax, eax
js 0x45fe4e
and eax, 0x3fffffff
mov ebp, eax
mov eax, dword [0x4c6060]
push eax
call ebx
mov edx, dword [esi + 0x5c]
push 0x17
lea ecx, [ebp*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [0x4c6060]
push eax
call ebx
mov ecx, dword [eax + 0x74]
cmp ecx, dword [eax + 0x34]
jl 0x45fe6a
push esi
push 7
mov ecx, eax
call fcn.004022b0
jmp 0x45fe76
mov edx, dword [eax + 0x70]
add dword [eax + 0x74], 1
mov dword [esi], edx
mov dword [eax + 0x70], esi
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 0x60]
test edx, edx
jle 0x45ff4a
mov esi, dword [ebp + 0x5c]
mov ebp, dword [ebp + 0x58]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xd4]
mov word [edi], 0xd
mov ebx, dword [eax + 0x190]
mov dword [edi + 0x20], ebx
mov ebx, dword [eax + 0x194]
mov dword [edi + 0x24], ebx
mov ebx, dword [eax + 0x198]
mov dword [edi + 0x28], ebx
mov eax, dword [eax + 0x19c]
xor ebx, ebx
cmp edx, ecx
mov dword [edi + 0x2c], eax
mov word [edi + 0x14], bx
mov dword [edi + 0x1c], esi
mov word [edi + 0x18], dx
mov word [edi + 0x1a], cx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x30], ebx
mov word [edi + 0x34], bp
jle 0x45fefc
lea eax, [edx - 1]
cdq
idiv ecx
push 0x10
mov esi, eax
add esi, 1
push esi
call fcn.00462100
add esp, 8
mov dword [edi + 0x10], eax
mov word [edi + 0x16], si
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45ff2c
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x3c]
push 1
push ebx
call fcn.0046b390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [0x4c6074]
push edx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x45ff76
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
push 0
push eax
push edi
push edi
push ecx
mov ecx, dword [esp + 0x44]
call fcn.0046ae50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret