Function at 0x4049eb
Capabilities:
Check if file exists

Disassembly:
push 0xb8
mov eax, 0x423a4a
call fcn.004231c0
mov ebx, ecx
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push dword [eax + 0x558]
push str.GetLogInfo__dwGetLogInfoOff_d
push str.bugreport
call fcn.00419776
mov eax, dword [ebx + 4]
xor edx, edx
add esp, 0xc
cmp dword [eax + 0x558], edx
je 0x404a69
add eax, 0x350
cmp word [eax], dx
je 0x404a69
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x60], eax
xor edx, edx
jmp 0x404a6e
mov eax, edx
mov dword [ebp - 0x60], edx
test eax, eax
je 0x404b69
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x558]
mov eax, dword [ebp - 0x60]
add ecx, eax
mov dword [ebp - 0x74], ecx
je 0x404b40
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x70], edx
call fcn.0040117a
push 1
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, eax
call fcn.00405323
mov byte [ebp - 4], 1
mov ebx, dword [eax]
call fcn.0040117a
push 0x20
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.00405304
mov byte [ebp - 4], 2
mov esi, dword [eax]
call fcn.0040117a
mov ecx, dword [eax + 0x24]
sub ecx, 0x10
call fcn.00406bb4
lea edi, [eax + 0x10]
mov dword [ebp - 0x94], edi
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x78]
push ebx
push esi
push 0x42b7bb
push edi
push dword [eax + 4]
call dword [ebp - 0x74]
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.0040188c
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
test esi, esi
je 0x404b3d
cmp dword [ebp - 0x64], 0
je 0x404b3d
cmp dword [ebp - 0x70], 0
jbe 0x404b3d
push dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
call fcn.004080b6
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push eax
call fcn.00408017
lea ecx, [ebp - 0x28]
call fcn.00408323
mov eax, dword [ebp - 0x98]
jmp 0x405260
call fcn.00401cfb
push 0xf
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x5c], al
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x44], al
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
mov eax, dword [ebx + 4]
push dword [eax + 0x5d4]
call fcn.0040655d
mov ecx, str..dmp
mov byte [ebp - 4], 5
cmp esi, 0x860
lea edx, [ebp - 0x7c]
mov eax, str.MidDump.dmp
cmovne eax, ecx
lea ecx, [ebp - 0x68]
push eax
call fcn.00406141
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
push dword [eax]
mov edx, SysReAllocString
call fcn.0041929e
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00405304
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00415d37
pop ecx
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040188c
push str..txt
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x68]
call fcn.00406141
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64]
push dword [eax]
mov edx, SysReAllocString
call fcn.0041929e
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
push eax
mov ecx, ebx
call fcn.00405323
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00415d37
pop ecx
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040188c
cmp dword [0x437e94], 0
je 0x404cdd
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1d4c0
push dword [ebx + 0x34]
call esi
cmp dword [0x437e94], 0
je 0x404cca
and dword [0x437e94], 0
push 0x7d0
push dword [ebx + 0x34]
mov dword [0x437e98], 1
call esi
cmp dword [ebx + 0x34], 0
je 0x404cdd
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x34], 0
push 2
lea eax, [ebp - 0x6c]
mov ecx, ebx
push eax
call fcn.00405323
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x6c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040188c
test esi, esi
je 0x404d71
push str.FMD5.txt
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x68]
call fcn.00406141
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x64]
push dword [eax]
mov edx, SysReAllocString
call fcn.0041929e
pop ecx
pop ecx
push 2
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
push eax
mov ecx, ebx
call fcn.00405323
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
push ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00415d37
pop ecx
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0x64]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, ebx
call fcn.004059e9
test eax, eax
je 0x40504b
test byte [edi + 4], 1
je 0x40504b
mov ecx, dword [edi + 8]
mov dword [ebp - 0x90], ecx
mov eax, dword [ecx]
cmp eax, ecx
jmp 0x405042
add eax, 8
lea ecx, [ebp - 0xc4]
push eax
call fcn.0040527b
mov byte [ebp - 4], 0xf
mov ecx, dword [ebx + 0x24]
sub ecx, 0x10
call fcn.00406bb4
add eax, 0x10
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x10
call fcn.00405fc4
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov edi, dword [eax]
cmp edi, eax
je 0x404e67
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.00406bb4
add eax, 0x10
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.00405fc4
mov edx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00419201
push dword [eax]
push str.IsValidLogFilter:_ModName__s_
push 0x426940
call fcn.00419776
mov ecx, dword [ebp - 0x6c]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x404e50
cmp dword [esi - 0xc], 0
jl 0x404e50
push eax
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
je 0x404e4d
sub eax, esi
jns 0x405095
mov eax, dword [ebp - 0x60]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 0x10
call fcn.0040188c
mov edi, dword [edi]
cmp edi, dword [ebp - 0x68]
jne 0x404de2
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xf
call fcn.0040188c
mov ecx, dword [ebx + 0x18]
sub ecx, 0x10
call fcn.00406d2d
add eax, 0x10
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x12
call fcn.004062ea
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x68], eax
mov esi, dword [eax]
cmp esi, eax
je 0x404ef8
mov edx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00419201
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.004062ea
mov edi, dword [ebp - 0x64]
push edi
push str.IsValidLogFilter:_CrashInfo__s_
push 0x426940
call fcn.00419776
add esp, 0xc
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x64]
push dword [ebp - 0x60]
call fcn.00406864
lea ecx, [edi - 0x10]
test eax, eax
je 0x4050a9
mov byte [ebp - 4], 0x12
call fcn.0040188c
mov esi, dword [esi]
cmp esi, dword [ebp - 0x68]
jne 0x404e9f
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov eax, dword [ebx + 4]
push dword [eax + 0x3c]
lea eax, [ebp - 0x70]
push 0x42b7b8
push eax
call fcn.00415ace
add esp, 0xc
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x15
call fcn.00405fc4
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x68], eax
mov edi, dword [eax]
cmp edi, eax
je 0x404fdf
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.00406bb4
add eax, 0x10
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x16
call fcn.00405fc4
mov edx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00419201
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call fcn.00419201
push esi
push dword [eax]
push str.IsValidLogFilter:_ErrAdd__s____s_
push 0x426940
call fcn.00419776
mov ecx, dword [ebp - 0x9c]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov ecx, dword [ebp - 0xa0]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x60]
push dword [ebp - 0x70]
call fcn.00406752
test eax, eax
je 0x4050b7
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov edi, dword [edi]
cmp edi, dword [ebp - 0x68]
jne 0x404f3d
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.0040188c
mov edx, dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00419201
push dword [ebp - 0xc0]
push dword [eax]
push str.GetDetail2:_invalid_filter._FilterName__s__LogCount__d_
push 0x426940
call fcn.00419776
mov ecx, dword [ebp - 0x8c]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.0040188c
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 5
call fcn.004052de
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
jne 0x404d9c
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x88]
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x5d4]
call fcn.0041644b
test eax, eax
je 0x40519f
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
cmp eax, ecx
mov dword [ebp - 0x8c], ecx
jmp 0x405196
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 0xf
lea ecx, [esi - 0x10]
jmp 0x4050cc
call fcn.0040188c
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x60]
jmp 0x4050c9
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x70]
lea ecx, [ecx - 0x10]
call fcn.0040188c
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebx + 4]
push dword [eax + 0x24]
lea eax, [ebp - 0x5c]
push eax
call fcn.004053d8
jmp 0x405028
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00406d2d
lea edi, [eax + 0x10]
mov dword [ebp - 0x78], edi
push edi
mov byte [ebp - 4], 0x1a
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40517e
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x40511f
or eax, 0xffffffff
jmp 0x405123
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [edi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x78]
call fcn.004067d3
push ecx
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x74]
mov esi, dword [ebp - 0x90]
mov edx, SysReAllocString
push esi
call fcn.0041929e
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x1c
push eax
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x5c]
call fcn.00415d37
mov ecx, dword [ebp - 0x74]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.0040188c
lea ecx, [esi - 0x10]
call fcn.0040188c
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0x19
call fcn.0040188c
mov eax, dword [ebp - 0x64]
add eax, 4
cmp eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], eax
jne 0x4050ec
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004182c2
cmp dword [ebp - 0x18], 0xaf000
jb 0x4051d1
push dword [ebp - 0x94]
push dword [ebp - 0x18]
push str.detail2_over_FILE_MAX_SIZE__lu__08X
push 0x426940
call fcn.00419776
add esp, 0x10
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004182c2
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00408017
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x40523b
mov ebx, dword [ebp - 0x84]
cmp esi, ebx
je 0x40521b
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040188c
add esi, 4
cmp esi, ebx
jne 0x405204
mov esi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
mov ecx, esi
sub edx, esi
and edx, 0xfffffffc
call fcn.004082f6
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.0040188c
lea ecx, [ebp - 0x44]
call fcn.00408323
lea ecx, [ebp - 0x5c]
call fcn.00408323
lea ecx, [ebp - 0x28]
call fcn.00408323
mov eax, edi
call fcn.0042316a
ret 8