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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c286f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x4a4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [eax], ebx
push 0x4f16e4
mov dword [ecx], ebx
push edx
mov dword [ebp - 0x24], edi
mov dword [edi], ebx
call fcn.0049b78d
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x1c], esi
jne 0x45e726
push ebx
call fcn.0049b6df
add esp, 4
mov dword [edi], 2
jmp 0x45e833
push esi
push 0xe
lea eax, [ebp - 0xb4]
push 1
push eax
call fcn.0049b95b
add esp, 0x10
cmp eax, 0xe
je 0x45e74a
mov dword [edi], 3
jmp 0x45e82a
cmp byte [ebp - 0xb4], 0x42
jne 0x45e824
cmp byte [ebp - 0xb3], 0x4d
jne 0x45e824
push esi
push 0x28
lea ecx, [ebp - 0xa4]
push 1
push ecx
call fcn.0049b95b
add esp, 0x10
cmp eax, 0x28
je 0x45e788
mov dword [edi], 3
jmp 0x45e82a
mov eax, dword [ebp - 0x84]
cmp eax, ebx
jne 0x45e7a7
mov ecx, dword [ebp - 0x96]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x84], eax
jmp 0x45e7ad
mov ecx, dword [ebp - 0x96]
mov edx, dword [ebp - 0xaa]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x94]
cmp edx, 2
jne 0x45e7c7
cmp cx, 4
je 0x45e7da
cmp edx, 1
jne 0x45effc
cmp cx, 8
jne 0x45effc
shl eax, 2
push esi
push eax
lea ecx, [ebp - 0x4b4]
push 1
push ecx
call fcn.0049b95b
mov edx, dword [ebp - 0x84]
add esp, 0x10
lea ecx, [edx*4]
cmp eax, ecx
je 0x45e809
mov dword [edi], 3
jmp 0x45e82a
mov edx, dword [ebp - 0x3c]
push ebx
push edx
push esi
call fcn.0049ba72
add esp, 0xc
test eax, eax
je 0x45e848
push esi
call fcn.0049b6df
add esp, 4
mov dword [edi], 6
push esi
call fcn.0049b6df
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x3c], ecx
mov dword [edx], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov dword [edx], eax
imul eax, ecx
lea eax, [eax + eax*2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x45e887
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 1
jmp 0x45e82a
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x70], eax
jne 0x45e8a7
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov edx, dword [ebp - 0x24]
mov dword [edx], 1
jmp 0x45e82a
mov eax, dword [ebp - 0x40]
push 0x100
dec eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x28], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.004b2d7a
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x45e8e1
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
cmp eax, ebx
mov edi, 1
mov dword [ebp - 4], 0xffffffff
jne 0x45e913
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x45e82b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ebx
test byte [eax + 0xc], 0x10
jne 0x45efd0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x44]
push ecx
push edi
lea edx, [ebp + 8]
inc esi
push edi
push edx
mov dword [ebp - 0x44], esi
call fcn.0049b95b
add esp, 0x10
cmp eax, edi
jne 0x45f007
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
cmp ecx, eax
je 0x45ee1d
mov ecx, dword [0x4ffbf8]
mov dword [ebp - 0x40], eax
xor eax, eax
cmp ecx, 0xffffffff
je 0x45eaeb
push ecx
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
cmp eax, ebx
jne 0x45eae5
push 0xb8
call fcn.004b2d7a
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
cmp esi, ebx
mov dword [ebp - 4], 2
je 0x45ea6f
mov al, byte [ebp + 0xc]
mov dword [esi + 0x38], ebx
mov byte [esi + 0x34], al
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov cl, byte [ebp + 0xc]
mov dword [esi + 0x48], ebx
mov byte [esi + 0x44], cl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dl, byte [ebp + 0xc]
mov dword [esi + 0x8c], ebx
mov byte [esi + 0x88], dl
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea eax, [ebp + 0xc]
lea ecx, [esi + 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.00457370
mov byte [ebp - 0x5c], bl
mov word [ebp - 0x5a], bx
mov edx, dword [ebp - 0x5c]
lea ecx, [esi + 0x28]
mov word [ebp - 0x58], bx
mov word [ebp - 0x56], bx
mov eax, dword [ebp - 0x58]
mov dword [ecx], edx
mov dword [esi + 0x20], 0x33333333
mov dword [esi], ebx
mov dword [ecx + 4], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [ecx + 8], bx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
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 0x45ea71
xor esi, esi
mov ecx, dword [0x4ffbf8]
push esi
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x45eaa4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [ebp - 0x6c]
push 0x4e2f88
push edx
mov dword [ebp - 0x6c], eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [eax], esi
push 0x4ffc00
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x38]
mov ecx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [eax + 4], ecx
mov dword [0x4ffbfc], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [0x4ffbf8]
mov eax, dword [ebp - 0x34]
jmp 0x45eaeb
mov ecx, dword [0x4ffbf8]
cmp dword [eax + 4], edi
jne 0x45ee13
xor eax, eax
cmp ecx, 0xffffffff
je 0x45ec7b
push ecx
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
cmp eax, ebx
jne 0x45ec75
push 0xb8
call fcn.004b2d7a
add esp, 4
cmp eax, ebx
je 0x45ec06
mov dl, byte [ebp + 0xc]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0x34], dl
mov dl, byte [ebp + 0xc]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], cl
mov cl, byte [ebp + 0xc]
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 [ebp - 0x68], bl
mov word [ebp - 0x66], bx
mov ecx, dword [ebp - 0x68]
lea edx, [eax + 0x28]
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [ebp - 0x64], bx
mov word [ebp - 0x62], bx
mov dword [edx], ecx
mov ecx, dword [ebp - 0x64]
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [edx + 4], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov word [edx + 8], bx
mov dword [eax + 0x54], edi
mov dword [eax + 0x58], edi
mov dword [eax + 0x5c], edi
mov dword [eax + 0x60], edi
mov dword [eax + 0x64], edi
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], edi
mov dword [eax + 0x80], edi
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 esi, eax
jmp 0x45ec08
xor esi, esi
mov edx, dword [0x4ffbf8]
push esi
push edx
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x45ec34
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push 0x4e2f88
push eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [eax], esi
push 0x4ffc00
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [eax + 4], ecx
mov dword [0x4ffbfc], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [0x4ffbf8]
mov eax, dword [ebp - 0x38]
jmp 0x45ec7b
mov ecx, dword [0x4ffbf8]
cmp dword [eax], ebx
je 0x45ee13
xor eax, eax
cmp ecx, 0xffffffff
je 0x45edfc
push ecx
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
cmp eax, ebx
jne 0x45edfc
push 0xb8
call fcn.004b2d7a
add esp, 4
cmp eax, ebx
je 0x45ed95
mov dl, byte [ebp + 0xc]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0x34], dl
mov dl, byte [ebp + 0xc]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], cl
mov cl, byte [ebp + 0xc]
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 [ebp - 0x50], bl
mov word [ebp - 0x4e], bx
mov ecx, dword [ebp - 0x50]
lea edx, [eax + 0x28]
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [ebp - 0x4c], bx
mov word [ebp - 0x4a], bx
mov dword [edx], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [edx + 4], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov word [edx + 8], bx
mov dword [eax + 0x54], edi
mov dword [eax + 0x58], edi
mov dword [eax + 0x5c], edi
mov dword [eax + 0x60], edi
mov dword [eax + 0x64], edi
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], edi
mov dword [eax + 0x74], edi
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], edi
mov dword [eax + 0x80], edi
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 esi, eax
jmp 0x45ed97
xor esi, esi
mov edx, dword [0x4ffbf8]
push esi
push edx
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x45edc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push 0x4e2f88
push eax
call fcn.00499f84
push 8
call fcn.004b2d7a
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [eax], esi
push 0x4ffc00
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x4ffbfc]
push 0x4ffc00
mov dword [eax + 4], ecx
mov dword [0x4ffbfc], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x20]
push ecx
sub ecx, esi
dec ecx
push ecx
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x45ee15
xor eax, eax
cmp eax, ebx
jne 0x45f012
mov ecx, dword [ebp + 0x10]
mov al, byte [ebp + 8]
cmp ecx, ebx
jne 0x45ee39
cmp al, bl
jne 0x45ee39
test byte [ebp - 0x44], 1
je 0x45ee39
mov ecx, 2
mov dword [ebp + 0x10], ecx
cmp ecx, 6
ja case.default.0x45ee42
jmp dword [ecx*4 + 0x45f08c]
cmp al, bl
mov byte [ebp - 0x18], al
je case.default.0x45ee42
mov dword [ebp + 0x10], edi
jmp case.default.0x45ee42
cmp word [ebp - 0x96], 8
jne 0x45ee71
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
jmp 0x45ee81
mov eax, dword [ebp - 0x18]
and eax, 0xff
inc eax
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
movsx eax, byte [ebp + 8]
mov edi, dword [ebp - 0x14]
mov dl, al
mov dh, dl
mov esi, ecx
mov eax, edx
mov dword [ebp + 0x10], ebx
shl eax, 0x10
mov ax, dx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x28], al
mov edi, 1
jmp case.default.0x45ee42
mov dword [ebp + 0x10], 3
jmp case.default.0x45ee42
movsx ecx, al
sub ecx, ebx
je 0x45eeea
dec ecx
je 0x45f041
dec ecx
je 0x45eee1
mov byte [ebp - 0x18], al
mov dword [ebp + 0x10], 4
jmp case.default.0x45ee42
mov dword [ebp + 0x10], 5
jmp case.default.0x45ee42
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
dec eax
mov dword [ebp - 0x20], eax
jmp 0x45ef4b
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
cmp word [ebp - 0x96], 8
jne 0x45ef15
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x28], 1
dec al
mov byte [ebp - 0x18], al
jne case.default.0x45ee42
jmp 0x45ef4b
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x28], 2
cmp al, 1
ja 0x45ef23
mov byte [ebp - 0x28], al
add al, 0xfe
mov byte [ebp - 0x18], al
jne case.default.0x45ee42
jmp 0x45ef4b
movsx edx, al
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x10], 6
add eax, edx
mov dword [ebp - 0x2c], eax
jmp case.default.0x45ee42
mov ecx, dword [ebp - 0x20]
movsx eax, al
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp + 0x10], ebx
cmp dword [ebp - 0x20], ebx
jl 0x45f078
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
and esi, 0xff
lea edx, [ecx + esi - 1]
cmp edx, eax
jg 0x45f078
cmp byte [ebp - 0x28], bl
jbe 0x45efc0
lea ecx, [ebp - 0x74]
call fcn.0045bd30
lea eax, [ebp - 0x4b4]
mov ecx, dword [ebp - 0x96]
push eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x70]
and ecx, 0xffff
push ecx
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push esi
lea ecx, [edx + eax*2]
mov edx, dword [ebp - 0x14]
add eax, ecx
lea ecx, [ebp - 0x74]
push eax
push edx
call fcn.0045b630
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x28], bl
add eax, esi
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
test byte [ecx + 0xc], 0x10
je 0x45e923
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 3
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov edx, dword [ebp - 0x14]
push edx
call fcn.004b2da3
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
jmp 0x45e82b
mov dword [edi], 7
jmp 0x45e82a
mov edx, dword [ebp - 0x24]
mov dword [edx], 3
jmp 0x45f01b
mov edx, dword [ebp - 0x24]
mov dword [edx], 0xe
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x14]
push eax
call fcn.004b2da3
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
jmp 0x45e82b
mov edx, dword [ebp - 0x14]
push edx
call fcn.004b2da3
mov esi, dword [ebp - 0x30]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0049b6df
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
mov dword [ecx], 6
jmp 0x45efd9