Function at 0x41fe9b
Capabilities:
Check if file exists
Set thread local storage value

Disassembly:
push 0x14c
mov eax, 0x43b0d2
call fcn.00427d33
mov ebx, ecx
mov dword [ebp - 0x140], ebx
call fcn.0041fc29
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
push 7
mov dword [ebp - 4], ecx
xor eax, eax
pop edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x64], ax
push ecx
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push ecx
push ecx
lea edi, [ebx + 0x1f4]
add ebx, 0x128
push 2
push edi
mov ecx, ebx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], ebx
call fcn.0041d9df
test al, al
je 0x4200ec
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push str.ETag:
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00401557
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x34]
jmp 0x41ff9a
push esi
lea ecx, [ebp - 0x7c]
call fcn.004073c2
mov byte [ebp - 4], 5
lea eax, [ebp - 0x94]
push dword [ebp - 0x84]
cmp dword [ebp - 0x80], 0x10
push ecx
cmovae eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0041e579
cmp eax, 0xffffffff
je 0x41ff88
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x84]
cmp ecx, edx
ja 0x41ffa1
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.004016fc
add esi, 0x18
cmp esi, dword [ebp - 0x30]
jne 0x41ff48
jmp 0x41ffdc
sub ecx, edx
add eax, edx
push ecx
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041e549
push eax
lea ecx, [ebp - 0x28]
call fcn.00410332
push ebx
push 1
lea ecx, [ebp - 0x158]
call fcn.004016fc
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.004016fc
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x420061
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add edx, ecx
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
add ecx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp eax, ecx
je 0x42004d
cmp byte [eax], 0x22
je 0x420016
inc eax
cmp eax, ecx
jne 0x42000c
cmp eax, ecx
je 0x42004d
and dword [ebp - 0x13c], 0
lea esi, [eax + 1]
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, dword [ebp - 0x13c]
test edi, edi
je 0x420045
mov cl, byte [esi]
cmp cl, 0x22
je 0x42003f
mov byte [eax], cl
inc eax
inc esi
inc ebx
cmp ebx, edi
jne 0x420035
mov edi, dword [ebp - 0x134]
xor ebx, ebx
push edx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e8e3
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
and dword [ebp - 0x134], edx
sub esi, ecx
cmp ecx, eax
cmova esi, dword [ebp - 0x134]
test esi, esi
je 0x42009a
add bl, byte [ecx]
inc ecx
inc edx
cmp edx, esi
jne 0x420092
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x158]
mov byte [eax], bl
call fcn.0040ea40
push eax
lea ecx, [ebp - 0x64]
call fcn.004015c0
xor ebx, ebx
lea ecx, [ebp - 0x158]
push ebx
push 1
call fcn.004017dc
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.004016fc
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004016fc
mov ebx, dword [ebp - 0x138]
cmp dword [ebp - 0x54], 0
jne 0x42010a
mov esi, str.icons.cab
mov ecx, esi
call fcn.00402286
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.0040196f
jmp 0x420120
mov esi, 0x445afc
mov ecx, esi
call fcn.00402286
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00405183
push 8
lea eax, [ebp - 0x7c]
push eax
call fcn.00422092
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x158]
call fcn.004126c6
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004015c0
xor esi, esi
lea ecx, [ebp - 0x158]
push esi
push 1
call fcn.004017dc
push esi
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004017dc
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420205
push 0x60
lea eax, [ebp - 0xf8]
push esi
push eax
call fcn.00429320
add esp, 0xc
lea ecx, [ebp - 0xf8]
push 1
call fcn.0041e9e5
mov byte [ebp - 4], 7
lea esi, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.00402286
push eax
push esi
lea ecx, [ebp - 0xd8]
call fcn.0040196f
xor esi, esi
lea eax, [ebp - 0xf8]
push esi
push esi
push esi
push eax
push esi
push esi
push edi
mov ecx, ebx
call fcn.0041d9df
mov bl, al
test bl, bl
jne 0x4201f4
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], esi
cmovae ecx, dword [ebp - 0x4c]
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.0041ea48
jmp 0x420207
mov bl, 1
cmp dword [ebp - 0x3c], 0
jbe 0x4202bf
push 0x98
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.00429320
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.00416752
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
call fcn.004168cb
push 7
lea eax, [ebp - 0x158]
push eax
call fcn.00422092
push ecx
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x130]
call fcn.004169d9
push esi
push 1
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 8
call fcn.004017dc
cmp dword [ebp - 0xb8], 0
je 0x4202a3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xb0], eax
jne 0x4202b0
push dword [ebp - 0xb8]
call dword [ebp - 0x9c]
mov dword [ebp - 0xb8], esi
pop ecx
test eax, eax
je 0x4202b0
push esi
push dword [0x44f2fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.00416847
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.004017dc
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.004017dc
lea ecx, [ebp - 0x34]
call fcn.00411b86
mov al, bl
call fcn.00427ce2
ret