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

Disassembly:
push 0xffffffffffffffff
push 0x4e8427
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x562998]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x18], ecx
je 0x484759
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x484759
push 0xb8
call fcn.004d8997
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov dword [esp + 0x30], ebx
je 0x4846eb
mov al, byte [esp + 0x40]
mov dword [esi + 0x38], ebx
mov byte [esi + 0x34], al
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov cl, byte [esp + 0x40]
mov dword [esi + 0x48], ebx
mov byte [esi + 0x44], cl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dl, byte [esp + 0x40]
mov dword [esi + 0x8c], ebx
mov byte [esi + 0x88], dl
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea eax, [esp + 0x13]
lea ecx, [esi + 0x98]
push eax
mov byte [esp + 0x34], 3
call fcn.004802e0
mov byte [esp + 0x1c], bl
mov word [esp + 0x1e], bx
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x28]
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov eax, dword [esp + 0x20]
mov dword [ecx], edx
mov ebp, 1
mov dword [esi + 0x20], 0x33333333
mov dword [ecx + 4], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [ecx + 8], bx
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb0], bl
mov dword [esi + 0xb4], ebx
jmp 0x4846f2
xor esi, esi
mov ebp, 1
mov ecx, dword [0x562998]
push esi
push ecx
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x484725
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x14]
push 0x50abe8
push edx
mov dword [esp + 0x1c], eax
call fcn.004bd204
push 8
call fcn.004d8997
add esp, 4
mov edi, eax
push 0x5629a0
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x56299c]
push 0x5629a0
mov dword [edi + 4], eax
mov dword [0x56299c], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x48475e
mov ebp, 1
inc dword [esi + 4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], 4
lea eax, [ecx - 1]
cmp eax, 0x1f
ja case.0x484781.7
xor edx, edx
mov dl, byte [eax + 0x484b4c]
jmp dword [edx*4 + 0x484b30]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
push ebp
lea ecx, [eax + eax*2]
push eax
mov edx, ecx
mov eax, dword [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
call fcn.00485140
jmp case.0x484781.7
mov edi, dword [esp + 0x40]
cmp edi, ebx
jbe case.0x484781.7
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov edx, dword [esi]
xor ebx, ebx
mov ecx, edx
mov dword [esp + 0x40], edx
mov bl, dh
and ecx, 0xff
xor edx, edx
mov byte [eax + 1], cl
mov dl, byte [esp + 0x42]
mov byte [eax], bl
mov byte [eax - 1], dl
add esi, 4
add eax, 3
dec edi
jne 0x4847d1
xor ebx, ebx
jmp 0x484983
mov eax, dword [esp + 0x40]
cmp eax, ebx
jbe case.0x484781.7
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, eax
lea esi, [edx + 1]
mov ax, word [edi]
add edi, 2
mov cl, al
mov edx, eax
and ecx, 0x1f
and edx, 0x3e0
shl ecx, 3
and eax, 0x7c00
or dl, 0x1c
or ecx, 7
or ax, 0x380
shr dx, 2
shr ax, 7
mov byte [esi + 1], cl
mov byte [esi], dl
mov byte [esi - 1], al
add esi, 3
dec ebp
jne 0x48481a
jmp 0x484983
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebx
mov ecx, 7
jbe case.0x484781.7
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
lea esi, [eax + 1]
mov edx, edi
mov al, 1
shr edx, 3
shl al, cl
mov dl, byte [edx + ebp]
and dl, al
shr dl, cl
mov byte [esp + 0x3c], dl
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
and eax, 0xff
dec ecx
cmp ecx, 0xffffffff
lea eax, [edx + eax*4]
mov dl, byte [eax]
mov byte [esi + 1], dl
mov dl, byte [eax + 1]
mov byte [esi], dl
mov al, byte [eax + 2]
mov byte [esi - 1], al
jne 0x4848b7
mov ecx, 7
mov eax, dword [esp + 0x40]
inc edi
add esi, 3
cmp edi, eax
jb 0x484878
jmp 0x484983
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebx
mov esi, ebp
jbe case.0x484781.7
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
lea edx, [ecx + 1]
lea ecx, [esi*4]
mov eax, edi
mov bl, 0xf
shr eax, 1
shl bl, cl
mov al, byte [eax + ebp]
and al, bl
shr al, cl
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
and ecx, 0xff
inc esi
cmp esi, 2
lea eax, [eax + ecx*4]
mov cl, byte [eax]
mov byte [edx + 1], cl
mov cl, byte [eax + 1]
mov byte [edx], cl
mov al, byte [eax + 2]
mov byte [edx - 1], al
jne 0x48492a
xor ebx, ebx
xor esi, esi
jmp 0x48492c
xor ebx, ebx
mov eax, dword [esp + 0x40]
inc edi
add edx, 3
cmp edi, eax
jb 0x4848e3
jmp 0x484983
mov edi, dword [esp + 0x40]
xor esi, esi
cmp edi, ebx
jbe case.0x484781.7
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x48]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x38]
add eax, 3
mov cl, byte [esi + edx]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
and edx, 0xff
inc esi
cmp esi, edi
lea ecx, [ebp + edx*4]
mov dl, byte [ebp + edx*4]
mov byte [eax - 2], dl
mov dl, byte [ecx + 1]
mov byte [eax - 3], dl
mov cl, byte [ecx + 2]
mov byte [eax - 4], cl
jb 0x48494f
mov ebp, 1
mov eax, dword [0x562998]
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], 0xffffffff
je 0x484b13
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebx
jne 0x484b13
push 0xb8
call fcn.004d8997
add esp, 4
cmp eax, ebx
je 0x484ab3
mov dl, byte [esp + 0x40]
mov cl, byte [esp + 0x40]
mov byte [eax + 0x34], dl
mov dl, byte [esp + 0x40]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], cl
mov cl, byte [esp + 0x40]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [eax + 0x88], dl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], cl
mov byte [esp + 0x1c], bl
mov word [esp + 0x1e], bx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 0x28]
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [edx + 4], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov word [edx + 8], bx
mov dword [eax + 0x54], ebp
mov dword [eax + 0x58], ebp
mov dword [eax + 0x5c], ebp
mov dword [eax + 0x60], ebp
mov dword [eax + 0x64], ebp
mov dword [eax + 0x68], ebp
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebp
mov dword [eax + 0x74], ebp
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ebp
mov dword [eax + 0x80], ebp
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov edi, eax
jmp 0x484ab5
xor edi, edi
mov edx, dword [0x562998]
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x484ae0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0x50abe8
push eax
call fcn.004bd204
push 8
call fcn.004d8997
add esp, 4
mov esi, eax
push 0x5629a0
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [0x56299c]
push 0x5629a0
mov dword [esi + 4], ecx
mov dword [0x56299c], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
dec eax
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x14