Function at 0x4265c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x20], xmm0
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
nop dword [eax]
mov dword [ebp - 8], 0
nop word [eax + eax]
mov eax, dword [esi + 0x1178]
test eax, eax
je 0x426616
cmp dword [eax + 0x2c], 0
lea ebx, [eax + 0x10]
mov dword [ebp - 8], ebx
jne 0x426692
mov ecx, dword [esi + 0x100c]
test ecx, ecx
jne 0x42669a
xor edi, edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp dword [esi + 0x1004], edi
je 0x42665d
mov edi, dword [esi + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test edi, edi
je 0x42665d
call fcn.00461690
mov ebx, eax
mov dword [ebp - 4], edx
jmp 0x426666
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], eax
push 0x64
lea ecx, [esi + 0x1188]
call fcn.0045ea50
test edi, edi
je 0x426600
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x426600
call fcn.00461690
sub eax, ebx
sbb edx, dword [ebp - 4]
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x426600
mov ecx, dword [esi + 0x100c]
jmp 0x42669d
mov ebx, dword [ebp - 8]
test ecx, ecx
jne 0x426951
mov ecx, dword [ebx + 0x1c]
cmp ecx, 6
je 0x42691f
cmp ecx, 1
je 0x4266bf
cmp ecx, 2
jne 0x426758
cmp dword [ebx + 0x24], 0
je 0x426724
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx]
jne 0x4266e1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 4]
je 0x4266ec
lea ecx, [esi + 0x1034]
call fcn.00465520
push dword [ebx + 0x24]
lea ecx, [esi + 0x1034]
push dword [ebx + 0x68]
call fcn.00465540
cmp dword [ebx + 0x1c], 2
jne 0x426715
lea eax, [esi + 0x1064]
push eax
lea ecx, [esi + 0x1034]
call fcn.00465630
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
jmp 0x42674d
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
jne 0x42674d
lea eax, [ebx + 0x28]
push eax
lea ecx, [esi + 0x1034]
call fcn.004657c0
lea eax, [esi + 0x1064]
push eax
lea ecx, [esi + 0x1034]
call fcn.004657c0
mov edx, dword [ebx]
mov dword [ebp - 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 0x1c]
cmp eax, 1
je 0x4268e2
cmp eax, 5
je 0x4268e2
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0x1c]
lea edi, [esi + 0x11d8]
xor eax, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 2
push edi
setne al
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
push 0x50
sub esp, 8
lea ebx, [esi + 0x11ac]
mov ecx, ebx
call fcn.0045d200
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4267d8
push 1
push eax
push str.Cant_alloc_memory_rDResList_
mov ecx, esi
call fcn.0041a620
mov eax, dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
push edi
call eax
jmp 0x4268d5
cmp dword [ebp - 0x18], 2
mov ecx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
jne 0x426812
lea ecx, [esi + 0x1034]
call fcn.00412b10
push eax
lea eax, [esi + 0x1064]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call fcn.00489a20
add esp, 0xc
push ecx
lea ecx, [esi + 0x11d4]
call fcn.0045eba0
nop
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x426853
mov edi, dword [eax + 8]
mov edx, dword [ebx + 0x18]
add edi, eax
cmp eax, edx
jb 0x426849
mov ecx, dword [ebx + 0xc]
sub edx, dword [ebx]
sub ecx, edi
add ecx, dword [ebx]
lea edi, [esi + 0x11d8]
cmp ecx, edx
cmovg edx, ecx
jmp 0x426856
sub edx, edi
lea edi, [esi + 0x11d8]
jmp 0x426856
mov edx, dword [ebx + 0xc]
lea ecx, [edx - 0x1c]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
cmp eax, dword [esi + 0x11d0]
jg 0x4268ce
cmp dword [esi + 0x100c], 0
jne 0x4268ce
mov eax, dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
push edi
call eax
lea edi, [esi + 0xf44]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp dword [esi + 0x1030], 0
jne 0x4268a5
push ecx
lea ecx, [esi + 0xf40]
mov dword [esi + 0x1030], 1
call fcn.0045eba0
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea edi, [esi + 0x11d8]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
push 0xfa
lea ecx, [esi + 0x11d4]
call fcn.0045ea50
jmp 0x426820
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1178]
test eax, eax
je 0x42690e
mov edx, dword [eax + 4]
mov ecx, dword [eax]
test edx, edx
je 0x4268f9
mov dword [edx], ecx
jmp 0x4268ff
mov dword [esi + 0x1174], ecx
mov eax, dword [eax + 4]
dec dword [esi + 0x117c]
mov dword [esi + 0x1178], eax
push ecx
lea ecx, [esi + 0x1188]
call fcn.0045eba0
jmp 0x4265f0
test eax, eax
je 0x426945
mov edx, dword [eax + 4]
mov ecx, dword [eax]
test edx, edx
je 0x426930
mov dword [edx], ecx
jmp 0x426936
mov dword [esi + 0x1174], ecx
mov eax, dword [eax + 4]
dec dword [esi + 0x117c]
mov dword [esi + 0x1178], eax
push ecx
lea ecx, [esi + 0x1188]
call fcn.0045eba0
lea eax, [esi + 0x118c]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x100c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret