Function at 0x425680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x1164]
mov eax, dword [ebx + 0x116c]
cmp ecx, eax
je 0x4256d3
cmp dword [ebx + 0x100c], 0
jne 0x4256d3
sub eax, ecx
lea ecx, [ebx + 0x1160]
push eax
call fcn.0045ed40
test eax, eax
jne 0x4256d3
push 1
push eax
push str.Cant_alloc_memory_src_digest_
mov ecx, ebx
call fcn.0041a620
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x78
test ecx, ecx
je 0x4256f1
mov eax, dword [ebx + 0x8b4]
add eax, 0x78
add eax, ecx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
lea edx, [ebx + 0x1160]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x425733
mov esi, dword [ecx + 8]
mov eax, dword [edx + 0x18]
add esi, ecx
cmp ecx, eax
jb 0x42572f
mov ecx, dword [edx]
sub eax, ecx
mov edx, dword [edx + 0xc]
sub edx, esi
add edx, ecx
cmp edx, eax
cmovg eax, edx
lea edx, [ebx + 0x1160]
jmp 0x425736
sub eax, esi
jmp 0x425736
mov eax, dword [edx + 0xc]
mov esi, dword [ebx + 0x100c]
lea ecx, [eax - 0x1c]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
mov ecx, dword [esp + 0x10]
cmp eax, ecx
ja 0x4257e4
test esi, esi
jne 0x425890
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp dword [ebx + 0x1004], esi
je 0x425797
mov esi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test esi, esi
je 0x425797
call fcn.00461690
mov edi, eax
mov dword [esp + 0x14], edx
jmp 0x4257a3
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
push 0x64
lea ecx, [ebx + 0x1188]
call fcn.0045ea50
lea edx, [ebx + 0x1160]
test esi, esi
je 0x425704
mov eax, dword [esi]
lea edx, [ebx + 0x1160]
or eax, dword [esi + 4]
je 0x425704
call fcn.00461690
sub eax, edi
sbb edx, dword [esp + 0x14]
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x4256fe
test esi, esi
jne 0x425890
push ecx
sub esp, 8
mov ecx, edx
call fcn.0045d200
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x42588c
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
test ecx, ecx
je 0x425876
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x6c], eax
lea eax, [edi + 0x70]
mov esi, dword [ebx + 0x8b4]
cdq
add eax, esi
push 0
adc edx, 0
sub eax, 1
push esi
sbb edx, 0
push edx
push eax
call fcn.004a5ac0
imul eax, esi
mov esi, dword [esp + 0x14]
mov dword [edi + 0x68], eax
jmp 0x425894
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x68], 0
jmp 0x425894
xor edi, edi
jmp 0x425894
xor edi, edi
xor esi, esi
lea eax, [ebx + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp dword [ebx + 0x100c], 0
jne 0x4258bd
test esi, esi
jne 0x4258bd
push 1
push esi
push str.Cant_alloc_memory_rDCalcList_
mov ecx, ebx
call fcn.0041a620
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8