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

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
push 0xffffffffffffffff
mov ebp, ebx
push ebx
mov dword [esp + 0x24], ebp
call fcn.0046b890
cmp byte [ebx + 0x26], 2
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x20], esi
jne 0x5c4d13
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x4c]
call eax
test al, al
je 0x5c4d91
cmp word [ebx + 6], 1
jne 0x5c4d91
mov ecx, dword [esp + 0x4c]
push ebx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x30]
call fcn.00598f50
mov ecx, ebx
call fcn.0045c0c0
jmp 0x5c4d91
cmp esi, 0xffffffff
jne 0x5c4e4a
push dword [0x884c50]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x5c4d47
mov dword [ecx], str.Ttclone
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xc]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x4c]
push ebx
mov eax, dword [ecx]
mov ecx, dword [eax + 0x30]
call fcn.00598e50
push dword [0x884c50]
mov ebp, eax
mov dword [esp + 0x20], ebp
call edi
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c4d87
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x20]
mov eax, dword [ebx]
mov ecx, ebx
prefetchnta byte [ebp]
mov eax, dword [eax + 0x58]
call eax
mov edx, dword [esp + 0x4c]
test al, al
mov eax, dword [esp + 0x50]
cmovne eax, ebp
mov dword [esp + 0x50], eax
mov dword [edx + 4], eax
mov ecx, dword [eax + 0x68]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x5c4dc1
mov eax, dword [edx]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], 1
mov byte [esp + 0x12], 1
cmp esi, 0xffffffff
je 0x5c4e67
cmp byte [esp + 0x68], 0
je 0x5c4e62
push dword [0x884c50]
call edi
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c4e0c
mov dword [esi], str.Ttdeact
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [ebp]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, ebp
call dword [eax + 0x1c]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c4e67
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
jmp 0x5c4e67
mov eax, dword [esp + 0x58]
mov ecx, esi
shl ecx, 7
mov eax, dword [eax]
mov ebp, dword [ecx + eax + 0x54]
mov dword [esp + 0x1c], ebp
jmp 0x5c4d91
mov byte [esp + 0x12], 0
mov eax, dword [ebp]
mov ecx, ebp
mov eax, dword [eax + 0x54]
call eax
cmp byte [esp + 0x12], 0
mov byte [esp + 0x13], al
je 0x5c4f12
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c4eaf
mov dword [esi], str.Ttupdate:activateAndSyncVars
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [esp + 0x4c]
mov ecx, ebp
push 0
push edi
call fcn.00594f40
mov edx, dword [ebp]
mov ecx, ebp
push edi
mov esi, eax
call dword [edx + 0x10]
test esi, esi
je 0x5c4ee3
cmp byte [esp + 0x13], 0
jne 0x5c4ed9
cmp byte [ebp + 0x28], 0
je 0x5c4ee3
push 1
push edi
mov ecx, ebp
call fcn.00594f40
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c4f12
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [ebp]
mov ecx, ebp
push 1
call dword [eax + 0x20]
mov esi, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], connect
mov dword [esp + 0x40], esi
test esi, esi
je 0x5c4f73
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea edx, [esi*8 + 0x7f]
and edx, 0xffffff80
mov eax, dword [ecx + 0xc]
lea edi, [eax + edx]
cmp edx, dword [ecx + 8]
jg 0x5c4f6b
cmp edi, dword [ecx + 0x10]
ja 0x5c4f6b
mov dword [ecx + 0xc], edi
jmp 0x5c4f75
push edx
call fcn.0046a3c0
jmp 0x5c4f75
xor eax, eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], eax
or esi, 0x80000000
lea eax, [esp + 0x30]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov eax, dword [ebp]
push ecx
push 1
mov ecx, ebp
call dword [eax + 0x24]
mov ebp, dword [esp + 0x34]
push dword [0x884adc]
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [ebp*4 + 0x7f]
and esi, 0xffffff80
mov dword [esp + 0x24], esi
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
lea edx, [ecx + esi]
cmp esi, dword [eax + 8]
jg 0x5c4fe1
cmp edx, dword [eax + 0x10]
ja 0x5c4fe1
mov dword [eax + 0xc], edx
jmp 0x5c4fef
push esi
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x60]
test ebp, ebp
mov ebp, dword [esp + 0x54]
jle 0x5c50d2
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x5c50d2
nop dword [eax + eax]
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + edi*8]
test ebx, ebx
jne 0x5c5027
mov dword [ecx + edi*4], 0xffffffff
jmp 0x5c50c3
mov ecx, dword [esp + 0x64]
push 0xffffffffffffffff
push ebx
call fcn.0046b890
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5c5085
cmp byte [esp + 0x68], 0
jne 0x5c505a
cmp byte [esp + 0x2d], 0
je 0x5c5053
mov eax, dword [esp + 0x30]
cmp byte [eax + edi*8 + 5], 0
jne 0x5c505a
mov byte [esp + 0x60], 0
jmp 0x5c505f
mov byte [esp + 0x60], 1
push dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
push ecx
push esi
push dword [esp + 0x68]
push dword [esp + 0x68]
push ebp
push dword [esp + 0x68]
push dword [esp + 0x68]
push ebx
call fcn.005c4cb0
add esp, 0x24
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
mov eax, dword [esi]
shl ecx, 7
inc dword [ecx + eax + 0x60]
cmp byte [esp + 0x2f], 0
je 0x5c50b7
mov eax, dword [esi]
cmp byte [ecx + eax + 0x7b], 0
je 0x5c50b7
mov eax, dword [esp + 0x30]
cmp byte [eax + edi*8 + 7], 0
je 0x5c50b7
mov edx, 1
jmp 0x5c50b9
xor edx, edx
mov eax, dword [esi]
mov byte [ecx + eax + 0x7b], dl
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x14]
jl 0x5c5010
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
prefetchnta byte [eax]
mov eax, dword [esi + 8]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
jne 0x5c50f9
push 0x80
push esi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, eax
mov edx, dword [esp + 0x20]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
shl edi, 7
add edi, dword [esi]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x64], eax
mov al, byte [esp + 0x13]
mov dword [edi + 0x50], ebx
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x70], 0xffffffff
mov byte [edi + 0x78], 0
mov byte [edi + 0x79], al
mov dword [edi + 0x6c], 0xffffffff
mov dword [edi + 0x74], 0
mov dword [edi + 0x7a], 0x10100
mov dword [edi + 0x5c], 0xffffffff
cmp edx, 0xffffffff
je 0x5c519f
test al, al
je 0x5c518f
mov eax, dword [esp + 0x58]
mov ecx, edx
shl ecx, 7
mov eax, dword [eax]
add eax, ecx
cmp byte [eax + 0x7d], 0
jne 0x5c518f
push 0x50
push eax
push edi
call fcn.0045d810
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov byte [edi + 0x4e], 0
mov eax, dword [esp + 0x58]
shl edx, 7
mov eax, dword [eax]
mov al, byte [edx + eax + 0x7c]
mov byte [edi + 0x7c], al
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x64]
dec eax
push eax
push ebx
push 0x7d8954
call fcn.0046ba50
cmp dword [esp + 0x14], 0
mov edi, dword [esi + 4]
lea edx, [edi - 1]
mov dword [esp + 0x50], edx
jle 0x5c5285
mov ecx, dword [esi]
xor ebx, ebx
mov eax, dword [ebp + 4]
shl edi, 7
mov dword [edi + ecx - 0x18], eax
cmp dword [esp + 0x14], ebx
jle 0x5c5285
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
and eax, 0x3fffffff
cmp dword [ebp + 4], eax
jne 0x5c5208
push 4
push ebp
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [eax + ecx*4], edi
inc dword [ebp + 4]
cmp edi, 0xffffffff
jle 0x5c5246
cmp byte [esp + 0x2c], 0
je 0x5c522f
mov eax, dword [esp + 0x30]
cmp byte [eax + ebx*8 + 4], 0
je 0x5c522f
mov dl, 1
jmp 0x5c5231
xor dl, dl
mov eax, dword [esi]
mov ecx, edi
shl ecx, 7
mov byte [ecx + eax + 0x78], dl
mov eax, dword [esi]
mov edx, dword [esp + 0x50]
mov dword [ecx + eax + 0x70], edx
cmp byte [esp + 0x2e], 0
je 0x5c526a
mov eax, dword [esp + 0x30]
cmp byte [eax + ebx*8 + 6], 0
je 0x5c526a
mov eax, dword [esi]
mov ecx, edi
shl ecx, 7
mov dword [ecx + eax + 0x6c], edx
mov eax, dword [esi]
mov byte [ecx + eax + 0x7a], 1
mov eax, dword [esi]
shl edi, 7
cmp dword [edi + eax + 0x6c], 0xffffffff
jne 0x5c527a
mov dword [edi + eax + 0x6c], edx
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x5c51e0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shl ecx, 7
cmp byte [ecx + eax - 7], 0
je 0x5c52a9
mov ebx, dword [esp + 0x1c]
add eax, 0xffffff80
add eax, ecx
mov ecx, ebx
push eax
push dword [esp + 0x50]
mov edx, dword [ebx]
call dword [edx + 0x64]
push dword [0x884adc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebp
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5c52dc
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x5c52dc
cmp dword [eax + 0x14], ebx
je 0x5c52dc
mov dword [eax + 0xc], ebx
jmp 0x5c52e5
push edx
push ebx
mov ecx, eax
call fcn.0046a590
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov eax, dword [esp + 0x34]
cmp edi, dword [esp + 0x30]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea esi, [eax*8 + 0x7f]
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x5c532d
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x5c532d
cmp dword [eax + 0x14], edi
je 0x5c532d
mov dword [eax + 0xc], edi
jmp 0x5c5336
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], 0
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
js 0x5c5366
mov edx, dword [0x7d8954]
and ecx, 0x3fffffff
shl ecx, 3
push ecx
push dword [esp + 0x24]
mov ecx, 0x7d8954
call dword [edx + 0x10]
mov eax, dword [esp + 0x40]
add esp, 0x34
ret