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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
cmp edi, 1
mov ebp, ecx
mov dword [esp + 0x14], ebp
jl 0x443aa1
cmp dword [ebp + 0x84], 0
je 0x44375b
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov byte [esp + 0x1c], 7
mov dword [esp + 0x20], eax
mov word [esp + 0x24], di
call fcn.0043f010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp + 0x84], 1
mov edx, dword [0x4c6074]
push edx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x44379e
mov dword [ecx], str.LtRemEntities
mov dword [ecx + 0xc], str.StInitCallBck
rdtsc
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
add ecx, 0x10
mov dword [esi + 4], ecx
push ecx
mov eax, esp
mov byte [eax], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0x20]
push ebp
push edi
push eax
call edx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c6060]
push eax
mov dword [esp + 0x24], bind
call ebx
mov ecx, dword [eax + 0x20]
lea edx, [edi*4 + 0x10]
and edx, 0xfffffff0
lea esi, [ecx + edx]
cmp esi, dword [eax + 0x2c]
ja 0x4437eb
mov dword [eax + 0x20], esi
mov eax, ecx
jmp 0x4437f5
mov esi, dword [eax]
push edx
mov edx, dword [esi + 0x14]
mov ecx, eax
call edx
mov ecx, edi
or ecx, 0x80000000
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
lea edi, [ecx + edi*4]
cmp ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edi
je 0x44383c
mov eax, dword [ecx]
add eax, 0x10
cmp dword [eax], 0
je 0x443835
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add eax, 0x14
mov dword [esi + edx*4], eax
add dword [esp + 0x1c], 1
add ecx, 4
cmp ecx, edi
jne 0x443818
mov eax, dword [0x4c6074]
push eax
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x443867
mov dword [ecx], str.StBroadPhase
rdtsc
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov edi, dword [ebp + 0x2f8]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x4c6060]
push eax
mov dword [esp + 0x34], bind
call ebx
mov ecx, dword [eax + 0x20]
lea edx, [edi*8 + 0x10]
and edx, 0xfffffff0
lea esi, [ecx + edx]
cmp esi, dword [eax + 0x2c]
ja 0x4438a3
mov dword [eax + 0x20], esi
mov eax, ecx
jmp 0x4438ad
mov esi, dword [eax]
push edx
mov edx, dword [esi + 0x14]
mov ecx, eax
call edx
mov ecx, dword [ebp + 0x54]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
or edi, 0x80000000
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x34], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x1c]
push edx
call eax
mov ecx, dword [0x4c6074]
push ecx
call ebx
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x4438ff
mov dword [esi], str.StDelAgents
rdtsc
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x40]
mov dword [esi + 4], edx
add esi, 0xc
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [ebp + 0x58]
call fcn.00481300
mov edx, dword [0x4c6060]
mov esi, dword [esp + 0x34]
push edx
call ebx
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x443930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x30]
test eax, eax
js 0x44395e
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call ebx
mov ecx, dword [esp + 0x28]
push 0x17
lea edx, [esi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6060]
mov esi, dword [esp + 0x24]
push edx
call ebx
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x44397d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x20]
test eax, eax
js 0x4439ab
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call ebx
mov ecx, dword [esp + 0x18]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6074]
push edx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x4439d7
mov dword [ecx], str.StRemoveCb
rdtsc
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [esi + 4], ecx
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x10]
je 0x443a53
mov ecx, dword [esi]
push ecx
push ebp
call fcn.0044c2f0
mov edx, dword [esi]
push edx
call fcn.0044b9f0
mov eax, dword [esi]
push eax
push ebp
call fcn.00449180
mov eax, dword [esi]
mov ebp, dword [eax + 0x54]
add esp, 0x14
test ebp, ebp
je 0x443a2f
mov ecx, dword [0x4c6060]
movzx edi, word [eax + 0x50]
push ecx
call ebx
push 2
shl edi, 5
push edi
push ebp
mov ecx, eax
call fcn.004023e0
mov edx, dword [esi]
xor eax, eax
mov dword [edx + 0x54], eax
mov ecx, dword [esi]
mov word [ecx + 0x50], ax
mov ecx, dword [esi]
cmp word [ecx + 4], 0
jne 0x443a3f
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esi]
call fcn.00453f80
mov ebp, dword [esp + 0x14]
add esi, 4
cmp esi, dword [esp + 0x10]
jne 0x4439e1
mov ecx, dword [0x4c6074]
push ecx
call ebx
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x443a7f
mov dword [ecx], 0x4b3398
rdtsc
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
add dword [ebp + 0x84], 0xffffffff
jne 0x443aa1
cmp byte [ebp + 0x8c], 0
jne 0x443aa1
cmp dword [ebp + 0x80], 0
je 0x443aa1
mov ecx, ebp
call fcn.0043eff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8