Function at 0x459fa0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push ebx
push esi
mov dword [ebp - 0x34], ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ebx
call fcn.00516fef
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lea edx, [ebp - 0x364]
mov dword [ebp - 4], ebx
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x46c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3c]
call fcn.00516ac6
push ebx
lea ecx, [ebp - 0x364]
push 0x8010
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005171a1
cmp eax, ebx
je 0x45a1d1
xor edx, edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push 4
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x14], dl
call fcn.005172be
cmp eax, 4
jne 0x45a1d1
mov esi, str.MCF2
lea eax, [ebp - 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45a09b
test cl, cl
je 0x45a097
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45a09b
add eax, 2
add esi, 2
test cl, cl
jne 0x45a077
xor eax, eax
jmp 0x45a0a0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x45a1d1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x25c]
push 0x11a
push eax
lea ecx, [ebp - 0x28]
call fcn.005172be
cmp eax, 0x11a
jne 0x45a1cd
lea edi, [ebp - 0x46c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x244]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x25c]
and ecx, 3
lea eax, [ebp - 0x140]
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
push eax
call fcn.00459e60
test eax, eax
je 0x45a1d1
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x258]
cmp ecx, eax
jne 0x45a1d1
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
lea eax, [ebp - 0x140]
push 0x80
push eax
call ebx
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [ebp - 0x140]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45a1c5
lea edx, [ebp - 0x24c]
lea eax, [ebp - 0x254]
push edx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x140]
push edi
push ecx
call ebx
inc dword [ebp - 0x2c]
jmp 0x45a0ae
test eax, eax
je 0x45a219
mov byte [ebp - 4], 0
call fcn.00516b04
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.005170e4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0
call fcn.00516b04
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.005170e4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8