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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x344
cmp byte [0x4c6f00], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
jne 0x471035
push 3
call fcn.004a7150
add esp, 4
test al, al
mov byte [0x4c6f00], al
je 0x47150e
mov ecx, dword [edi + 0x3c]
mov ebx, dword [ebp + 0xc]
mov eax, 0x3e8
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
xor eax, eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], 2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea esi, [edi + 0x30]
push esi
push ebx
call eax
cmp eax, 1
je 0x47150e
fld dword [ebx]
mov ecx, dword [ebp + 8]
fstp dword [esp + 0x20]
call fcn.0043ed80
fstp dword [esp + 0x24]
mov ecx, dword [ebp + 8]
fld dword [esp + 0x24]
add ecx, 0x1a0
fsub dword [esp + 0x20]
push ecx
lea ecx, [esp + 0xb4]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fld1
fdivrp st(1)
fstp dword [esp + 0x30]
call fcn.00471520
fld1
fstp dword [esp + 0x1d0]
sub esp, 8
fld dword [ebp + 0x10]
mov eax, 1
fst dword [esp + 0x1c4]
lea ecx, [esp + 0xb8]
fld1
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x1d0], eax
fdivrp st(1)
fstp dword [esp + 0x1c8]
fldz
fst dword [esp + 0xd4]
fst dword [esp + 0xd0]
fst dword [esp + 0xcc]
fst dword [esp + 0xc8]
fst dword [esp + 0xe4]
fst dword [esp + 0xe0]
fst dword [esp + 0xdc]
fstp dword [esp + 0xd8]
fld dword [0x4b9e5c]
fstp dword [esp + 4]
fld dword [0x4b2f98]
fstp dword [esp]
call fcn.0043ebe0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x1e8]
call fcn.0044f8d0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
lea ecx, [esp + 0x1ec]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0045dd20
mov ecx, dword [0x4c6074]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
jae 0x4711d6
mov dword [eax], str.LtTOI
mov dword [eax + 0xc], str.StSolveToi
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
add eax, 0x10
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
cmp byte [eax + 0xd8], 7
je 0x4711ee
mov eax, dword [eax + 0xb8]
mov dword [esp + 0x14], eax
jmp 0x4711fb
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0xb8]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c6060]
mov ecx, dword [eax + 0x4c]
push edx
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x20]
add ecx, 0x10
and ecx, 0xfffffff0
mov dword [esp + 0x18], edx
add edx, ecx
cmp edx, dword [eax + 0x2c]
ja 0x471238
mov dword [eax + 0x20], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x471246
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0
push eax
mov dword [esp + 0x3c], eax
call fcn.00406240
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x3c]
lea edx, [esp + 0x25c]
mov dword [esp + 0x250], edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x250]
push ecx
push edx
push eax
push ebx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x26c], 0
mov dword [esp + 0x270], 0x80000040
call fcn.0046ff50
mov dword [esp + 0x58], eax
lea eax, [esp + 0x88]
push eax
call fcn.0045de50
mov eax, dword [ebx + 4]
add esp, 0x2c
cmp byte [eax + 0xd8], 7
je 0x4712cf
mov ecx, dword [eax + 0xb8]
mov dword [esp + 0x10], ecx
jmp 0x4712dc
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0xb8]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [ebx + 0x40]
push eax
mov eax, dword [esp + 0x14]
push eax
call edx
cmp dword [esp + 0x30], 0
jne 0x47146e
mov eax, dword [esi + 4]
sub eax, 1
mov dword [esp + 0x10], eax
js 0x4713ac
mov edi, eax
imul edi, edi, 0x70
nop
mov eax, dword [esi]
mov ecx, dword [eax + edi + 4]
mov edx, dword [ecx + 0xb8]
add eax, edi
cmp edx, dword [esp + 0x14]
jne 0x471335
movzx ecx, word [ecx + 0x94]
mov edx, dword [esp + 0x18]
cmp byte [ecx + edx], 0x10
je 0x471355
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0xb8], edx
jne 0x471392
movzx ecx, word [ecx + 0x94]
mov edx, dword [esp + 0x18]
cmp byte [ecx + edx], 0x10
jne 0x471392
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd8], 7
jne 0x471364
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0xb8]
mov ecx, dword [eax + 0x10]
mov ebx, dword [ecx]
add eax, 0x40
push eax
push edx
mov edx, dword [ebx + 0x20]
call edx
add dword [esi + 4], 0xffffffff
mov eax, dword [esi + 4]
mov ecx, dword [esi]
imul eax, eax, 0x70
add eax, ecx
push eax
add ecx, edi
call fcn.004716b0
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
sub eax, 1
sub edi, 0x70
test eax, eax
mov dword [esp + 0x10], eax
jge 0x471310
mov edi, dword [esp + 0x1c]
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
jae 0x4713e1
mov dword [ecx], str.StCollide
rdtsc
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [eax + 4], ecx
fld dword [edi + 0x18]
sub esp, 8
fstp dword [esp + 4]
lea ecx, [esp + 0x38]
fld dword [ebx]
fstp dword [esp]
call fcn.004451e0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
mov edx, dword [esp + 0x30]
add eax, 0x50
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x6c]
mov edx, dword [esp + 0x240]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x244]
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
je 0x47146e
push 0
push ecx
push eax
push edx
mov ecx, edi
call fcn.0046f220
mov ecx, dword [0x4c606c]
cmp dword [ecx + 4], 1
je 0x47146e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x248]
test eax, eax
js 0x4714ab
and eax, 0x3fffffff
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x240]
push 0x17
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x28]
mov dword [eax + 0x20], ecx
jne 0x4714ce
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x40]
push eax
push esi
push ebx
call edx
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x47150e
mov dword [esi], 0x4b3398
rdtsc
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [esi + 4], edx
add esi, 0xc
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc