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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
mov esi, ecx
push edi
movsx eax, byte [esi + 0xe5]
cmp eax, 3
ja case.default.0x5d131d
jmp dword [eax*4 + 0x5d1598]
mov byte [esi + 0xe6], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0xe6], 1
mov eax, dword [esi + 0xd8]
mov dword [esp + 0x14], 0
cmp dword [eax + 0x10], 0
jle case.default.0x5d131d
xor edx, edx
or edi, 0xffffffff
mov dword [esp + 0x18], edx
nop dword [eax]
mov ecx, dword [esi + 0xd8]
push 1
add edx, dword [ecx]
movss xmm0, dword [ecx + 0x14]
mov ecx, 0x30
mov eax, dword [edx]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
mov word [esp + 0x28], cx
mov ecx, dword [ebp + 8]
push eax
mov word [esp + 0x28], 0x702
mov byte [esp + 0x2a], 2
mov word [esp + 0x2e], di
mov dword [esp + 0x38], 0
mov dword [esp + 0x4c], edx
movss dword [esp + 0x50], xmm0
call fcn.0064eea0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xd8]
inc ecx
mov edx, dword [esp + 0x18]
add edx, 0x28
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, dword [eax + 0x10]
jl 0x5d1360
inc byte [esi + 0xe5]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0xe6], 1
xor edi, edi
mov eax, dword [esi + 0xd8]
cmp dword [eax + 0x10], edi
jle case.default.0x5d131d
xor ecx, ecx
mov edx, 0x20
mov dword [esp + 0x18], ecx
or eax, 0xffffffff
mov word [esp + 0x26], ax
mov eax, dword [esi + 0xd8]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0x700
mov byte [esp + 0x22], 2
mov word [esp + 0x24], dx
mov eax, dword [eax + 8]
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0064eea0
mov eax, dword [esi + 0xd8]
inc edi
mov ecx, dword [esp + 0x18]
add ecx, 0x50
mov dword [esp + 0x18], ecx
cmp edi, dword [eax + 0x10]
mov eax, 0xffffffff
lea edx, [eax + 0x21]
jl 0x5d1400
inc byte [esi + 0xe5]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 0xe6], 0
mov eax, dword [esi + 0xd8]
push dword [eax + 0x10]
movss xmm0, dword [eax + 0x14]
push ecx
movss dword [esp], xmm0
push dword [eax + 4]
movss dword [esp + 0x24], xmm0
push dword [eax]
call fcn.005d2150
mov eax, dword [esi + 0xd8]
movss xmm0, dword [esp + 0x18]
push dword [eax + 0x10]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.005d2320
mov ecx, esi
call fcn.005d2530
mov ecx, esi
call fcn.005d1ec0
cmp byte [esi + 0xe7], 2
jne 0x5d14d5
mov byte [esi + 0xe7], 1
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x5d150a
mov dword [edi], str.TtpostGenCb
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x24], ecx
jle 0x5d1551
xor edi, edi
cmp dword [esi + 0x18], edi
jle 0x5d1547
nop dword [eax]
mov eax, dword [esi + 0x20]
movss xmm0, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
push ecx
movss dword [esp], xmm0
mov edx, dword [ecx]
push dword [eax + edi*4]
call dword [edx + 0x18]
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, dword [esi + 0x18]
jl 0x5d1520
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi + 0x24]
jl 0x5d1515
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x18], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x5d1586
mov dword [edi], 0x77f5ec
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
pop edi
mov byte [esi + 0xe5], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4