Function at 0x44ee90
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4aa5d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4e7ef0
mov dword [esp + 0x20], esi
mov dword [esi], 0
call fcn.00446ce0
mov edx, dword [eax + 4]
add eax, 4
inc edx
mov dword [eax], edx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
test eax, eax
je 0x44eee7
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x44eee7
cmp ecx, eax
jne 0x44ef1f
mov ecx, 0x4e7ef0
mov dword [esi], 5
mov dword [esp + 0x50], 0xffffffff
call fcn.00446ce0
mov ecx, dword [eax + 4]
add eax, 4
dec ecx
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x28
fld qword [esp + 0x78]
fcomp qword [0x4aee00]
fnstsw ax
test ah, 1
jne 0x44ef40
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x3ff00000
fld qword [0x4aee08]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x44ef61
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x68]
fld qword [0x4aee00]
lea ecx, [eax + eax*2]
lea edx, [esi + esi*2]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
xor edx, edx
fsub qword [esp + 0x78]
test ecx, ecx
setle dl
dec edx
fstp qword [esp + 0x40]
and edx, ecx
mov edi, edx
cmp edi, eax
mov dword [esp + 0x18], edi
jl 0x44efa3
mov edi, eax
mov dword [esp + 0x18], edi
add esi, ecx
xor edx, edx
test esi, esi
setle dl
dec edx
and edx, esi
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x44efbd
mov edx, eax
mov dword [esp + 0x1c], edx
mov ebp, dword [esp + 0x74]
xor eax, eax
test ebp, ebp
setle al
dec eax
and eax, ebp
mov esi, eax
mov eax, dword [esp + 0x60]
cmp esi, eax
mov dword [esp + 0x68], esi
jl 0x44efdd
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0x6c]
xor ebx, ebx
add esi, ebp
test esi, esi
setle bl
dec ebx
and esi, ebx
cmp esi, eax
mov dword [esp + 0x5c], esi
jl 0x44effd
mov esi, eax
mov dword [esp + 0x5c], esi
jmp 0x44f001
mov esi, dword [esp + 0x5c]
fld qword [esp + 0x78]
fcomp qword [0x4aee00]
fnstsw ax
test ah, 0x40
je 0x44f3ed
lea eax, [edi + edi*2]
lea edx, [edx + edx*2]
sub edx, eax
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x60], edx
mov edx, ecx
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x68]
cmp ecx, esi
mov dword [esp + 0x70], ecx
jae 0x44f240
mov edx, dword [esp + 0x10]
mov ebx, ecx
imul ebx, edx
imul edx, ebp
mov ebp, ecx
mov dword [esp + 0x74], edx
imul ebp, dword [esp + 0x14]
add ebp, eax
mov eax, dword [esp + 0x58]
add ebp, eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x60]
add esi, edx
mov edi, ebp
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4e7ef0
call fcn.00446ce0
cmp dword [eax + 4], 1
jne 0x44f215
mov eax, dword [0x4e7ef0]
xor edi, edi
cmp eax, 0xffffffff
je 0x44f144
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f144
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x50], 1
je 0x44f0e0
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f0e2
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f112
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x58]
push 0x4ca180
push edx
mov dword [esp + 0x60], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [edi], 0
je 0x44f215
mov eax, dword [0x4e7ef0]
xor edi, edi
cmp eax, 0xffffffff
je 0x44f1fa
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f1fa
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x50], 2
je 0x44f193
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f195
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f1c8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x78]
push 0x4ca180
push edx
mov dword [esp + 0x80], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
sub ecx, eax
sub edx, eax
push ecx
push edx
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x44f217
xor eax, eax
test eax, eax
jne 0x44f313
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
inc eax
add ebx, esi
add ebp, edx
cmp eax, ecx
mov dword [esp + 0x70], eax
jb 0x44f05e
mov eax, dword [0x4e7ef0]
or esi, 0xffffffff
xor edi, edi
cmp eax, esi
mov dword [esp + 0x50], esi
je 0x44f2f2
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f2f2
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x50], 8
je 0x44f28f
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f291
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f2c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x58]
push 0x4ca180
push edx
mov dword [esp + 0x60], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x28
mov eax, dword [esp + 0x20]
or esi, 0xffffffff
xor edi, edi
mov dword [esp + 0x50], esi
mov dword [eax], 0xe
mov eax, dword [0x4e7ef0]
cmp eax, esi
je 0x44f81f
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f81f
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x50], 3
je 0x44f36c
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f36e
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f39d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x58]
push 0x4ca180
push edx
mov dword [esp + 0x60], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x28
mov ecx, dword [esp + 0x68]
cmp ecx, esi
mov dword [esp + 0x74], ecx
jae 0x44f240
mov eax, ecx
imul eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, ecx
mov ecx, dword [esp + 0x10]
imul eax, ecx
mov dword [esp + 0x60], eax
mov eax, ecx
imul eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jae 0x44f501
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x1c]
lea ebp, [eax + eax*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x6c]
add ecx, edx
sub ebx, eax
lea esi, [ecx + ebp + 2]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
mov eax, ebp
sub eax, edx
mov edx, dword [esp + 0x2c]
lea edi, [ecx + edx]
xor ecx, ecx
add edi, eax
xor eax, eax
mov al, byte [esi - 2]
mov cl, byte [edi]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov dword [esp + 0x30], ecx
fmul qword [esp + 0x40]
fild dword [esp + 0x30]
fmul qword [esp + 0x78]
faddp st(1)
call fcn.00481a50
xor edx, edx
mov byte [esi - 2], al
mov dl, byte [esi - 1]
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
mov dword [esp + 0x30], eax
fmul qword [esp + 0x40]
fild dword [esp + 0x30]
fmul qword [esp + 0x78]
faddp st(1)
call fcn.00481a50
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov byte [esi - 1], al
mov dl, byte [edi + 2]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
mov dword [esp + 0x30], edx
fmul qword [esp + 0x40]
fild dword [esp + 0x30]
fmul qword [esp + 0x78]
faddp st(1)
call fcn.00481a50
mov byte [esi], al
add ebp, 3
add esi, 3
dec ebx
jne 0x44f45e
mov eax, dword [0x4e7ef0]
xor edi, edi
cmp eax, 0xffffffff
je 0x44f5b1
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f5b1
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x50], 4
je 0x44f547
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f549
xor edi, edi
mov eax, dword [0x4e7ef0]
push edi
push eax
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f578
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x34]
push 0x4ca180
push ecx
mov dword [esp + 0x3c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
mov ebx, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call ebx
mov edx, dword [0x4e7ef4]
mov ebp, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [esi + 4], edx
push 0x4e7ef8
mov dword [0x4e7ef4], esi
call ebp
jmp 0x44f5bd
mov ebx, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [edi + 4], 1
jne 0x44f72f
mov eax, dword [0x4e7ef0]
xor edi, edi
cmp eax, 0xffffffff
je 0x44f669
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f669
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x50], 5
je 0x44f60d
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f60f
xor edi, edi
mov eax, dword [0x4e7ef0]
push edi
push eax
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f63e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x38]
push 0x4ca180
push ecx
mov dword [esp + 0x40], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call ebx
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], edx
mov dword [0x4e7ef4], esi
call ebp
cmp dword [edi], 0
je 0x44f72f
mov eax, dword [0x4e7ef0]
xor edi, edi
cmp eax, 0xffffffff
je 0x44f714
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f714
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x50], 6
je 0x44f6b8
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f6ba
xor edi, edi
mov eax, dword [0x4e7ef0]
push edi
push eax
mov byte [esp + 0x58], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f6e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x3c]
push 0x4ca180
push ecx
mov dword [esp + 0x44], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call ebx
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], edx
mov dword [0x4e7ef4], esi
call ebp
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
sub ecx, eax
sub edx, eax
push ecx
push edx
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x44f731
xor eax, eax
test eax, eax
jne 0x44f76b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
add edi, ecx
mov ecx, dword [esp + 0x5c]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], esi
jb 0x44f41e
jmp 0x44f240
mov eax, dword [esp + 0x20]
or esi, 0xffffffff
xor edi, edi
mov dword [esp + 0x50], esi
mov dword [eax], 0xe
mov eax, dword [0x4e7ef0]
cmp eax, esi
je 0x44f81f
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x44f81f
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x50], 7
je 0x44f7c4
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x44f7c6
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x44f7f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x58]
push 0x4ca180
push edx
mov dword [esp + 0x60], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call ebx
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call ebp
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x48]
dec eax
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 0x28