Function at 0x4245b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00424d30
mov eax, dword [ebp + 8]
add eax, 7
cdq
and edx, 7
add eax, edx
and eax, 0xfffffff8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov esi, 0xa
mov ecx, dword [ebx + 0x1004]
test ecx, ecx
je 0x42460c
mov eax, dword [ebx + 0x6a0]
and eax, 0x100
or eax, 0
je 0x42460c
cmp esi, ecx
sbb esi, esi
and esi, 0xfff40000
add esi, 0x100000
jmp 0x424612
mov esi, dword [ebx + 0x8cc]
cmp dword [ebx + 0x8e0], 0
je 0x424696
mov edx, dword [ebx + 0x6a4]
xor ecx, ecx
and edx, 0x40
mov eax, ecx
or eax, edx
jne 0x424638
test dword [ebx + 0x8d8], 0x2000
jne 0x424693
or ecx, edx
jne 0x424648
test dword [ebx + 0x8dc], 0x2000
jne 0x424693
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jl 0x424693
jg 0x424659
cmp edi, 0x80000
jb 0x424693
mov eax, dword [ebx + 0x6cc]
mov ecx, 0x14
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebx + 0x6c8]
imul eax, ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jg 0x424693
jl 0x42467f
cmp edi, eax
jae 0x424693
push ecx
push edi
lea ecx, [ebx + 0x690]
call fcn.00412d60
cmp esi, eax
cmovb eax, esi
mov esi, eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
jl 0x4246a2
jg 0x4246a4
cmp edx, esi
ja 0x4246a4
mov esi, edx
mov eax, dword [ebx + 0xdb4]
sub eax, dword [ebx + 0xbec]
test esi, esi
je 0x4246c4
mov ecx, dword [ebx + 0x8c8]
dec eax
add eax, ecx
xor edx, edx
div ecx
imul eax, ecx
mov ecx, dword [ebx + 0xbf0]
cmp eax, ecx
mov edi, dword [ebx + 0x8c4]
cmova eax, ecx
xor edx, edx
mov dword [ebp - 0xc], eax
sub ecx, dword [ebp - 0xc]
lea eax, [edi - 1]
add eax, esi
div edi
mov edx, eax
imul edx, edi
mov edi, dword [ebp - 8]
add edi, edx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
test esi, esi
je 0x424702
cmp edi, dword [ebp - 4]
cmovl edi, dword [ebp - 4]
cmp edi, ecx
jle 0x42479f
mov edx, dword [ebx + 0x8c4]
mov eax, 0x1000
cmp edx, eax
cmova eax, edx
add eax, 0x100000
cmp ecx, eax
jge 0x424781
xor edx, edx
mov dword [ebp + 8], edx
cmp dword [ebx + 0x1014], edx
je 0x42479f
push ecx
mov ecx, ebx
call fcn.004258d0
test eax, eax
je 0x42498f
cmp dword [ebx + 0x100c], 0
jne 0x42498f
mov eax, dword [ebx + 0xdb8]
cmp eax, dword [ebx + 0xdb4]
je 0x424764
cmp eax, dword [ebx + 0xdbc]
je 0x424764
int3
mov eax, dword [ebx + 0xbec]
mov dword [ebx + 0xdbc], eax
mov dword [ebx + 0xdb4], eax
mov dword [ebx + 0xdb8], eax
jmp 0x4245d5
mov esi, dword [ebp - 8]
sub ecx, esi
mov eax, ecx
cdq
and edx, 0x3ffff
add eax, edx
mov edx, dword [ebp + 8]
and eax, 0xfffc0000
mov dword [ebp - 4], eax
lea edi, [esi + eax]
lea esi, [ebx + 0xd00]
cmp dword [esi + 4], esi
jne 0x4247c0
lea eax, [ebx + 0xd0c]
cmp dword [eax + 4], eax
jne 0x4247c0
lea eax, [ebx + 0xd18]
cmp dword [eax + 4], eax
je 0x4247f3
cmp dword [ebx + 0x100c], 0
jne 0x4247f3
mov ecx, dword [ebx + 0xdb8]
mov eax, dword [ebx + 0xdb4]
test edx, edx
jne 0x424876
cmp ecx, eax
jae 0x424890
sub ecx, dword [ebx + 0xbec]
cmp ecx, edi
jl 0x424890
mov esi, dword [ebx + 0xbec]
mov ecx, dword [ebp - 4]
add esi, edx
add esi, ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ebx + 0xbec]
add eax, edx
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
sub eax, esi
add eax, edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 0xff5ca6ee
mov dword [esi + 0x2c], 0x39cb218f
test ecx, ecx
je 0x424847
mov eax, dword [ebx + 0xdb4]
mov dword [ecx], eax
cmp dword [ebx + 0x1014], 0
mov edx, dword [ebx + 0xbf0]
je 0x42491f
mov eax, dword [ebp + 8]
add eax, 0x140000
add eax, edi
cmp eax, edx
jbe 0x42491f
mov eax, 1
jmp 0x424921
cmp ecx, eax
jb 0x4247f3
mov eax, dword [ebx + 0xbec]
add eax, edx
add eax, edi
cmp eax, ecx
jbe 0x4247f3
mov ecx, ebx
call fcn.00424d30
mov edx, dword [ebp + 8]
test eax, eax
jne 0x4247a5
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
cmp dword [ebx + 0x1004], esi
je 0x4248df
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 0x4248df
call fcn.00461690
mov edi, eax
mov dword [ebp + 8], edx
jmp 0x4248e8
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push 0x64
lea ecx, [ebx + 0xf40]
call fcn.0045ea50
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4245d8
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4245d8
call fcn.00461690
sub eax, edi
sbb edx, dword [ebp + 8]
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x4245d5
xor eax, eax
mov dword [ebx + 0xdc4], eax
mov ecx, dword [esi + 0x1c]
add ecx, edi
mov dword [ebx + 0xdb4], ecx
sub ecx, dword [ebx + 0xbec]
cmp ecx, edx
ja 0x42494c
cmp dword [ebp - 0xc], edx
ja 0x42494c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x100]
mov ecx, 0x3c
push eax
lea edi, [ebp - 0x100]
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18