Function at 0x4b5de7
Capabilities:
Check if file exists

Disassembly:
push 0x22c
mov eax, 0x6385fc
call fcn.004d66c3
mov esi, ecx
mov dword [ebp - 0x230], esi
xor ebx, ebx
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x74]
mov dword [ebp - 4], ebx
push 2
push eax
call fcn.004a56ea
pop ecx
pop ecx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 1
call fcn.004b98e9
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.004b98e9
lea eax, [esi + 0xc]
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], eax
call fcn.004b6a89
push 0x63de0c
lea ecx, [ebp - 0x74]
call fcn.00401cb6
lea eax, [ebp - 0x40]
push 8
push eax
call fcn.004a56ea
pop ecx
pop ecx
push 8
pop edi
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x4b5e8f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00401c58
lea ecx, [ebp - 0x40]
call fcn.00401ce8
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], bl
cmp dword [ebp - 0x60], edi
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040676a
mov ecx, eax
call fcn.004af9ff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push 2
push eax
call fcn.004a56ea
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], edi
jb 0x4b5ef0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401c58
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00401ce8
push 0x64b9e8
lea ecx, [ebp - 0x5c]
call fcn.00401cb6
cmp dword [ebp - 0x48], edi
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b6138
cmp dword [ebp - 0x48], edi
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x224]
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
push eax
call fcn.004b2791
add esp, 0xc
cmp dword [ebp - 0x224], 0
je 0x4b6138
cmp dword [ebp - 0x220], 0
jbe 0x4b6138
push dword [ebp - 0x220]
lea ecx, [ebp - 0x8c]
push dword [ebp - 0x224]
call fcn.00405b9e
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xfc]
call fcn.004ba1c8
test al, al
je 0x4b6138
call fcn.004ba510
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b11a7
pop ecx
pop ecx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
push ecx
push eax
lea ecx, [ebp - 0xfc]
call fcn.004b9f41
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00405aa5
test bl, bl
je 0x4b6136
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004ba0ec
test al, al
je 0x4b612d
xor edi, edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004b9eed
cmp dword [ebp - 0x228], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], edi
setne bl
mov dword [ebp - 0x30], edi
call fcn.004046a0
mov byte [ebp - 0x2c], bl
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 9
push eax
call fcn.004b5300
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00405aa5
call fcn.004ad773
test al, al
je 0x4b6110
mov eax, dword [0x6d9390]
test eax, eax
je 0x4b6110
cmp dword [eax + 4], 4
jl 0x4b6110
push str.1020
call fcn.004ad356
mov ebx, eax
mov dword [esp], str.4803
call fcn.004ad356
pop ecx
push edi
push edi
push 0x6b2730
push 0x58
push str.CReportCheckLimit::OnGetCfgContent
push 4
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.00405da5
mov edi, eax
test esi, esi
mov byte [ebp - 4], 0xa
mov eax, str._null_
cmovne eax, esi
lea esi, [edi + 0x30]
push eax
push esi
call fcn.00403a1c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call fcn.004a79b7
test ebx, ebx
mov eax, str._null_
cmovne eax, ebx
push eax
push esi
call fcn.00403a1c
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x228]
call fcn.00403716
mov ecx, dword [0x6d9390]
push edi
call fcn.00405e8a
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00403bae
xor edi, edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004ba0ec
test al, al
jne 0x4b5ff1
mov esi, dword [ebp - 0x230]
cmp dword [esi + 0x10], 0
setne bl
jmp 0x4b6138
xor ebx, ebx
lea ecx, [ebp - 0x5c]
call fcn.00401ce8
lea ecx, [ebp - 0x8c]
call fcn.00405aa5
lea ecx, [ebp - 0xc4]
call fcn.004b99a3
lea ecx, [ebp - 0xfc]
call fcn.004b99a3
lea ecx, [ebp - 0x74]
call fcn.00401ce8
lea ecx, [ebp - 0x28]
call fcn.00405aa5
mov al, bl
call fcn.004d666d
ret