Function at 0x4b8600
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x520e9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x250]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x4b866a
push edi
push str.count
push str.option
push eax
call fcn.00496470
add esp, 0x10
cmp eax, 3
jbe 0x4b864f
mov dword [esp + 0x14], 1
inc eax
push eax
mov eax, dword [ebx + 0x250]
push str.count
push str.option
push eax
call fcn.00496830
add esp, 0x10
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
push esi
push ebp
mov ecx, ebx
call fcn.004b84b0
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
lea ecx, [ebx + 0x14]
push eax
push edx
call fcn.004b9e20
cmp esi, edi
mov dword [esp + 0x10], edi
jbe 0x4b87ef
add ebp, 0x21c
jmp 0x4b86a1
xor edi, edi
cmp word [ebp], di
je 0x4b87d2
mov cl, byte [esp + 0x50]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov byte [esi], cl
mov ecx, esi
call dword [0x5233d0]
lea edi, [ebp - 0x208]
push edi
call dword [0x52345c]
add esp, 4
mov ecx, esi
push eax
push edi
call dword [0x5233e8]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x3c]
push edx
push ebp
mov dword [esp + 0x5c], 0
call dword [0x5233e0]
push eax
lea eax, [ebx + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0x5c], 2
call fcn.004b8c90
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
call dword [0x5233d0]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b87d2
cmp dword [esp + 0x10], 0x10
jae 0x4b87d2
cmp dword [ebp - 0x218], 3
jle 0x4b87d2
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x4b874a
xor edx, edx
jmp 0x4b8760
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, dword [ebx + 0x18]
mov ecx, edx
shl ecx, 5
add ecx, edx
cmp dword [esi + ecx*4 - 4], 1
jne 0x4b87d2
mov eax, esi
test eax, eax
jne 0x4b877b
xor edx, edx
jmp 0x4b8791
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, edx
shl ecx, 5
add ecx, edx
lea eax, [esi + ecx*4 - 0x64]
mov eax, dword [esi + ecx*4 - 0x60]
test eax, eax
jne 0x4b87a9
mov eax, dword [0x5233dc]
push eax
call dword [0x523704]
test eax, eax
jne 0x4b87d2
call fcn.00422810
mov edx, dword [eax + 4]
push 0xffff
push 0x76d1
push 0x405
push edx
call dword [0x523774]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
inc eax
add ebp, 0x1268
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4b869f
xor edi, edi
mov al, byte [esp + 0x50]
mov dword [esp + 0x20], edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ebp, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, ebp
mov dword [esp + 0x50], eax
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov ecx, edx
mov dword [esp + 0x44], 3
shr ecx, 0x1f
add edx, ecx
mov esi, edx
mov dword [esp + 0x4c], esi
je 0x4b88df
lea ecx, [esp + 0x1c]
call fcn.004b9df0
mov edi, eax
add edi, esi
mov eax, edi
jns 0x4b8849
xor eax, eax
mov edx, eax
shl edx, 5
add edx, eax
shl edx, 2
push edx
call fcn.0051c5a0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push esi
push 0
push eax
call fcn.004b9fb0
mov ecx, dword [esp + 0x50]
push eax
push ebp
push ecx
lea ecx, [esp + 0x28]
call fcn.004b9fb0
mov edx, dword [esp + 0x24]
push eax
push edx
push 0
lea ecx, [esp + 0x28]
call fcn.004b9fb0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004b9f80
mov edx, dword [esp + 0x20]
push edx
call fcn.0051c55a
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
lea ecx, [esi + eax*4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.004b9df0
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x20], esi
add eax, ebp
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [esi + edx*4]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
lea ebp, [ebx + 4]
push ecx
push eax
push eax
call fcn.004bba20
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push esi
call fcn.004b9f80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [ebp + 8], esi
mov dword [esp + 0x50], eax
je 0x4b898c
mov cl, byte [esp + 0x50]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x5c], esp
push 0
mov byte [esi], cl
mov ecx, esi
call dword [0x5233d0]
push 0x56bc90
call dword [0x52345c]
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call dword [0x52342c]
test al, al
je 0x4b896d
mov eax, dword [esi + 4]
push edi
push 0x56bc90
push eax
call fcn.0049cd60
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], 0
lea eax, [edx + edi*2]
mov esi, dword [esp + 0x60]
mov ecx, ebx
push esi
push ebp
call fcn.004b8c90
mov eax, dword [esp + 0x24]
add esi, 0x84
cmp esi, eax
mov dword [esp + 0x50], esi
jne 0x4b8914
push 0x1e
lea eax, [ebx + 0x14]
push str.often
push eax
mov ecx, ebx
call fcn.004b5f00
push 0xa
push str.other
push ebp
mov ecx, ebx
call fcn.004b5f00
push 1
mov ecx, ebx
call fcn.004b9850
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, eax
mov dword [esp + 0x44], 0xffffffff
mov edi, eax
je 0x4b89e3
push 0
mov ecx, esi
call fcn.004bbfe0
add esi, 0x84
cmp esi, edi
jne 0x4b89cc
mov esi, dword [esp + 0x20]
push esi
call fcn.0051c55a
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8