Function at 0x43b000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1c
call fcn.005e38a0
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp ecx, edi
je 0x43b4ee
jl 0x43b4ee
cmp ecx, 1
je 0x43b4ee
lea eax, [ecx + 7]
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
lea eax, [ecx - 1]
and eax, reloc.WS2_32.dll_getsockopt
mov dword [esp + 0x18], esi
jns 0x43b053
dec eax
or eax, 0xfffffff8
inc eax
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
mov eax, 0xff
shl eax, cl
mov dword [esp + 0x24], eax
mov eax, dword [fcn.00413cb0]
cmp eax, edi
je 0x43b08a
cmp eax, fcn.00413cb0
je 0x43b08a
push 0x27
push str.....crypto_bn_bn_rand.c
push esi
call eax
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x10], ebx
jmp 0x43b0af
cmp esi, edi
je 0x43b4d0
cmp dword [0x6cc8e4], edi
je 0x43b0a0
mov dword [0x6cc8e4], edi
push esi
call fcn.005e325a
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x43b4d0
call fcn.004030b0
cmp eax, edi
je 0x43b100
cmp eax, 0x6cc8c8
je 0x43b100
call fcn.004030b0
cmp eax, edi
je 0x43b0e0
mov eax, dword [eax + 4]
cmp eax, edi
je 0x43b0e0
push esi
push ebx
call eax
jmp 0x43b2db
push 0x3ac
push str.....crypto_rand_rand_lib.c
push 0x65
push 0x64
push 0x24
call fcn.004058f0
add esp, 0x14
or eax, 0xffffffff
jmp 0x43b2de
mov eax, dword [0x6d4db4]
cmp eax, 2
jne 0x43b111
mov eax, 1
jmp 0x43b138
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push edi
push 1
push 0x6d4db4
call esi
cmp eax, edi
je 0x43b192
cmp eax, 1
je 0x43b117
mov ecx, dword [0x6d4db4]
xor eax, eax
cmp ecx, 2
sete al
neg eax
sbb eax, eax
test dword [0x6d4dbc], eax
je 0x43b325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d483c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x43b2ce
cmp dword [0x6d4cd4], esi
je 0x43b1ad
push 0x270
push str.....cryptoinit.c
push 0x46
push 0x74
push 0xf
call fcn.004058f0
add esp, 0x14
jmp 0x43b325
call fcn.0041a580
mov dword [0x6d4dbc], eax
mov dword [0x6d4db4], 2
mov eax, 1
jmp 0x43b138
mov ecx, dword [0x6d4ce0]
cmp ecx, 2
jne 0x43b1bd
lea eax, [ecx - 1]
jmp 0x43b1e9
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
push 0x6d4ce0
call esi
test eax, eax
je 0x43b27d
cmp eax, 1
je 0x43b1c3
mov edx, dword [0x6d4ce0]
xor eax, eax
cmp edx, 2
sete al
neg eax
sbb eax, eax
test dword [0x6d4ce8], eax
je 0x43b325
push 0x403510
mov esi, 0x6d4cec
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4cf0], eax
je 0x43b325
push 0x403570
mov esi, 0x6d4cf4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4cf8], eax
je 0x43b325
push 1
call fcn.00403380
add esp, 4
test eax, eax
je 0x43b325
mov ecx, dword [0x6cc8ac]
mov edi, dword [0x6d4844]
mov dword [eax + 8], 1
mov eax, dword [0x6d4db8]
push eax
push ecx
push 1
mov ebx, edi
call fcn.00419890
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43b296
jmp 0x43b2b8
call fcn.00403460
mov dword [0x6d4ce0], 2
mov eax, 1
jmp 0x43b1e9
test ebx, ebx
jne 0x43b2ac
call fcn.0041a450
test eax, eax
jne 0x43b2ac
call fcn.00419a50
xor esi, esi
jmp 0x43b2b8
mov dword [esi + 0x58], 1
call fcn.00419b30
mov edx, dword [0x6d483c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [esp + 0x10]
test esi, esi
je 0x43b325
mov eax, dword [esp + 0x18]
push eax
push ebx
mov ecx, esi
call fcn.0041a220
add esp, 8
test eax, eax
jle 0x43b325
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x43b2f3
or byte [ebx + 1], 0x80
mov byte [ebx], 1
jmp 0x43b2fc
lea ecx, [eax - 1]
mov dl, 3
shl dl, cl
or byte [ebx], dl
mov al, byte [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
not al
and byte [ebx], al
or byte [edx + ebx - 1], 1
push ebx
call fcn.0040ab70
add esp, 4
test eax, eax
je 0x43b325
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43b337
push eax
push ebx
call fcn.00587a20
add esp, 8
mov eax, dword [fcn.00413ef0]
test eax, eax
je 0x43b356
cmp eax, fcn.00413ef0
je 0x43b356
push 0x58
push str.....crypto_bn_bn_rand.c
push ebx
call eax
add esp, 0xc
jmp 0x43b35f
push ebx
call fcn.005dcea1
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x43b503
cmp dword [ebp + 0x10], 0
je 0x43b385
mov esi, dword [ebp + 8]
mov ecx, 1
call fcn.0040b110
test eax, eax
je 0x43b503
mov eax, dword [ebp + 0x14]
mov edi, 0x6833f8
lea ecx, [eax + 2]
sub edi, eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
movzx edx, word [edi + ecx]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x43b503
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
dec esi
js 0x43b3fc
mov ecx, edx
mov edx, dword [ecx]
lea edi, [edx + esi*4]
mov edx, eax
xor eax, eax
push eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
or ecx, dword [edi]
xor ebx, ebx
push eax
or edx, ebx
push edx
push ecx
call fcn.005edd10
sub edi, 4
dec esi
mov dword [esp + 0x14], edx
jns 0x43b3c8
cmp eax, 0xffffffff
je 0x43b503
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
mov eax, dword [esp + 0x1c]
inc eax
add ecx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x800
jl 0x43b3a2
xor edi, edi
jmp 0x43b420
mov ebx, dword [ebp + 0x14]
mov esi, 0x6833fa
add ebx, 2
jmp 0x43b430
cmp esi, 0x6843f8
jge 0x43b4a1
cmp dword [ebp + 0xc], 0x1f
jg 0x43b45a
cmp edi, 0x7fffffff
ja 0x43b45a
mov ecx, dword [ebp + 8]
movzx edx, word [esi]
call fcn.0040aae0
imul edx, edx
add eax, edi
cmp edx, eax
ja 0x43b4a1
movzx eax, word [ebx]
movzx ecx, word [esi]
xor edx, edx
add eax, edi
div ecx
cmp dword [ebp + 0x10], 0
je 0x43b477
mov eax, 1
cmp eax, edx
sbb edx, edx
jmp 0x43b47b
neg edx
sbb edx, edx
inc edx
test edx, edx
jne 0x43b488
add ebx, 2
add esi, 2
jmp 0x43b430
xor edx, edx
cmp dword [ebp + 0x10], edx
setne dl
lea edi, [edi + edx*2 + 2]
cmp edi, 0xffffba38
jbe 0x43b420
jmp 0x43b013
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00449780
add esp, 8
test eax, eax
je 0x43b503
push esi
call fcn.0040a5c0
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x43b013
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x29
push str.....crypto_bn_bn_rand.c
push 0x41
push 0x7f
push 3
call fcn.004058f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5d
push str.....crypto_bn_bn_rand.c
push 0x76
push 0x7f
push 3
call fcn.004058f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret