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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.004c2ee0
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1000
mov ebx, edx
mov dword [ebp - 0x1018], eax
push 8
mov dword [ebp - 0x1024], ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x1010], edi
test edi, edi
je 0x45ad38
mov ecx, 0x1000
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45aac6
push ebx
push esi
push str.Searching_directory__S_for__S_n
push 0xffffffffffffffff
push 0x800
push edi
call fcn.004bb4ef
add esp, 0x18
mov ecx, edi
call fcn.00458190
test ebx, ebx
jne 0x45aaf9
mov dword [ebp - 0x1014], ebx
jmp 0x45ab0d
push 0x1000
push ebx
call fcn.004bbd22
add esp, 8
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1018]
mov edx, esi
call fcn.00477c90
mov dword [ebp - 0x1020], eax
test eax, eax
jne 0x45ab65
push esi
push str.Directory__S_not_found_n
push 0xffffffffffffffff
push 0x800
push edi
call fcn.004bb4ef
add esp, 0x14
mov ecx, edi
call fcn.00458190
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x45ab70
cmp dword [eax], 0x97531246
jne 0x45acc4
cmp ebx, dword [eax + 0xc]
jae 0x45ad11
mov edx, ebx
mov ecx, eax
call fcn.00477ee0
mov dword [ebp - 0x101c], eax
mov edi, dword [eax + 4]
test edi, edi
je 0x45acb2
cmp dword [eax + 8], 0
je 0x45acb2
mov edi, dword [edi + 4]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45abb1
sub esi, ecx
cmp esi, dword [ebp - 0x1014]
jle 0x45acb2
push esi
push 0x520328
push edi
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45acb2
mov eax, dword [ebp - 0x101c]
push esi
push 0x52032c
mov eax, dword [eax + 4]
push dword [eax + 4]
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45acb2
mov eax, dword [ebp - 0x1014]
sub edi, eax
push eax
add edi, esi
push edi
push dword [ebp - 0x1024]
call fcn.004bc0b0
add esp, 0xc
test eax, eax
je 0x45ac2a
cmp dword [ebp - 0x1014], 0
jne 0x45acb2
mov esi, dword [ebp - 0x101c]
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.z
push 0xffffffffffffffff
lea eax, [ebp - 0x100c]
push 0x1000
push eax
call fcn.004bb430
mov edi, dword [ebp - 0x1010]
lea eax, [ebp - 0x100c]
push eax
push str.Acquiring_rawAcquireFilesInDirectory_::__S_n
push 0xffffffffffffffff
push 0x800
push edi
call fcn.004bb4ef
add esp, 0x34
mov ecx, edi
call fcn.00458190
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x100c]
mov edx, dword [ebp - 0x1018]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00459bd0
mov eax, dword [ebp - 0x1020]
add esp, 8
inc ebx
jmp 0x45ab70
mov edi, dword [ebp - 0x1010]
inc ebx
mov eax, dword [ebp - 0x1020]
jmp 0x45ab70
mov ebx, dword [0x56161c]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45acfe
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 ebx
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
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bae74
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