Function at 0x4975a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10b14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048bf60
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4975ca
jmp 0x497887
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497ab0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov edx, dword [ebp + 8]
add edx, 0x10b2c
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa24]
mov edx, dword [ecx + 0x14]
and edx, 0x7f
and edx, 0xffffffdf
je 0x49767c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa24]
mov edx, dword [ecx + 0x14]
and edx, 0x7f
push edx
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x49767c
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
call fcn.004be348
add esp, 0xc
push eax
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x10c90]
add esp, 0x10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10a64], 0
je 0x4977a3
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x10a84]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10a64]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004979e0
add esp, 0x14
test eax, eax
je 0x4977a3
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa24]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10b2c
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497890
add esp, 0x14
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x4f
jne 0x4977a3
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
je 0x49774c
push 1
mov eax, dword [ebp + 8]
add eax, 0x8a28
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10b2c
push ecx
call fcn.004a13e0
add esp, 8
push eax
push 0x52a0a0
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
call fcn.004be348
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x10c90]
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x49775e
mov dword [ebp - 0x3c], 0x52a0a8
jmp 0x497765
mov dword [ebp - 0x3c], 0x596d40
push 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
sub edx, 0xb
push edx
push str._compressed_WinNT_security_data_missing___d_bytes__s
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
call fcn.004be348
add esp, 0x10
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x10c90]
add esp, 0x10
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4977e9
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
call fcn.004be348
add esp, 0xc
push eax
mov edx, dword [ebp + 8]
add edx, 0xa28
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0x10c90]
add esp, 0x10
jmp 0x497887
cmp dword [ebp - 0x10], 0
je 0x49787d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
lea eax, [ebp - 0xc]
and edx, eax
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x10]
and ecx, 2
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x28]
and ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x10]
and eax, 4
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x49787d
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
mov eax, dword [ebp + 8]
add eax, 0xa28
push eax
call fcn.004be348
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa28
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0x10c90]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret