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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov ebx, ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x5c467d
mov eax, dword [edi]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x5c467d
cmp byte [ebp + 0x26], 2
jne 0x5c4671
mov eax, dword [ebp]
mov ecx, ebp
mov eax, dword [eax + 0x4c]
call eax
test al, al
je 0x5c467d
cmp word [ebp + 6], 1
jne 0x5c467d
mov ecx, dword [edi]
push ebp
mov ecx, dword [ecx + 0x30]
call fcn.00598f50
mov ecx, ebp
call fcn.0045c0c0
jmp 0x5c467d
push ebp
call fcn.00598e50
mov ebx, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5c46a0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov esi, eax
call fcn.0058b2d0
mov ecx, dword [esp + 0x48]
cmp esi, eax
cmove ecx, ebx
mov dword [esp + 0x48], ecx
xor edx, edx
mov dword [esp + 0x18], edx
test edi, edi
je 0x5c47dd
mov esi, dword [esp + 0x60]
test esi, esi
je 0x5c47dd
mov eax, dword [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ecx + 0x68]
test eax, eax
jne 0x5c46cc
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x14], ecx
mov ecx, esi
push ebp
mov byte [eax + 0x18], 1
call fcn.0046b460
cmp eax, dword [esi + 8]
jg 0x5c46f3
cmp byte [esp + 0x6c], 0
je 0x5c47dd
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
mov eax, dword [edi]
cmp dword [eax + 0x30], 0
je 0x5c47d5
push dword [0x884c50]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c472f
mov dword [esi], str.Ttupdate:activateAndSyncVars
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov edi, dword [esp + 0x64]
mov ecx, ebx
push 0
push edi
call fcn.00594f40
mov edx, dword [ebx]
mov ecx, ebx
push edi
mov esi, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x5c4794
movzx eax, word [ebp + 0x24]
push 0
cwde
push eax
call fcn.0046b890
mov dword [esp + 0x18], eax
test eax, eax
je 0x5c4794
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x5c4786
mov edx, dword [ebx]
push ecx
mov ecx, ebx
call dword [edx + 0x40]
mov edx, dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0x70]
mov eax, dword [ebx]
push dword [edx + 0x5c]
push edi
call dword [eax + 0x44]
movsx eax, word [ebp + 0x24]
mov ecx, dword [esp + 0x70]
push eax
call fcn.0046bc90
test esi, esi
je 0x5c47a2
push 1
push edi
mov ecx, ebx
call fcn.00594f40
push dword [0x884c50]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebp
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5c47e3
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
jmp 0x5c47e3
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x4c]
call dword [eax + 0x20]
mov esi, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], connect
mov dword [esp + 0x3c], esi
test esi, esi
je 0x5c4841
push dword [0x884adc]
call ebp
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 0x5c4839
cmp edi, dword [ecx + 0x10]
ja 0x5c4839
mov dword [ecx + 0xc], edi
jmp 0x5c4843
push edx
call fcn.0046a3c0
jmp 0x5c4843
xor eax, eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], eax
or esi, 0x80000000
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov eax, dword [ebx]
push ecx
push dword [esp + 0x50]
mov ecx, ebx
call dword [eax + 0x24]
mov ebp, dword [esp + 0x30]
push dword [0x884adc]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x18], ebp
call eax
lea edx, [ebp*4 + 0x7f]
and edx, 0xffffff80
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
add ecx, edx
cmp edx, dword [eax + 8]
jg 0x5c48b4
cmp ecx, dword [eax + 0x10]
ja 0x5c48b4
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
jmp 0x5c48c2
push edx
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x50]
test ebp, ebp
mov ebp, dword [esp + 0x58]
jle 0x5c4a00
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x5c49bb
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + edi*8]
test ebx, ebx
jne 0x5c48f7
mov dword [ecx + edi*4], 0xffffffff
jmp 0x5c49aa
mov ecx, dword [esp + 0x54]
push ebx
call fcn.0046b460
mov ecx, dword [esp + 0x54]
cmp eax, dword [ecx + 8]
jle 0x5c4962
cmp byte [esp + 0x6c], 0
jne 0x5c492a
cmp byte [esp + 0x29], 0
je 0x5c4923
mov eax, dword [esp + 0x2c]
cmp byte [eax + edi*8 + 5], 0
jne 0x5c492a
mov byte [esp + 0x50], 0
jmp 0x5c492f
mov byte [esp + 0x50], 1
push dword [esp + 0x70]
push dword [esp + 0x54]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push ebp
push ecx
push esi
push dword [esp + 0x70]
push dword [esp + 0x70]
push ebx
call fcn.005c4620
mov ecx, dword [esp + 0x84]
add esp, 0x30
push 0xffffffffffffffff
push ebx
call fcn.0046b890
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [eax + edi*4], edx
mov ecx, dword [esi]
shl edx, 7
inc dword [edx + ecx + 0x60]
cmp byte [esp + 0x2b], 0
je 0x5c499e
mov eax, dword [esi]
cmp byte [edx + eax + 0x7b], 0
je 0x5c499e
mov eax, dword [esp + 0x2c]
cmp byte [eax + edi*8 + 7], 0
je 0x5c499e
mov ecx, 1
jmp 0x5c49a0
xor ecx, ecx
mov eax, dword [esi]
mov byte [edx + eax + 0x7b], cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x5c48e0
mov ebx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
jle 0x5c4a00
mov edi, dword [ecx + edx*4]
cmp edi, 0xffffffff
jle 0x5c49fb
cmp byte [esp + 0x28], 0
je 0x5c49df
mov eax, dword [esp + 0x2c]
cmp byte [eax + edx*8 + 4], 0
je 0x5c49df
mov cl, 1
jmp 0x5c49e1
xor cl, cl
mov eax, dword [esi]
shl edi, 7
mov byte [edi + eax + 0x78], cl
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edi + ecx + 0x70], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edx
cmp edx, eax
jl 0x5c49c1
mov eax, dword [esi + 8]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
jne 0x5c4a20
push 0x80
push esi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, ebx
mov edi, eax
inc eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
shl edi, 7
add edi, dword [esi]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x64], eax
mov dword [edi + 0x54], ebx
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x70], 0xffffffff
mov byte [edi + 0x78], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x54]
call eax
mov ebx, dword [esp + 0x18]
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
test ebx, ebx
je 0x5c4aa7
push 0x50
lea eax, [ebx + 8]
push eax
push edi
call fcn.0045d810
mov byte [edi + 0x4e], 0
add esp, 0xc
mov al, byte [ebx + 0x62]
jmp 0x5c4afa
cmp dword [esp + 0x5c], 0
je 0x5c4afd
mov ecx, dword [esp + 0x60]
push 0xffffffffffffffff
push dword [esp + 0x48]
call fcn.0046b890
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5c4afd
cmp byte [edi + 0x79], 0
je 0x5c4aed
mov eax, dword [esp + 0x5c]
mov edx, ebx
shl edx, 7
mov eax, dword [eax]
add eax, edx
cmp byte [eax + 0x7d], 0
jne 0x5c4aed
push 0x50
push eax
push edi
call fcn.0045d810
add esp, 0xc
mov byte [edi + 0x4e], 0
mov eax, dword [esp + 0x5c]
shl ebx, 7
mov eax, dword [eax]
mov al, byte [ebx + eax + 0x7c]
mov byte [edi + 0x7c], al
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x54]
dec eax
push eax
push dword [esp + 0x48]
push 0x7d8954
call fcn.0046ba50
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x5c4bb4
test ebp, ebp
je 0x5c4bb4
mov edx, dword [esi + 4]
xor ebx, ebx
mov ecx, dword [esi]
mov eax, dword [ebp + 4]
shl edx, 7
mov dword [edx + ecx - 0x18], eax
test edi, edi
jle 0x5c4bb4
mov eax, dword [esp + 0x10]
mov edi, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
and eax, 0x3fffffff
cmp dword [ebp + 4], eax
jne 0x5c4b65
push 4
push ebp
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [eax + ecx*4], edi
inc dword [ebp + 4]
cmp byte [esp + 0x2a], 0
je 0x5c4b99
mov eax, dword [esp + 0x2c]
cmp byte [eax + ebx*8 + 6], 0
je 0x5c4b99
mov eax, dword [esi]
mov edx, edi
mov ecx, dword [esi + 4]
shl edx, 7
dec ecx
mov dword [edx + eax + 0x6c], ecx
mov eax, dword [esi]
mov byte [edx + eax + 0x7a], 1
mov ecx, dword [esi]
shl edi, 7
cmp dword [ecx + edi + 0x6c], 0xffffffff
jne 0x5c4bad
mov eax, dword [esi + 4]
dec eax
mov dword [ecx + edi + 0x6c], eax
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x5c4b41
cmp byte [esp + 0x68], 0
je 0x5c4be6
test byte [esp + 0x4c], 1
je 0x5c4be6
mov ecx, dword [esi + 4]
mov eax, dword [esi]
shl ecx, 7
cmp byte [ecx + eax - 7], 0
je 0x5c4be6
mov esi, dword [esp + 0x1c]
add eax, 0xffffff80
add eax, ecx
mov ecx, esi
push eax
push dword [esp + 0x68]
mov edx, dword [esi]
call dword [edx + 0x64]
push dword [0x884adc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebp
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5c4c19
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x5c4c19
cmp dword [eax + 0x14], ebx
je 0x5c4c19
mov dword [eax + 0xc], ebx
jmp 0x5c4c22
push edx
push ebx
mov ecx, eax
call fcn.0046a590
mov edi, dword [esp + 0x38]
xor ecx, ecx
mov eax, dword [esp + 0x30]
cmp edi, dword [esp + 0x2c]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
lea esi, [eax*8 + 0x7f]
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x5c4c6a
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x5c4c6a
cmp dword [eax + 0x14], edi
je 0x5c4c6a
mov dword [eax + 0xc], edi
jmp 0x5c4c73
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
js 0x5c4ca1
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x20]
call dword [eax + 0x10]
add esp, 0x30
ret