Function at 0x6534429d
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x653693ce
mov ebp, dword [esp + 0x2c]
cmp ebp, edi
je 0x653693ce
mov cx, word [ebx + 2]
mov eax, ecx
and eax, 0x2000
cmp word [ebx], di
mov dword [esp + 0x14], eax
je 0x653693ce
cmp dword [ebx + 8], edi
ja 0x653693bf
test cl, 0x10
jne 0x653693bf
mov eax, dword [section..data]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call esi
cmp eax, edi
je 0x653692f5
test edi, edi
jl 0x653443ca
mov edx, dword [section..data]
push edx
call esi
mov eax, dword [eax]
xor edi, edi
test edi, edi
mov dword [esp + 0x28], eax
jne 0x65369313
push ebx
call fcn.65343388
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x65344342
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x653693ce
mov edx, dword [ebp]
mov edi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp + 4]
mov dword [ebx + 0x10], edx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [ebx + 0x14], eax
call fcn.65343388
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6536931e
mov edi, ebp
sub edi, esi
mov dword [esp + 0x18], edi
je 0x653443c8
test edi, edi
jl 0x653443e2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x6536934a
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0xc]
push ebp
mov edx, eax
mov esi, dword [eax]
push ecx
push edx
call dword [esi + 0x10]
test eax, eax
je 0x653693a0
mov dword [ebx + 0xc], eax
mov esi, dword [esp + 0x10]
test edi, edi
jl 0x65344433
mov ebx, dword [ebx + 0xc]
mov ecx, edi
add ebx, esi
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x65344461
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
test word [ebx + 2], 0xf20
je 0x6534437b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x65369332
mov eax, dword [esp + 0x28]
neg edi
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x65369340
mov esi, dword [ebx + 0xc]
mov ecx, edi
mov edi, eax
mov eax, ecx
add esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
jmp 0x6534437b
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x6534444c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x653693b2
jmp 0x653443c8
mov ecx, dword [ebx + 4]
mov dx, word [ebx + 2]
push ecx
push edx
neg edi
push edi
push eax
push ebx
call fcn.653435c7
jmp 0x6534443b
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x653443d6
call fcn.65353daf
cmp eax, edi
jge 0x65369305
mov edi, eax
jmp 0x65344306
mov ecx, dword [section..data]
push ecx
call esi
jmp 0x65344306
jl 0x653443ca
jmp 0x65344327
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], ecx
mov edi, 0x8007000e
jmp 0x653443ca
mov eax, dword [ebx + 0xc]
add eax, ebp
mov dword [esp + 0x2c], eax
jmp 0x6534437b
mov edi, 0x8007000e
jmp 0x653443ca
cmp ebp, esi
jbe 0x653443a7
mov eax, dword [esp + 0x28]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x65369379
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov edi, 0x8007000e
jmp 0x653443ca
mov ecx, esi
mov esi, dword [ebx + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and word [ebx + 2], 0xdfff
mov edi, dword [esp + 0x18]
mov dword [ebx + 0xc], eax
jmp 0x653443a3
test ebp, ebp
jne 0x653693dd
mov eax, dword [esp + 0x28]
push ebp
push eax
call dword [esi + 0xc]
jmp 0x653443a0
mov dword [esp + 0x2c], 0
jmp 0x653443c8
mov eax, 0x8002000d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov edi, 0x8007000e
jmp 0x653443ca