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

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
push dword [0x884c50]
mov edi, ecx
call ebp
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x59d30a
mov dword [esi], str.TthkbBlenderGenerator::updateSync
rdtsc
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
test byte [edi + 0x3a], 1
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0x48], 0
mov ebx, dword [eax + 0x30]
mov dword [esp + 0x18], ebx
je 0x59d66b
push dword [0x884adc]
mov esi, dword [edi + 0x68]
call ebp
lea edx, [esi*4 + 0x7f]
and edx, 0xffffff80
mov dword [esp + 0x34], edx
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x20], ebp
lea ecx, [edx + ebp]
cmp edx, dword [eax + 8]
jg 0x59d36f
cmp ecx, dword [eax + 0x10]
ja 0x59d36f
mov dword [eax + 0xc], ecx
jmp 0x59d37d
push edx
mov ecx, eax
call fcn.0046a3c0
mov ebp, eax
mov dword [esp + 0x20], eax
push dword [0x884adc]
mov esi, dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [esi*4 + 0x7f]
and ebx, 0xffffff80
mov dword [esp + 0x30], ebx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
lea ecx, [ebx + edx]
cmp ebx, dword [eax + 8]
jg 0x59d3b3
cmp ecx, dword [eax + 0x10]
ja 0x59d3b3
mov dword [eax + 0xc], ecx
jmp 0x59d3c1
push ebx
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x1c], eax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x10], ecx
jle 0x59d5c9
mov eax, ebp
mov ebx, edx
sub eax, edx
mov dword [esp + 0x2c], eax
nop dword [eax]
mov eax, dword [edi + 0x4c]
cmp byte [eax + esi*2], 0
je 0x59d4a0
mov eax, dword [edi + 0x40]
mov ebp, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x26], 2
jne 0x59d408
push eax
mov ecx, ebp
call fcn.00598ff0
mov ecx, dword [ebp + 0x5c]
push 0
push eax
call fcn.0046b890
mov ecx, dword [ebp + 0x58]
shl eax, 7
mov ecx, dword [ecx]
add eax, ecx
cmp byte [eax + 0x7d], 0
je 0x59d42b
mov eax, dword [eax + 0x5c]
shl eax, 7
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + ebx], eax
cmp byte [eax + 0x4f], 0
setne cl
movzx eax, cl
add dword [esp + 0x14], eax
movzx eax, word [edi + 0x38]
mov byte [esp + 0x48], cl
cmp ax, 0xffff
je 0x59d46a
cwde
cmp esi, eax
jne 0x59d461
movss xmm0, dword [0x718824]
movss dword [ebx], xmm0
jmp 0x59d490
xorps xmm0, xmm0
movss dword [ebx], xmm0
jmp 0x59d490
test cl, cl
jne 0x59d48a
mov eax, dword [esp + 0x10]
dec eax
cmp esi, eax
jne 0x59d47c
cmp byte [edi + 0x3c], cl
jne 0x59d48a
push esi
push edi
call fcn.005d9b10
fstp dword [ebx]
add esp, 8
jmp 0x59d490
mov dword [ebx], 0
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
add ebx, 4
inc esi
cmp esi, dword [esp + 0x10]
jl 0x59d3e0
test ecx, ecx
je 0x59d5c9
cmp byte [edi + 0x70], 0
mov ebp, dword [esp + 0x4c]
movss xmm0, dword [edi + 0x28]
setne al
push ebp
movzx eax, al
push eax
push ecx
movss dword [esp], xmm0
push dword [esp + 0x28]
push ecx
push dword [esp + 0x34]
call fcn.005dc610
add esp, 0x18
mov byte [edi + 0x70], 0
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x4c]
cmp byte [eax + ebx*2], 0
je 0x59d5bc
mov eax, dword [edi + 0x40]
mov esi, dword [esp + 0x18]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x26], 2
jne 0x59d518
push eax
mov ecx, esi
call fcn.00598ff0
mov ecx, dword [esi + 0x5c]
push 0
push eax
call fcn.0046b890
mov esi, eax
mov eax, dword [esp + 0x18]
shl esi, 7
mov eax, dword [eax + 0x58]
mov eax, dword [eax]
add esi, eax
cmp byte [esi + 0x7d], 0
je 0x59d541
mov esi, dword [esi + 0x5c]
shl esi, 7
add esi, eax
mov eax, dword [edi + 0x4c]
cmp byte [eax + ebx*2 + 1], 0
je 0x59d5bc
movss xmm0, dword [esi + 0x40]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x59d5bc
movss xmm0, dword [ebp + 0x40]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x59d5bc
movss xmm0, dword [ebp + 0x44]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, ebp
movss dword [esp], xmm0
call fcn.005d2cd0
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005d3020
test eax, eax
jne 0x59d5b4
mov eax, dword [edi + 0x40]
movss xmm0, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ebx*4]
movss dword [esp], xmm0
push dword [eax + 0x20]
call fcn.00598b20
mov eax, dword [edi + 0x4c]
mov byte [eax + ebx*2 + 1], 0
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x59d4f0
jmp 0x59d5e9
mov ebp, dword [esp + 0x4c]
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0x3f800000
push dword [0x884adc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x59d61c
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x59d61c
cmp dword [eax + 0x14], ebx
je 0x59d61c
mov dword [eax + 0xc], ebx
jmp 0x59d625
push edx
push ebx
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call esi
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x59d659
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x59d659
cmp dword [eax + 0x14], ebx
je 0x59d659
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ebx
jmp 0x59d75a
push edx
push ebx
mov ecx, eax
call fcn.0046a590
mov ecx, dword [esp + 0x10]
jmp 0x59d75a
movzx eax, word [edi + 0x38]
cmp ax, 0xffff
jne 0x59d697
mov ebp, dword [esp + 0x4c]
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0x3f800000
jmp 0x59d6ec
movsx ecx, ax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x26], 2
jne 0x59d6b1
push eax
mov ecx, ebx
call fcn.00598ff0
mov ecx, dword [ebx + 0x5c]
push 0
push eax
call fcn.0046b890
mov ecx, dword [ebx + 0x58]
shl eax, 7
mov ecx, dword [ecx]
add eax, ecx
cmp byte [eax + 0x7d], 0
je 0x59d6d4
mov eax, dword [eax + 0x5c]
shl eax, 7
add eax, ecx
mov ebp, dword [esp + 0x4c]
push 0x50
push eax
push ebp
call fcn.0045d810
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [ebp + 0x4e], 0
xor esi, esi
test ecx, ecx
jle 0x59d754
mov eax, dword [edi + 0x4c]
cmp byte [eax + esi*2], 0
je 0x59d74f
mov eax, dword [edi + 0x40]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x20]
cmp byte [eax + 0x26], 2
jne 0x59d712
push eax
mov ecx, ebx
call fcn.00598ff0
mov ecx, dword [ebx + 0x5c]
push 0
push eax
call fcn.0046b890
mov ecx, dword [ebx + 0x58]
shl eax, 7
mov ecx, dword [ecx]
add eax, ecx
cmp byte [eax + 0x7d], 0
je 0x59d735
mov eax, dword [eax + 0x5c]
shl eax, 7
add eax, ecx
cmp byte [eax + 0x4f], 0
mov dword [esp + 0x24], esi
setne cl
movzx eax, cl
add dword [esp + 0x14], eax
mov byte [esp + 0x48], cl
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ecx
jl 0x59d6f2
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [edi + 0x3c], 0
je 0x59d782
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x24], eax
jne 0x59d786
cmp byte [esp + 0x48], 0
jne 0x59d786
mov eax, dword [edi + 0x68]
sub eax, ecx
cmp eax, 1
jle 0x59d786
mov al, 1
jmp 0x59d788
mov ecx, dword [esp + 0x14]
xor al, al
mov byte [edi + 0x71], al
cmp ecx, dword [edi + 0x68]
je 0x59d794
test al, al
je 0x59d796
mov al, 1
mov byte [ebp + 0x4f], al
push dword [0x884c50]
call esi
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x59d7c4
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8