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

Disassembly:
push 0xffffffffffffffff
push 0x519cca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
lea ebp, [esi + 0x78]
mov ecx, ebp
call fcn.004a46d0
cmp eax, 0xffffffff
jne 0x4a0a6f
xor al, al
jmp 0x4a0e16
mov al, byte [esi + 0xe8]
test al, al
je 0x4a0a80
xor al, al
jmp 0x4a0e16
mov ecx, ebp
call fcn.004a4420
cmp eax, 0xffffffff
jne 0x4a0a93
xor al, al
jmp 0x4a0e16
cmp dword [esi + 0x134], 0xffff
jne 0x4a0aa6
xor al, al
jmp 0x4a0e16
mov edi, dword [esp + 0x264]
test edi, edi
je 0x4a0ae9
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00504e34
test eax, eax
je 0x4a0ae2
mov ebx, dword [esp + 0x25c]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.004a3bd0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebx + 0x24], eax
jne 0x4a0af0
xor al, al
jmp 0x4a0e16
mov ebx, dword [esp + 0x25c]
lea ecx, [esi + 0x20]
call fcn.004a54d0
lea edi, [esi + 0xec]
push ebx
mov ecx, edi
call fcn.004a61c0
mov ecx, dword [esi + 0x114]
lea edx, [esp + 0x14]
push edx
call fcn.004a4020
mov eax, dword [esp + 0x14]
mov dword [esp + 0x254], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a0b55
mov eax, dword [esi + 0x134]
lea ecx, [esp + 0x14]
push eax
push str.file_i
push ecx
call fcn.004fcdc1
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x114]
add esp, 0xc
push edx
call fcn.004a4000
mov al, byte [esi + 0x160]
mov cl, byte [edi + 0x74]
cmp al, cl
jne 0x4a0b77
mov edi, dword [edi + 0x28]
push 1
mov ecx, edi
call fcn.004a40e0
push 0
mov ecx, edi
call fcn.004a40a0
mov edi, dword [esi + 0x114]
mov eax, dword [esi + 0x10]
mov ecx, ebp
mov ebx, dword [edi + 0x24]
shr ebx, 4
and bl, 1
test eax, eax
setne byte [esp + 0x20]
mov eax, dword [esp + 0x20]
push eax
call fcn.004a4420
mov edx, dword [esp + 0x264]
cmp eax, 1
sete cl
push ecx
push edx
mov ecx, edi
call fcn.004a3e10
test al, al
jne 0x4a0c5f
mov ecx, ebp
call fcn.004a46d0
cmp eax, 0xffffffff
jne 0x4a0be6
push 0x55aca0
lea ecx, [esp + 0x20]
call fcn.004ff17f
mov dword [esp + 0x10], 1
mov byte [esp + 0x254], 1
jmp 0x4a0c06
mov ecx, dword [esi + 0x94]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x254], ecx
mov eax, dword [eax]
push eax
push 0xffffffffffffff95
call fcn.004a7520
mov al, byte [esp + 0x18]
add esp, 8
test al, 2
mov dword [esp + 0x254], 1
je 0x4a0c39
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
and al, 0xfd
mov dword [esp + 0x10], eax
call fcn.004ff10b
mov al, byte [esp + 0x10]
xor edi, edi
test al, 1
mov dword [esp + 0x254], edi
je 0x4a0c61
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.004ff10b
jmp 0x4a0c61
xor edi, edi
mov ecx, dword [esi + 0x114]
push ebp
call fcn.004a3cb0
mov al, byte [esi + 0x160]
test al, al
je 0x4a0c87
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x114]
push eax
call fcn.004a4000
mov al, byte [esp + 0x20]
test al, al
je 0x4a0ce0
push edi
push 0xc
lea ecx, [esp + 0x2c]
call fcn.004a5540
mov eax, dword [esp + 0x25c]
xor edx, edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 3
mov dx, word [eax + 0x10]
push ecx
shl edx, 0x10
push edx
mov ecx, esi
call fcn.004a2e30
mov ecx, dword [esp + 0x28]
push edi
push 0xc
push ecx
mov ecx, ebp
call fcn.004a5140
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 0
call fcn.004a55c0
mov dword [esi + 0x64], edi
mov dword [esi + 0x2c], edi
mov eax, dword [esi + 0x74]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x70]
test bl, bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
je 0x4a0d0c
mov eax, dword [esi + 0x114]
cmp word [eax + 0xe], di
je 0x4a0d0c
mov word [eax + 0xe], di
mov eax, dword [esi + 0x114]
cmp word [eax + 0xe], 8
jne 0x4a0df9
mov al, byte [esi + 4]
test al, al
je 0x4a0d2c
lea eax, [esi + 0xcc]
jmp 0x4a0d2e
xor eax, eax
mov edx, dword [esp + 0x260]
push 0x38
push str.1.1.4
push edi
push 8
mov dword [esi + 0x50], eax
push 0xfffffffffffffff1
push 8
lea eax, [esi + 0x28]
push edx
push eax
call fcn.00499c40
mov edi, eax
test edi, edi
je 0x4a0df9
cmp edi, 2
je 0x4a0df9
mov ecx, ebp
call fcn.004a46d0
cmp eax, 0xffffffff
mov ebx, 4
jne 0x4a0d8f
push 0x55aca0
lea ecx, [esp + 0x1c]
call fcn.004ff17f
or dword [esp + 0x10], ebx
mov byte [esp + 0x254], bl
jmp 0x4a0daf
mov ecx, dword [esi + 0x94]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
or dword [esp + 0x10], 8
mov dword [esp + 0x254], 5
mov eax, dword [eax]
push eax
push edi
call fcn.004a7520
mov al, byte [esp + 0x18]
add esp, 8
test al, 8
mov dword [esp + 0x254], ebx
je 0x4a0ddd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
and al, 0xf7
mov dword [esp + 0x10], eax
call fcn.004ff10b
mov al, byte [esp + 0x10]
mov dword [esp + 0x254], 0
test bl, al
je 0x4a0df9
lea ecx, [esp + 0x18]
call fcn.004ff10b
lea ecx, [esp + 0x14]
mov byte [esi + 0xe8], 1
mov dword [esp + 0x254], 0xffffffff
call fcn.004ff10b
mov al, 1
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x248
ret 0xc