Function at 0x4fbfec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575811
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x34]
call fcn.00566717
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x67c4], 9
push 0x5c8b54
mov ecx, dword [ebp + 8]
add ecx, 0x5ea4
push ecx
call fcn.0054c6e3
add esp, 8
cmp dword [0x5ea000], 0
jle 0x4fc0aa
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7188], 0
je 0x4fc0aa
mov eax, dword [0x5ea000]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x59dc]
push edx
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7188]
call fcn.00417fc6
mov ecx, dword [ebp + 8]
add ecx, 0x5ea4
push ecx
mov edx, dword [0x5ea000]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x59dc]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x7188]
call fcn.0041805c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5974], 0x3ff
jl 0x4fc109
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5974], 0x421
jg 0x4fc109
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5974], 0x2000
je 0x4fc109
mov eax, dword [ebp + 8]
push eax
call fcn.00517648
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x150]
jmp 0x4fc48e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5974], 0x2000
jne 0x4fc286
lea eax, [ebp - 0x140]
push eax
call fcn.00529440
add esp, 4
push str.ATP_ExtraDll.dll
lea ecx, [ebp - 0x140]
push ecx
call fcn.0054bea0
add esp, 8
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4fc263
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x4fc19c
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x154]
jmp 0x4fc48e
push str.ATPHiddenAreaProc
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4fc256
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4f5c], 0
je 0x4fc1e1
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7184], 0
je 0x4fc221
mov ecx, dword [ebp - 0x14c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4fb0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4fac]
push edx
mov eax, dword [ebp + 8]
add eax, 0x5190
push eax
call dword [ebp - 0x148]
add esp, 0x14
mov dword [ebp - 0x3c], eax
jmp 0x4fc256
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4fbc]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x5190
push ecx
call dword [ebp - 0x148]
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x158]
jmp 0x4fc48e
push 0
push 0x40
mov ecx, dword [ebp + 8]
add ecx, 0x6464
push ecx
lea ecx, [ebp - 0x34]
call fcn.00566829
test eax, eax
jne 0x4fc2c4
mov dword [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x15c]
jmp 0x4fc48e
lea ecx, [ebp - 0x34]
call fcn.00566b23
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
mov eax, dword [ebp - 0x24]
xor edx, edx
mov esi, 0x10000
div esi
neg edx
sbb edx, edx
neg edx
add ecx, edx
mov dword [ebp - 0x10], ecx
push 0x10000
call fcn.0054cfd4
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
jmp 0x4fc30e
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jae 0x4fc467
mov ecx, dword [ebp - 0x10]
sub ecx, 1
cmp dword [ebp - 0x20], ecx
jne 0x4fc34f
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0x10000
div ecx
test edx, edx
je 0x4fc34f
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0x10000
div ecx
shr edx, 9
add edx, 1
shl edx, 9
mov dword [ebp - 0x18], edx
jmp 0x4fc356
mov dword [ebp - 0x18], 0x10000
push 4
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0054bf90
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00566946
push 0
push 0
push 0x80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6cc4]
push eax
push 0xd3
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
shl eax, 7
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004cff24
add esp, 0x24
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4fc3e2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0054ccb2
add esp, 4
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x160]
jmp 0x4fc48e
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x10]
push eax
push 0x5c8b84
mov eax, dword [ebp + 8]
add eax, 0x5ea4
push eax
call fcn.0054c6e3
add esp, 0xc
cmp dword [0x5ea000], 0
jle 0x4fc462
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x7188], 0
je 0x4fc462
mov edx, dword [0x5ea000]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x59dc]
push ecx
push 6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x7188]
call fcn.00417fc6
mov eax, dword [ebp + 8]
add eax, 0x5ea4
push eax
mov ecx, dword [0x5ea000]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x59dc]
push eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7188]
call fcn.0041805c
jmp 0x4fc305
lea ecx, [ebp - 0x34]
call fcn.00566a44
mov dword [ebp - 0x164], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0056676c
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret