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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cade8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x14], ecx
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x4a5a76
lea eax, [edi + 0x78]
push eax
call fcn.00591712
add esp, 4
test eax, eax
je 0x4a5d42
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x4a5a91
lea eax, [edi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a5d42
mov eax, dword [edi + 0x74]
cmp eax, esi
jne 0x4a5aab
lea eax, [edi + 0x78]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x34], si
call fcn.00401ee0
mov eax, dword [edi + 0x5c]
mov byte [ebp - 4], 1
cmp eax, esi
jne 0x4a5acc
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, esi
jne 0x4a5ad6
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00593cdc
add esp, 8
test eax, eax
je 0x4a5c98
mov eax, dword [edi + 0x5c]
cmp eax, esi
jne 0x4a5af2
lea eax, [edi + 0x60]
push 1
push eax
call fcn.004740e0
mov eax, dword [edi + 0x5c]
add esp, 8
cmp eax, esi
jne 0x4a5b07
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, esi
jne 0x4a5b11
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.00473cb0
add esp, 0xc
cmp eax, esi
jne 0x4a5c98
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x1c], si
mov eax, dword [edi + 0x5c]
mov ebx, 2
cmp eax, esi
mov byte [ebp - 4], bl
jne 0x4a5b41
lea eax, [edi + 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4a5b54
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.00591662
add esp, 8
cmp eax, esi
je 0x4a5c4f
add eax, ebx
mov word [eax], si
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4a5b76
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00474270
add esp, 8
cmp eax, esi
jne 0x4a5c4f
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x4a5b93
lea eax, [ebp - 0x1c]
add eax, 6
push 0x5c
push eax
call fcn.00591b7f
add esp, 8
mov esi, eax
test esi, esi
je 0x4a5c2b
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4a5bb5
lea eax, [ebp - 0x1c]
xor ecx, ecx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x2c]
call fcn.00401ee0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x4a5bd8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4a5be2
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4a5bf8
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00474270
add esp, 8
test eax, eax
jne 0x4a5c6c
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4a5c11
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00474450
add esp, 8
test eax, eax
jne 0x4a5c6c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4a5c35
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x4a5c3f
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.00473cb0
add esp, 0xc
test eax, eax
jne 0x4a5c8c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4a5d42
add esi, 2
push 0x5c
push esi
call fcn.00591b7f
add esp, 8
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00401070
jmp 0x4a5ba3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
xor eax, eax
cmp eax, dword [ebx + 0x51c]
jge 0x4a5cbb
mov edx, dword [ebx + 0x518]
cmp dword [edx + eax*8], esi
lea edx, [edx + eax*8]
jne 0x4a5d20
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4a5cd4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4a5ce5
push eax
mov ecx, ebx
call fcn.004a5db0
mov ecx, eax
test ecx, ecx
je 0x4a5ce5
push 3
mov dword [ecx + 0xcc], 1
call fcn.00560c50
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4a5cef
lea eax, [edi + 0x60]
push 0
push 0
push eax
call fcn.00563ec0
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
inc eax
jmp 0x4a5ca2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8