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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x20], bx
push 0x657fe4
mov ecx, 0x67ab18
mov byte [ebp - 4], 1
call fcn.0059aec6
lea eax, [ebp - 0x74]
push 0x657fdc
mov ecx, 0xb
mov esi, 0x657fb0
lea edi, [ebp - 0x74]
push eax
push 0x657f9c
push 0x67b1b0
rep movsd dword es:[edi], dword [esi]
call fcn.00593b08
add esp, 0x10
lea ecx, [ebp - 0x74]
push 0x657fdc
push ecx
push 0x657f8c
push 0x67b1ac
call fcn.00593b08
add esp, 0x10
push 0x657fdc
push 0x657f60
push 0x67b1a8
call fcn.00593b08
add esp, 0xc
push 0x657fdc
push 0x657f28
push 0x67b1a4
call fcn.00593b08
add esp, 0xc
push 0x657fdc
push 0x657ef0
push 0x67b1a0
call fcn.00593b08
add esp, 0xc
mov ecx, 0x67ab20
push 0x657eac
call fcn.0059aec6
push 0x657e98
mov ecx, 0x67ab1c
call fcn.0059aec6
push 0x657e08
mov ecx, 0x67ab24
call fcn.0059aec6
mov esi, dword [0x67a008]
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jne 0x4a8b5f
mov esi, 0x67a00c
mov edx, 0x64f030
test edx, edx
je 0x4a8c77
cmp esi, ebx
je 0x4a8c77
mov eax, 0x657df0
test eax, eax
je 0x4a8c77
push ebx
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x38], bx
call fcn.004028e0
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x2c], bx
call fcn.00401fc0
push 0x657df0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00403bb0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x30]
cmp edi, ebx
jne 0x4a8bd3
lea edi, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.00401fb0
push eax
call fcn.0057e90a
push edi
mov ebx, eax
call fcn.0057e90a
add esi, ebx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005970d9
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 0x24], edi
je 0x4a8c51
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x48]
call fcn.00401fb0
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00401fb0
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00401fb0
push esi
push edi
push eax
mov eax, dword [ebp - 0x24]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
xor ebx, ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4a8c81
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a8cea
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4a8c97
lea eax, [ebp - 0x20]
push 0x651438
push eax
call fcn.0057ff6f
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4a8ce1
push esi
lea edx, [ebp - 0x94]
push 0x20
push edx
call fcn.0058017a
add esp, 0xc
test eax, eax
je 0x4a8ce1
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x94]
push eax
push 0x6514b0
push ecx
call fcn.005803bc
add esp, 0xc
cmp eax, 1
je 0x4a8ce1
mov dword [ebp - 0x18], ebx
push esi
call fcn.0057fd88
add esp, 4
push 0x679a28
lea ecx, [ebp - 0x14]
call fcn.0059adab
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4a8d14
push eax
lea edx, [ebp - 0x14]
push 0x657de8
push edx
call fcn.00593b08
add esp, 0xc
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
push eax
push 0x657fdc
push ecx
push 0x657dd4
push 0x67b1b0
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea eax, [ebp - 0x74]
push edx
push 0x657fdc
push eax
push 0x657dc0
push 0x67b1ac
call fcn.00593b08
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
push 0x657fdc
push 0x657d90
push 0x67b1a8
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
push edx
push 0x657fdc
push 0x657d54
push 0x67b1a4
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0x10
push eax
push 0x657fdc
push 0x657d18
push 0x67b1a0
call fcn.00593b08
mov eax, dword [ebp - 0x18]
add esp, 0x10
sub eax, 0x32
je 0x4a8db5
dec eax
jne 0x4a8dc7
push 0x657d0c
jmp 0x4a8dba
push 0x65166c
push 0x67b19c
call fcn.00593b08
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059ad3d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret