Function at 0x42bd00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x1248]
cmp eax, dword [ebx + 0x1250]
je 0x42bdc8
cmp dword [ebx + 0x100c], 0
jne 0x42bdc8
lea eax, [ebx + 0xf44]
xor esi, esi
push eax
call edi
mov eax, dword [ebx + 0xdc0]
test eax, eax
je 0x42bd51
cmp dword [eax + 0x10], 0x12
mov ecx, 1
cmove esi, ecx
lea eax, [ebx + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
test esi, esi
je 0x42bd6d
lea ecx, [ebx + 0xbec]
call fcn.0045ed00
lea esi, [ebx + 0x1270]
push esi
call edi
mov eax, dword [ebx + 0x1250]
lea ecx, [ebx + 0x1244]
sub eax, dword [ebx + 0x1248]
push eax
call fcn.0045ed40
test eax, eax
jne 0x42bda1
push 1
push eax
push str.Cant_alloc_memory_dst_digest_
mov ecx, ebx
call fcn.0041a620
push ecx
lea ecx, [ebx + 0x126c]
call fcn.0045eba0
push esi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp dword [ebx + 0x100c], 0
je 0x42bdc8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
test esi, esi
je 0x42bdd6
mov eax, dword [esi + 0x60]
add eax, eax
jmp 0x42bdd8
xor eax, eax
mov ecx, dword [ebp + 0xc]
lea edx, [eax + 0x78]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x42bdf2
mov eax, dword [ebx + 0x8bc]
add eax, ecx
add edx, eax
mov dword [ebp - 4], edx
lea eax, [ebx + 0x1270]
push eax
call edi
lea edx, [ebx + 0x1244]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x42be30
mov esi, dword [ecx + 8]
mov eax, dword [edx + 0x18]
add esi, ecx
cmp ecx, eax
jb 0x42be2c
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 + 0x1244]
jmp 0x42be33
sub eax, esi
jmp 0x42be33
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 [ebp - 4]
cmp eax, ecx
ja 0x42beda
test esi, esi
jne 0x42c003
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
cmp dword [ebx + 0x1004], esi
je 0x42be91
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 0x42be91
call fcn.00461690
mov edi, eax
mov dword [ebp + 0xc], edx
jmp 0x42be9a
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push 0x64
lea ecx, [ebx + 0x126c]
call fcn.0045ea50
lea edx, [ebx + 0x1244]
test esi, esi
je 0x42be01
mov eax, dword [esi]
lea edx, [ebx + 0x1244]
or eax, dword [esi + 4]
je 0x42be01
call fcn.00461690
sub eax, edi
sbb edx, dword [ebp + 0xc]
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x42bdfb
test esi, esi
jne 0x42c003
push ecx
sub esp, 8
mov ecx, edx
call fcn.0045d200
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x42bfff
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
test ecx, ecx
je 0x42bfe9
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 + 0x60]
mov esi, dword [ebx + 0x8bc]
add eax, 0x38
push 0
push esi
lea eax, [edi + eax*2]
cdq
add eax, esi
adc edx, 0
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.004a5ac0
imul eax, esi
mov esi, dword [ebp + 8]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x60]
add eax, eax
push eax
lea eax, [esi + 0x64]
push eax
lea eax, [edi + 0x70]
push eax
call fcn.00489a20
mov eax, dword [esi + 8]
add esp, 0xc
or eax, dword [esi + 0xc]
je 0x42bfa6
lea ecx, [ebx + 0x10a4]
call fcn.00412b10
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [edi + 0x28]
push eax
call fcn.00489a20
add esp, 0xc
mov esi, dword [ebp + 0xc]
push ecx
lea ecx, [ebx + 0x126c]
call fcn.0045eba0
lea eax, [ebx + 0x1270]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp dword [ebx + 0x100c], 0
jne 0x42bfde
test esi, esi
jne 0x42bfde
push 1
push esi
push str.Cant_alloc_memory_wDCalcList_
mov ecx, ebx
call fcn.0041a620
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x68], 0
jmp 0x42bfa9
xor edi, edi
jmp 0x42bfa9
xor edi, edi
xor esi, esi
jmp 0x42bfa9