Function at 0x45ad50
Capabilities:
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53eba0]
mov ecx, eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], eax
call fcn.00477c90
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x45b62a
xor ecx, ecx
cmp dword [esi], 0x97531246
mov dword [ebp - 0xc], ecx
jne 0x45b5dd
cmp ecx, dword [esi + 0xc]
jae 0x45b62a
mov edx, ecx
mov ecx, esi
call fcn.00477ee0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x45b5d1
cmp dword [esi + 8], 0
je 0x45b5d1
mov ecx, dword [eax + 4]
mov edi, ecx
lea edx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x45adc0
sub edi, edx
push edi
push 0x520328
push ecx
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45b5d1
mov eax, dword [esi + 4]
push edi
push 0x52032c
push dword [eax + 4]
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45b5d1
mov eax, dword [esi + 4]
cmp dword [eax + 0x34], 3
jne 0x45b5d1
mov ecx, 0x1000
call fcn.00455630
mov ecx, dword [esi + 4]
mov edi, eax
push str.AppData_Roaming_Microsoft_Windows_PowerShell_PSReadLine
push dword [ecx + 4]
push ebx
push str.__s__s__s
push 0xffffffffffffffff
push 0x1000
push edi
call fcn.004bb430
mov edx, dword [esi + 4]
add esp, 0x1c
mov ecx, edi
push dword [ebp - 8]
mov edx, dword [edx + 4]
push str.ConsoleHost_history.txt
call fcn.0045a7b0
add esp, 8
test edi, edi
je 0x45ae66
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45ae6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp byte [0x53eb8e], 0
je 0x45af33
mov eax, dword [0x53ec40]
mov ecx, 4
mov dword [ebp - 0x10], eax
call fcn.00455630
push 0x520454
push 0x520458
push 4
push 4
push eax
mov dword [0x53ec40], eax
call fcn.004bb430
add esp, 0x14
mov ecx, 0x1000
call fcn.00455630
mov dword [ebp - 4], eax
mov edi, 0x527c98
jmp 0x45aec3
mov eax, dword [ebp - 4]
push dword [edi]
mov ecx, dword [esi + 4]
push dword [ecx + 4]
push ebx
push str.__s__s__s
push 0xffffffffffffffff
push 0x1000
push eax
call fcn.004bb430
mov edx, dword [ebp - 8]
add esp, 0x1c
mov ecx, dword [ebp - 4]
call fcn.0045a430
add edi, 4
cmp edi, 0x527ca4
jl 0x45aec0
mov eax, dword [0x53ec40]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x45af12
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x45af25
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x53ec40], eax
cmp byte [0x53eb8d], 0
je 0x45afc9
push 0x1000
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x45b636
mov eax, 0x1000
mov ecx, edx
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec eax
jne 0x45af64
mov edi, 0x527c90
jmp 0x45af77
mov edx, dword [ebp - 4]
push dword [edi]
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s__s
push 0xffffffffffffffff
push 0x1000
push edx
call fcn.004bb430
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov edx, 0x51b7c2
push dword [ebp - 8]
call fcn.0045aa70
add edi, 4
add esp, 4
cmp edi, 0x527c98
jl 0x45af74
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45afcf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp byte [0x53eb8c], 0
je 0x45b0c9
push 0x1000
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x45b636
mov edx, 0x1000
mov ecx, edi
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x45b000
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_ntuser.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_ntuser.dat
push 0xffffffffffffffff
push 0x1000
push edi
call fcn.004bb430
mov edx, edi
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_usrclass.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
add esp, 0x58
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_UsrClass.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x18
mov ecx, edi
call fcn.004588a0
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45b0cc
mov edi, dword [ebp - 8]
cmp byte [0x53eb6a], 0
je 0x45b143
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x45b636
mov edx, 0x1000
mov ecx, eax
jmp 0x45b100
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x45b100
mov eax, dword [esi + 4]
push str.AppData_Local_ConnectedDevicesPlatform
push dword [eax + 4]
push ebx
push str.__s__s__s
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [esi + 4]
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 4]
push edi
push str.ActivitiesCache.db
call fcn.0045a7b0
add esp, 8
cmp byte [0x53eb6b], 0
je 0x45b1e7
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x45b636
mov edx, 0x1000
mov ecx, eax
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x45b176
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_chrome_preferences.json.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Google_Chrome_User_Data_Default_Preferences
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x38
mov ecx, edi
call fcn.004588a0
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [0x53eb7f], 0
je 0x45b5d1
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x45b636
mov edx, 0x1000
mov ecx, eax
lea ebx, [ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x45b220
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_WebCacheV01.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_WebCache_WebCacheV01.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
add esp, 0x58
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_Temporary_Internet_Files_Content.IE5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_low_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_Temporary_Internet_Files_Low_Content.IE5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x50
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_hist_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_History_History.IE5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_hist_low_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
add esp, 0x58
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Microsoft_Windows_History_Low_History.IE5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_ie5_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_Local_Settings_Temporary_Internet_Files_Content.IE5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x50
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_cookies_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_Cookies_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_histie5_index.dat.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
add esp, 0x58
push dword [eax + 4]
push ebx
push str.__s__s_Local_Settings_History_history.ie5_index.dat
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_chrome_history.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Google_Chrome_User_Data_Default_History
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x50
mov ecx, edi
call fcn.004588a0
cmp byte [0x53eb6b], 0
jne 0x45b585
mov eax, dword [esi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push eax
push 0x561208
push 0x561418
push str._S__s__c__s_chrome_preferences.json.z
push 0xffffffffffffffff
push 0x1000
push 0x547d60
call fcn.004bb430
mov eax, dword [esi + 4]
push dword [eax + 4]
push ebx
push str.__s__s_AppData_Local_Google_Chrome_User_Data_Default_Preferences
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [ebp - 4]
add esp, 0x38
mov ecx, edi
call fcn.004588a0
mov eax, dword [esi + 4]
push str.AppData_Roaming_Mozilla_Firefox_Profiles
push dword [eax + 4]
push ebx
push str.__s__s__s
push 0xffffffffffffffff
push 0x1000
push dword [ebp - 4]
call fcn.004bb430
mov edx, dword [esi + 4]
add esp, 0x1c
mov esi, dword [ebp - 4]
mov ecx, esi
mov edx, dword [edx + 4]
push edi
push str.places.sqlite
call fcn.0045a7b0
add esp, 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
inc ecx
jmp 0x45ad79
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45b617
push 0xc08
call fcn.004bb5d5
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.004c13c0
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_dir_getsize:_called_with_NULL_or_unallocated_structures
mov dword [esi], 0x8000006
call fcn.004768f0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_memory_on_process_heap_n
call fcn.004bc829
add esp, 4
push 1
call fcn.004bcc8d
int3