Function at 0x4262b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 0x18], xmm0
lea eax, [edi + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp dword [edi + 0x100c], 0
jne 0x4265a3
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0xd18]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov ebx, dword [eax + 4]
cmp ebx, eax
jne 0x4263bf
nop dword [eax + eax]
cmp dword [edi + 0x100c], 0
jne 0x4263b4
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
cmp dword [edi + 0x1004], esi
je 0x426370
mov esi, dword [edi + 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 0x42636d
call fcn.00461690
mov edi, dword [ebp - 0x20]
mov ebx, eax
mov dword [ebp - 0xc], edx
jmp 0x426379
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
push 0x64
lea ecx, [edi + 0xf40]
call fcn.0045ea50
test esi, esi
je 0x4263a0
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4263a0
call fcn.00461690
sub eax, ebx
sbb edx, dword [ebp - 0xc]
add dword [esi], eax
adc dword [esi + 4], edx
mov ebx, dword [edi + 0xd1c]
lea eax, [edi + 0xd18]
cmp ebx, eax
je 0x426320
mov edx, dword [ebp - 8]
cmp ebx, eax
je 0x4265a3
test ebx, ebx
je 0x4265a3
cmp dword [edi + 0x100c], 0
jne 0x4265a3
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0xc], esi
cmp esi, 3
je 0x426402
cmp esi, 4
je 0x426402
cmp esi, 5
jne 0x42652c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 0x30]
jne 0x42652c
cmp edx, dword [ebx + 0x34]
jne 0x42652c
test dword [ebx + 0x60], 0x400
je 0x42641f
mov eax, dword [edi + 0x6a0]
and eax, 0x4000
or eax, 0
je 0x42652c
cmp dword [edi + 0x86c], 0
jne 0x42652c
mov eax, dword [ebx + 0x58]
or eax, dword [ebx + 0x5c]
jne 0x42644b
lea eax, [ebx + 0xa8]
push eax
lea ecx, [edi + 0x1034]
call fcn.004657c0
jmp 0x426529
lea eax, [edi + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
cmp dword [ebp - 0x1c], ecx
jne 0x426468
cmp dword [ebp - 8], eax
je 0x426485
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [ebp - 4], ecx
lea ecx, [edi + 0x1034]
mov dword [ebp - 8], eax
call fcn.00465520
push dword [ebx + 0x18]
lea ecx, [edi + 0x1034]
push dword [ebx + 0x1c]
call fcn.00465540
mov eax, dword [ebp - 0x14]
sub eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 4]
sbb ecx, 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x42651c
jl 0x4264b2
test eax, eax
jne 0x42651c
lea eax, [ebx + 0xa8]
push eax
lea ecx, [edi + 0x1034]
call fcn.00465630
mov ecx, dword [ebp - 4]
test ecx, ecx
jg 0x42651c
jl 0x4264d4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jae 0x42651c
lea eax, [ebp - 0x118]
mov ecx, 0x3c
push eax
mov esi, ebx
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
lea eax, [edi + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x426537
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x426543
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], 0
lea ecx, [edi + 0xcf4]
mov dword [ebx], 0
dec dword [edi + 0xd20]
cmp dword [edi + 0x1014], 0
jne 0x42656b
lea ecx, [edi + 0xd00]
mov eax, dword [ecx]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov eax, dword [ecx]
push ecx
mov dword [eax + 4], ebx
inc dword [ecx + 8]
mov dword [ecx], ebx
lea ecx, [edi + 0xf40]
call fcn.0045eba0
cmp esi, 0x12
je 0x4265a3
cmp dword [edi + 0x100c], 0
lea eax, [edi + 0xd18]
mov edx, dword [ebp - 8]
je 0x426310
lea eax, [edi + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x100c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret