Function at 0x41663d
Capabilities:
Check if file exists

Disassembly:
push 0x22c
mov eax, 0x588da2
call fcn.0042d9c2
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.004131cf
pop ecx
pop ecx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 1
call fcn.0041b79e
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.0041b79e
lea eax, [esi + 0xc]
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x22c], eax
call fcn.004172f2
push 0x58e62c
lea ecx, [ebp - 0x74]
call fcn.004071bd
lea eax, [ebp - 0x40]
push 8
push eax
call fcn.004131cf
pop ecx
pop ecx
push 8
pop edi
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x4166e5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0040715f
lea ecx, [ebp - 0x40]
call fcn.00406942
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.004073e1
mov ecx, eax
call fcn.0041763a
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push 2
push eax
call fcn.004131cf
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], edi
jb 0x416746
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040715f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00406942
push 0x58eedc
lea ecx, [ebp - 0x5c]
call fcn.004071bd
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 0x41698e
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.00419418
add esp, 0xc
cmp dword [ebp - 0x224], 0
je 0x41698e
cmp dword [ebp - 0x220], 0
jbe 0x41698e
push dword [ebp - 0x220]
lea ecx, [ebp - 0x8c]
push dword [ebp - 0x224]
call fcn.0040679a
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041c23e
test al, al
je 0x41698e
call fcn.0041173a
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d819
pop ecx
pop ecx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
push ecx
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041bf6c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
mov bl, al
call fcn.0040688e
test bl, bl
je 0x41698c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041c162
test al, al
je 0x416983
xor edi, edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041bf18
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.00404f69
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.00415b56
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040688e
call fcn.0040feee
test al, al
je 0x416966
mov eax, dword [0x611e08]
test eax, eax
je 0x416966
cmp dword [eax + 4], 4
jl 0x416966
push str.1020
call fcn.0040fcc4
mov ebx, eax
mov dword [esp], str.4803
call fcn.0040fcc4
pop ecx
push edi
push edi
push 0x5f5c84
push 0x5a
push str.CReportCheckLimit::OnGetCfgContent
push 4
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.0040649f
mov edi, eax
test esi, esi
mov byte [ebp - 4], 0xa
mov eax, 0x5f5c24
cmovne eax, esi
lea esi, [edi + 0x30]
push eax
push esi
call fcn.004022e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call fcn.00402b30
test ebx, ebx
mov eax, 0x5f5c24
cmovne eax, ebx
push eax
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x228]
call fcn.0040f58e
mov ecx, dword [0x611e08]
push edi
call fcn.00406584
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.0040432a
xor edi, edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041c162
test al, al
jne 0x416847
mov esi, dword [ebp - 0x230]
cmp dword [esi + 0x10], 0
setne bl
jmp 0x41698e
xor ebx, ebx
lea ecx, [ebp - 0x5c]
call fcn.00406942
lea ecx, [ebp - 0x8c]
call fcn.0040688e
lea ecx, [ebp - 0xc4]
call fcn.0041b833
lea ecx, [ebp - 0xfc]
call fcn.0041b833
lea ecx, [ebp - 0x74]
call fcn.00406942
lea ecx, [ebp - 0x28]
call fcn.0040688e
mov al, bl
call fcn.0042d96c
ret