Function at 0x425140
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bda0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0xf20]
test esi, esi
js 0x425183
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov ecx, eax
call fcn.0045ab30
lea edx, [ebp - 0x1c]
mov dword [edi + 0xc], 1
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], edi
call fcn.00418a50
lea esi, [edi + 0xf2c]
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 0xef4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x30]
call fcn.00418a50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movlpd qword [ebp - 0x50], xmm0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [edi + 0x7c4], 0
xorps xmm0, xmm0
mov eax, dword [edi + 0x8cc]
mov esi, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 1
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jle 0x425233
mov eax, dword [edi + 0x7c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
jmp 0x425235
xor eax, eax
push 0
push 0x4b17d4
push eax
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x42538e
movzx eax, word [eax]
cmp eax, 0x72
jne 0x42526a
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
jmp 0x425306
cmp eax, 0x77
jne 0x42538e
push 0
push 0x4b1834
push 0
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x42538e
mov ecx, eax
call fcn.00424fd0
mov ebx, eax
mov eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x42538e
jg 0x4252ac
test ebx, ebx
jb 0x42538e
push 0
push 0x4b183c
push 0
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x42538e
push eax
call fcn.00486e26
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x42538e
push 0
push 0x4b1844
push 0
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x42538e
push eax
call fcn.00486e26
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x42538e
push 0
push 0x4b184c
push 0
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x425355
push 0x10
push 0
push eax
call fcn.00486d08
add esp, 0xc
mov dword [edi + 8], eax
push 0
push 0x4b1854
push 0
call fcn.0048750d
add esp, 0xc
test eax, eax
je 0x425355
push eax
call fcn.00486e26
mov esi, eax
add esp, 4
test esi, esi
mov eax, 1
cmovle esi, eax
cmp dword [ebp - 0x10], 0
mov ecx, edi
push esi
je 0x42537b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
call fcn.00425500
mov ecx, edi
call fcn.004258f0
mov ebx, 1
jmp 0x4253a7
call fcn.00425cd0
mov ecx, edi
call fcn.004258f0
mov ebx, 1
jmp 0x4253a7
push 3
push 0
push str.format_err__wfile_size_n_dirs_n_files__opt_loop___r_opt_loop__
mov ecx, edi
call fcn.00419420
mov ecx, edi
call fcn.004258f0
xor ebx, ebx
cmp byte [ebp - 0x2c], 0
je 0x4253ca
mov esi, dword [ebp - 0x30]
lea edi, [esi + 0xf2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0xef4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x34], 0
mov eax, ebx
je 0x4253e3
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret