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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b638
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
lea ebx, [esi + 0xc]
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
xor ebp, ebp
cmp eax, ebp
jne 0x4b0871
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4b0871
cmp eax, 0x10002
je 0x4b0871
xor edi, edi
jmp 0x4b0876
mov edi, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
cmp edi, ebp
je 0x4b088b
mov eax, 0x30004
jmp 0x4b09ee
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004a01d0
mov ecx, dword [0x569c90]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ecx
mov byte [esp + 0x28], 1
lea eax, [ebx + 8]
inc ebp
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4b08d7
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4b08d7
cmp eax, 0x10002
je 0x4b08d7
xor edi, edi
jmp 0x4b08dc
mov edi, 1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
test edi, edi
jne 0x4b09ca
mov ecx, 0x571fb8
call fcn.00482ac0
cmp eax, 1
push ebp
jne 0x4b0922
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0049a5d0
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.00507e73
lea ecx, [esp + 0x14]
jmp 0x4b0947
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0049a420
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00507e73
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.00507d3a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.004f27d5
add esp, 8
test eax, eax
je 0x4b097b
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b0a03
cmp ebp, 0x4000
jl 0x4b08aa
mov eax, dword [0x569c90]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0xe1e1
push edx
mov byte [esp + 0x34], 6
call fcn.005054ef
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push 1
push 2
push eax
call fcn.004d2190
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00507d3a
mov eax, 0x30006
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, dword [0x569c90]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0xe1e6
push ecx
mov byte [esp + 0x38], 4
call fcn.005054ef
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, esi
push 1
push 1
push edx
call fcn.004d2190
mov ebp, dword [esp + 0x30]
mov edi, ebx
mov dword [esp + 0x1c], edi
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
lea ecx, [esi + 0x20c]
mov byte [esp + 0x2c], 5
call fcn.00507ec3
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x28], 4
call dword [edx + 0x14]
push 0
push 0
push 4
mov ecx, esi
call fcn.004d1c70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00507d3a
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00507d3a
mov eax, 0x10001
jmp 0x4b09ee