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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571652
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.00565486
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x29bc], 9
push str.Preload
mov ecx, dword [ebp + 8]
push ecx
call fcn.005031b7
add esp, 8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2ac4], 0x2000
jne 0x4fc88d
lea eax, [ebp - 0x140]
push eax
call fcn.0053534c
add esp, 4
push str.ATP_ExtraDll.dll
lea ecx, [ebp - 0x140]
push ecx
call fcn.0054bed0
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 0x4fc86a
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x4fc7a3
mov dword [ebp - 0x150], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x150]
jmp 0x4fca55
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 0x4fc85d
mov dword [ebp - 0x14c], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3650], 0
je 0x4fc7e8
mov dword [ebp - 0x14c], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2bac], 0
je 0x4fc828
mov ecx, dword [ebp - 0x14c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4774]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4778]
push edx
mov eax, dword [ebp + 8]
add eax, 0x40c4
push eax
call dword [ebp - 0x148]
add esp, 0x14
mov dword [ebp - 0x3c], eax
jmp 0x4fc85d
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x477c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x40c4
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 - 0x154], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x154]
jmp 0x4fca55
push 0
push 0x40
mov ecx, dword [ebp + 8]
add ecx, 0x37d4
push ecx
lea ecx, [ebp - 0x34]
call fcn.00565598
test eax, eax
jne 0x4fc8cb
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x158]
jmp 0x4fca55
lea ecx, [ebp - 0x34]
call fcn.00565892
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 0x64
push 1
push 0x10000
call fcn.00536ece
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4fc948
push str.Alloc_Buffer_fail_r_n
mov edx, dword [ebp + 8]
add edx, 0x29fc
push edx
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x15c]
jmp 0x4fca55
mov dword [ebp - 0x20], 0
jmp 0x4fc95a
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jae 0x4fca2e
mov edx, dword [ebp - 0x10]
sub edx, 1
cmp dword [ebp - 0x20], edx
jne 0x4fc99b
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0x10000
div ecx
test edx, edx
je 0x4fc99b
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 0x4fc9a2
mov dword [ebp - 0x18], 0x10000
push 4
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0054bfb0
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.005656b5
push 0
push 0x80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x158]
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.004ec6a7
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4fca29
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0054c543
add esp, 4
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x160]
jmp 0x4fca55
jmp 0x4fc951
lea ecx, [ebp - 0x34]
call fcn.005657b3
mov dword [ebp - 0x164], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.005654db
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret