Function at 0x1003fe50
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x15d]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x164], 0
call fcn.10116880
add esp, 0xc
push esi
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x158], 0
je 0x1003fed9
lea eax, [esp + 0x158]
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x1003feb0
lea edx, [esp + 0x158]
sub eax, edx
je 0x1003fed9
cmp byte [esp + eax + 0x157], 0x5c
je 0x1003fed9
push 0x10149ea8
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10149c34
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [esp + 0x18]
lea ecx, [esp + 0x158]
mov edi, 1
call fcn.10033b80
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x100400e6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebx]
test edi, edi
je 0x100400db
test byte [esp + 0x18], 0x10
jne 0x100400c7
lea edx, [esp + 0x44]
push 0x2e
push edx
call fcn.1010e930
mov esi, eax
add esp, 8
test esi, esi
je 0x100400c7
push str..upd
push esi
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1003ffc4
push str..bak
push esi
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1003ffc4
push str..old
push esi
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1003ffc4
push str..gzip
push esi
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1003ffc4
lea eax, [esp + 0x44]
push str.versions.id
push eax
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1003ffc4
lea ecx, [esp + 0x44]
push str.versions.sig
push ecx
call fcn.1011c280
add esp, 8
test eax, eax
jne 0x100400c7
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x158], 0
je 0x10040011
lea eax, [esp + 0x158]
inc eax
cmp byte [eax], 0
jne 0x1003ffe8
lea ecx, [esp + 0x158]
sub eax, ecx
je 0x10040011
cmp byte [esp + eax + 0x157], 0x5c
je 0x10040011
push 0x10149ea8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [esp + 0x18], 7
je 0x1004003e
push 0x80
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x158]
call fcn.10033960
test eax, eax
jne 0x100400c7
call ebx
cmp eax, 2
jne 0x1004006d
push 0
call ebp
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x18]
call fcn.10033de0
mov edi, eax
jmp 0x1003ff20
lea eax, [esp + 0x158]
call fcn.10044c10
cmp eax, 0xffffffff
je 0x10040095
test al, 7
je 0x10040095
push 0x80
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x158]
call fcn.10033960
test eax, eax
jne 0x100400c7
call ebx
cmp eax, 2
jne 0x100400c4
push 0
call ebp
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x18]
call fcn.10033de0
mov edi, eax
jmp 0x1003ff20
push eax
call ebp
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x18]
call fcn.10033de0
mov edi, eax
jmp 0x1003ff20
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x25c
ret