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

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4fe5c3
push esi
push edi
push dword [0x884c50]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x4fe31a
mov dword [ecx], str.LtBroadPhase
mov dword [ecx + 0xc], str.StGatherAabbs
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
push ebx
push dword [0x884adc]
call edi
mov ebx, ebp
shl ebx, 5
add ebx, 0x7f
mov esi, dword [eax + 0xc]
and ebx, 0xffffff80
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], esi
lea ecx, [esi + ebx]
cmp ebx, dword [eax + 8]
jg 0x4fe34b
cmp ecx, dword [eax + 0x10]
ja 0x4fe34b
mov dword [eax + 0xc], ecx
jmp 0x4fe359
push ebx
mov ecx, eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x14], eax
push dword [0x884adc]
call edi
mov ecx, eax
lea edx, [ebp*4 + 0x7f]
and edx, 0xffffff80
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
lea edi, [eax + edx]
cmp edx, dword [ecx + 8]
jg 0x4fe38a
cmp edi, dword [ecx + 0x10]
ja 0x4fe38a
mov dword [ecx + 0xc], edi
jmp 0x4fe394
push edx
call fcn.0046a3c0
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
lea ecx, [edi - 1]
mov dword [esp + 0x10], ecx
test ecx, ecx
js 0x4fe475
add esi, 8
mov edx, eax
sub edx, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], edx
nop word [eax + eax]
mov ebx, dword [ebp]
mov dword [esp + 0x1c], ebx
cmp ecx, 4
jl 0x4fe3d3
mov eax, dword [ebp + 0x10]
prefetchnta byte [eax + 0x10]
lea eax, [ebx + 0x24]
mov dword [edx + ebp], eax
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x40]
jbe 0x4fe3f7
push 1
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 0x78]
call fcn.005269a0
add esp, 0xc
movzx ecx, byte [ebx + 0x3f]
add ebp, 4
movzx eax, byte [ebx + 0x3d]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x38]
movzx edx, byte [ebx + 0x3c]
shl eax, cl
sub edi, eax
shl edx, cl
movzx eax, byte [ebx + 0x3e]
shl eax, cl
sub esi, eax
mov eax, dword [ebx + 0x30]
sub eax, edx
mov edx, dword [esp + 0x30]
mov dword [edx - 4], edi
mov edi, edx
mov dword [edx - 8], eax
mov dword [edi], esi
movzx esi, byte [ebx + 0x4d]
movzx edx, byte [ebx + 0x4e]
movzx eax, byte [ebx + 0x4c]
shl edx, cl
add edx, dword [ebx + 0x48]
shl esi, cl
add esi, dword [ebx + 0x44]
shl eax, cl
add eax, dword [ebx + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
add edi, 0x20
sub ecx, 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], ecx
jns 0x4fe3c0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
push dword [0x884c50]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebp
mov dword [esp + 0x30], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x4fe4ac
mov dword [esi], str.St3AxisSweep
rdtsc
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x58]
cmp dword [ecx + 0x1c], 0
je 0x4fe4be
call fcn.006af4d0
push dword [esp + 0x40]
mov ecx, dword [esi + 0x58]
push dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ecx]
mov edi, dword [esp + 0x24]
push esi
push edi
call dword [eax + 0x30]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x58]
cmp dword [ecx + 0x1c], 0
je 0x4fe4eb
call fcn.006af4e0
push dword [0x884adc]
call ebp
mov ecx, dword [esp + 0x28]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x4fe514
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x4fe514
cmp dword [eax + 0x14], edi
je 0x4fe514
mov dword [eax + 0xc], edi
jmp 0x4fe51d
push edx
push edi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call ebp
lea edx, [ebx + 0xf]
and edx, 0xfffffff0
cmp ebx, dword [eax + 8]
jg 0x4fe542
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x4fe542
cmp dword [eax + 0x14], esi
je 0x4fe542
mov dword [eax + 0xc], esi
jmp 0x4fe54b
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov eax, dword [eax + 4]
add eax, dword [ebx + 4]
test eax, eax
jle 0x4fe595
push dword [0x884c50]
call ebp
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4fe588
mov dword [esi], str.StRemoveDup
rdtsc
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
push ebx
push dword [esp + 0x40]
call fcn.006aef90
add esp, 8
push dword [0x884c50]
call ebp
mov edi, eax
pop ebx
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4fe5c1
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x14