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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.004c2ee0
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
mov esi, edx
mov edi, ecx
push 8
mov dword [ebp - 0x2014], esi
mov dword [ebp - 0x2018], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x201c], ebx
test ebx, ebx
je 0x45a78f
mov ecx, 0x1000
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45a483
push dword [0x53ec40]
push edi
push str.Searching_directory__S_for__S_n
push 0xffffffffffffffff
push 0x800
push ebx
call fcn.004bb4ef
add esp, 0x18
mov ecx, ebx
call fcn.00458190
mov edx, edi
mov ecx, esi
call fcn.00477c90
mov ecx, dword [0x53ec40]
mov esi, eax
mov dword [ebp - 0x200c], esi
test ecx, ecx
jne 0x45a4ce
xor eax, eax
jmp 0x45a4dc
push 0x1000
push ecx
call fcn.004bbd22
add esp, 8
mov dword [ebp - 0x2010], eax
test esi, esi
jne 0x45a526
push edi
push str.Directory__S_not_found_n
push 0xffffffffffffffff
push 0x800
push ebx
call fcn.004bb4ef
add esp, 0x14
mov ecx, ebx
call fcn.00458190
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push esi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x45a530
cmp dword [esi], 0x97531246
jne 0x45a716
cmp ebx, dword [esi + 0xc]
jae 0x45a763
mov edx, ebx
mov ecx, esi
call fcn.00477ee0
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x45a710
cmp dword [edi + 8], 0
je 0x45a710
mov ecx, dword [eax + 4]
mov esi, ecx
lea edx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x45a570
sub esi, edx
push esi
push 0x520328
push ecx
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45a70a
mov eax, dword [edi + 4]
push esi
push 0x52032c
push dword [eax + 4]
call fcn.004bce70
add esp, 0xc
test eax, eax
je 0x45a70a
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x2010]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 8]
sub ecx, edx
add ecx, esi
cmp dword [eax + 0x10], 2
je 0x45a6c0
cmp esi, edx
jle 0x45a6c0
push edx
push ecx
push dword [0x53ec40]
call fcn.004bc0b0
add esp, 0xc
test eax, eax
je 0x45a5f3
mov eax, dword [ebp - 0x2010]
test eax, eax
jne 0x45a6c0
mov eax, dword [edi + 4]
push dword [eax + 4]
movsx eax, byte [0x53eb3e]
push dword [ebp - 0x2018]
push eax
push 0x561208
push 0x561418
push str._S__s__c_s__s.z
push 0xffffffffffffffff
lea eax, [ebp - 0x1008]
push 0x1000
push eax
call fcn.004bb430
mov eax, dword [edi + 8]
add esp, 0x24
mov esi, dword [ebp - 0x201c]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x1008]
push eax
push str.Acquiring__S_record__llu_n
push 0xffffffffffffffff
push 0x800
push esi
call fcn.004bb4ef
add esp, 0x1c
mov ecx, esi
call fcn.00458190
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a667
xor eax, eax
sub ecx, edx
je 0x45a697
mov dl, byte [ebp + eax - 0x1008]
cmp dl, 0x5c
je 0x45a68a
cmp dl, 0x2f
je 0x45a68a
cmp dl, 0x3a
jne 0x45a692
mov byte [ebp + eax - 0x1008], 0x5f
inc eax
cmp eax, ecx
jb 0x45a674
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x1008]
mov edx, dword [ebp - 0x2014]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00459bd0
mov esi, dword [ebp - 0x200c]
add esp, 8
inc ebx
jmp 0x45a530
cmp byte [0x53eb7a], 0
je 0x45a70a
mov eax, dword [edi + 8]
cmp dword [eax + 0x10], 2
jne 0x45a70a
mov eax, dword [edi + 4]
push dword [eax + 4]
lea eax, [ebp - 0x2008]
push dword [ebp - 0x2018]
push str._s__s
push 0xffffffffffffffff
push 0x800
push eax
call fcn.004bb430
mov edx, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2008]
add esp, 0x18
call fcn.0045a430
mov esi, dword [ebp - 0x200c]
inc ebx
jmp 0x45a530
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45a750
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
push dword [ebp - 0x201c]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
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