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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x4fe2c3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
push dword [0x884c50]
call ebp
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x4fdcbb
mov dword [ecx], str.LtBroadPhase
mov dword [ecx + 0xc], str.StGatherAabbs
rdtsc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov edi, dword [esp + 0x68]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], connect
mov esi, dword [edi + 0x34c]
mov dword [esp + 0x58], esi
test esi, esi
je 0x4fdd2b
push dword [0x884adc]
call ebp
mov ecx, eax
lea edx, [esi*8 + 0x7f]
and edx, 0xffffff80
mov eax, dword [ecx + 0xc]
lea ebx, [eax + edx]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x64]
cmp edx, dword [ecx + 8]
jg 0x4fdd23
lea ebp, [eax + edx]
cmp ebp, dword [ecx + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
ja 0x4fdd23
mov edx, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
jmp 0x4fdd2d
push edx
call fcn.0046a3c0
jmp 0x4fdd2d
xor eax, eax
or esi, 0x80000000
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov esi, dword [edi + 0x34c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], connect
mov dword [esp + 0x44], esi
test esi, esi
je 0x4fdda5
push dword [0x884adc]
call ebp
mov ecx, eax
lea edx, [esi*8 + 0x7f]
and edx, 0xffffff80
mov eax, dword [ecx + 0xc]
lea ebx, [eax + edx]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x64]
cmp edx, dword [ecx + 8]
jg 0x4fdd9d
lea edi, [eax + edx]
cmp edi, dword [ecx + 0x10]
ja 0x4fdd9d
mov edx, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
jmp 0x4fdda7
push edx
call fcn.0046a3c0
jmp 0x4fdda7
xor eax, eax
push dword [0x884adc]
or esi, 0x80000000
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
call ebp
shl ebx, 5
add ebx, 0x7f
and ebx, 0xffffff80
mov esi, dword [eax + 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], esi
lea ecx, [esi + ebx]
cmp ebx, dword [eax + 8]
jg 0x4fdde7
cmp ecx, dword [eax + 0x10]
ja 0x4fdde7
mov dword [eax + 0xc], ecx
jmp 0x4fddf5
push ebx
mov ecx, eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x10], eax
push dword [0x884adc]
call ebp
mov ecx, eax
mov eax, dword [esp + 0x64]
lea edx, [eax*4 + 0x7f]
mov eax, dword [ecx + 0xc]
and edx, 0xffffff80
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
lea edi, [eax + edx]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x68]
cmp edx, dword [ecx + 8]
jg 0x4fde3d
lea ebx, [eax + edx]
cmp ebx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x20]
ja 0x4fde3d
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0xc], edx
jmp 0x4fde47
push edx
call fcn.0046a3c0
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add edx, 0xffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
js 0x4fdf2f
add esi, 8
mov ebp, edi
mov dword [esp + 0x14], esi
mov esi, eax
sub esi, ecx
mov dword [esp + 0x2c], esi
mov ebx, dword [ecx]
mov dword [esp + 0x28], ebx
cmp edx, 4
jl 0x4fde83
mov eax, dword [ecx + 0x10]
prefetchnta byte [eax + 0x10]
lea eax, [ebx + 0x24]
mov dword [esi + ecx], eax
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x40]
jbe 0x4fdea3
push 1
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0x78]
call fcn.005269a0
add esp, 0xc
movzx ecx, byte [ebx + 0x3f]
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 + 0x14]
mov dword [edx - 4], edi
mov edi, edx
mov dword [edx - 8], eax
mov dword [edi], esi
movzx edx, byte [ebx + 0x4e]
movzx esi, byte [ebx + 0x4d]
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 + 0x18]
mov dword [edi + 0x10], edx
add ecx, 4
mov edx, dword [esp + 0x1c]
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x2c]
mov dword [edi + 8], eax
add edi, 0x20
sub edx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jns 0x4fde71
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x20]
push dword [0x884c50]
call ebp
mov dword [esp + 0x2c], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x4fdf60
mov dword [esi], str.St3AxisSweep
rdtsc
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x68]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x58]
cmp dword [ecx + 0x1c], 0
je 0x4fdf6e
call fcn.006af4d0
mov ecx, dword [edi + 0x58]
lea edx, [esp + 0x34]
mov esi, dword [esp + 0x24]
push edx
lea edx, [esp + 0x4c]
mov eax, dword [ecx]
push edx
push dword [esp + 0x6c]
push dword [esp + 0x1c]
push esi
call dword [eax + 0x30]
mov ecx, dword [edi + 0x58]
cmp dword [ecx + 0x1c], 0
je 0x4fdf9b
call fcn.006af4e0
push dword [0x884adc]
call ebp
mov ecx, dword [esp + 0x30]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x4fdfc4
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x4fdfc4
cmp dword [eax + 0x14], esi
je 0x4fdfc4
mov dword [eax + 0xc], esi
jmp 0x4fdfcd
push edx
push esi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call ebp
mov edx, dword [esp + 0x10]
lea esi, [ebx + 0xf]
and esi, 0xfffffff0
cmp ebx, dword [eax + 8]
jg 0x4fdff6
lea ecx, [esi + edx]
cmp ecx, dword [eax + 0xc]
jne 0x4fdff6
cmp dword [eax + 0x14], edx
je 0x4fdff6
mov dword [eax + 0xc], edx
jmp 0x4fdfff
push esi
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
test eax, eax
jle 0x4fe048
push dword [0x884c50]
call ebp
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x4fe036
mov dword [esi], str.StRemoveDup
rdtsc
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x64]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006aef90
add esp, 8
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4fe0b6
push dword [0x884c50]
call ebp
mov dword [esp + 0x64], eax
mov ebx, dword [eax + 4]
cmp ebx, dword [eax + 0xc]
jae 0x4fe081
mov dword [ebx], str.TtWaitForExport
rdtsc
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
lea eax, [ebx + 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [ecx + 4], eax
cmp byte [esi], 1
je 0x4fe08b
cmp byte [esi], 2
jne 0x4fe081
push dword [0x884c50]
call ebp
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x4fe0b6
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x4c]
test eax, eax
jle 0x4fe18f
push dword [0x884c50]
call ebp
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x4fe0f1
mov dword [esi], str.StRemoveAgt
rdtsc
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x60]
mov ecx, edi
mov eax, dword [ebx]
push dword [eax + 0xcc]
call fcn.0050d830
push dword [esp + 0x38]
mov ecx, dword [edi + 0x64]
push dword [esp + 0x38]
call fcn.006af340
mov esi, dword [esp + 0x4c]
call fcn.004758b0
shl esi, 0xa
mov ecx, eax
push esi
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test al, al
jne 0x4fe132
mov eax, dword [ebx]
jmp 0x4fe182
push dword [0x884c50]
call ebp
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x4fe15d
mov dword [esi], str.StAddAgt
rdtsc
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4fe169
add eax, 8
jmp 0x4fe16b
xor eax, eax
mov ecx, dword [edi + 0x64]
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.006af2d0
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
push dword [eax + 0xcc]
mov ecx, edi
call fcn.0050d870
push dword [0x884c50]
call ebp
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4fe1ba
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [esp + 0x40]
xor ecx, ecx
mov eax, dword [esp + 0x38]
cmp edi, dword [esp + 0x34]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
lea esi, [eax*8 + 0x7f]
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x4fe202
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x4fe202
cmp dword [eax + 0x14], edi
je 0x4fe202
mov dword [eax + 0xc], edi
jmp 0x4fe20b
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0
test eax, eax
js 0x4fe235
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x38]
call dword [eax + 0x10]
mov edi, dword [esp + 0x54]
xor ecx, ecx
mov eax, dword [esp + 0x4c]
cmp edi, dword [esp + 0x48]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], connect
lea esi, [eax*8 + 0x7f]
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x4fe28d
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x4fe28d
cmp dword [eax + 0x14], edi
je 0x4fe28d
mov dword [eax + 0xc], edi
jmp 0x4fe296
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], 0
pop edi
pop esi
pop ebp
test eax, eax
js 0x4fe2c3
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x40]
call dword [eax + 0x10]
pop ebx
add esp, 0x4c
ret 0x10