Function at 0x40f570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4771f5
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
test eax, eax
jne 0x40f763
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x5c], al
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x44], al
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x4c]
sub ecx, 0x10
call fcn.004087c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x94], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x40f639
push dword [esi - 0xc]
lea ecx, [ebp - 0x94]
call fcn.00408520
mov esi, dword [ebp - 0x94]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [esi - 8]
push esi
call fcn.0045ffc5
add esp, 8
test eax, eax
js 0x40f759
cmp eax, dword [esi - 8]
jg 0x40f759
xor ecx, ecx
mov dword [esi - 0xc], eax
cmp dword [ebp - 0x98], 0x860
lea edx, [ebp - 0x94]
mov word [esi + eax*2], cx
mov ecx, str..dmp
mov eax, str.MidDump.dmp
cmovne eax, ecx
lea ecx, [ebp - 0xa0]
push eax
call fcn.00412400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
mov edx, dword [eax]
call fcn.00430100
add esp, 4
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0xa0]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f6c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push eax
add edx, 0x50
lea ecx, [ebp - 0x5c]
call fcn.0042c230
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
push 1
push eax
call fcn.0042eb00
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00411dc0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x98]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f71c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40f735
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x5c]
call fcn.0040ffc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40f752
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00413b90
mov eax, ebx
jmp 0x40ffa1
push 0x80070057
call fcn.004064f0
push dword [eax + 0x558]
push str.GetLogInfo__dwGetLogInfoOff_d
push str.bugreport
call fcn.00430910
mov eax, dword [edi + 8]
add esp, 0xc
cmp dword [eax + 0x558], 0
je 0x40f965
add eax, 0x350
cmp word [eax], 0
je 0x40f965
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f95f
mov ecx, dword [edi + 8]
mov ebx, dword [ecx + 0x558]
add ebx, esi
je 0x40f942
mov eax, dword [0x4a2004]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
test al, 1
jne 0x40f7f3
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 1
lea eax, [ebp - 0xb8]
mov ecx, 0x4a2008
push eax
call fcn.00410450
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 6
mov ecx, dword [0x4a2004]
test cl, 1
jne 0x40f836
or ecx, 1
mov dword [0x4a2004], ecx
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 0x20
lea eax, [ebp - 0xa4]
mov ecx, 0x4a2008
push eax
call fcn.00410310
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 7
mov edx, dword [0x4a2004]
test dl, 1
jne 0x40f879
or edx, 1
mov dword [0x4a2004], edx
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
lea eax, [ebp - 0x9c]
mov ecx, 0x4a2008
push eax
call fcn.00409490
push 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp - 0xa0]
push dword [ecx]
mov ecx, dword [ebp - 0xb0]
push dword [ecx]
push 0x48d783
push dword [eax]
push dword [edi + 8]
call ebx
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp - 0x9c]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f8e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f901
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xb8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40f920
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40f942
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40f942
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40f942
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00411b50
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00411dc0
jmp 0x40ff8a
mov esi, dword [ebp - 0x98]
mov eax, dword [0x4a20ec]
test al, 1
jne 0x40f996
or eax, 1
mov dword [0x4a20ec], eax
mov byte [ebp - 4], 9
call fcn.0041bef0
push 0x47b460
mov dword [0x4a20a0], 0xffffffff
call fcn.0044e3dd
add esp, 4
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xac]
mov eax, dword [edi + 8]
push dword [eax + 0x5d4]
call fcn.00407540
mov ecx, str..dmp
mov byte [ebp - 4], 0xb
cmp esi, 0x860
lea edx, [ebp - 0xac]
mov eax, str.MidDump.dmp
cmovne eax, ecx
lea ecx, [ebp - 0xb8]
push eax
call fcn.00412400
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa0]
mov edx, dword [eax]
call fcn.00430100
add esp, 4
mov byte [ebp - 4], 0xe
or ebx, 0xffffffff
mov edx, dword [ebp - 0xb8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea eax, [ebp - 0xa4]
mov ecx, edi
push eax
call fcn.00410310
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.0042c230
mov byte [ebp - 4], 0xe
add esp, 4
mov edx, dword [ebp - 0xa4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..txt
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0xa4]
call fcn.00412400
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xb0]
mov edx, dword [eax]
call fcn.00430100
add esp, 4
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fad3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.00410450
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x13
push ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.0042c230
mov byte [ebp - 4], 0x12
add esp, 4
mov edx, dword [ebp - 0x94]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x4a1b84], 0
je 0x40fb74
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1d4c0
push dword [edi + 0x58]
call esi
cmp dword [0x4a1b84], 0
je 0x40fb5f
push 0x7d0
push dword [edi + 0x58]
mov dword [0x4a1b84], 0
mov dword [0x4a1c30], 1
call esi
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40fb74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x58], 0
push 2
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.00410450
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x94]
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40fbab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40fc6b
push str.FMD5.txt
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0xa8]
call fcn.00412400
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xb4]
mov edx, dword [eax]
call fcn.00430100
add esp, 4
mov esi, eax
push 2
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0x15
push eax
mov ecx, edi
call fcn.00410450
push esi
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x90]
call fcn.0042c230
mov byte [ebp - 4], 0x15
add esp, 4
mov edx, dword [ebp - 0x94]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.00411310
test eax, eax
je 0x40fd72
test byte [0x4a20a4], 1
je 0x40fd72
mov edi, dword [0x4a20a8]
mov esi, dword [edi]
cmp esi, edi
je 0x40fd6c
lea ebx, [esi + 8]
push ebx
lea ecx, [ebp - 0x48]
call fcn.004136c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x40]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 8]
push eax
call fcn.004119a0
lea eax, [ebx + 0x10]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x38]
call fcn.004119a0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x30]
call fcn.004119a0
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x48]
mov ebx, dword [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.004105c0
test eax, eax
je 0x40fd0d
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebx + 8]
push dword [eax + 0x24]
lea eax, [ebp - 0x90]
push eax
call fcn.00410b60
or ebx, 0xffffffff
jmp 0x40fd56
mov edx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0042ff90
add esp, 4
push dword [ebp - 0x44]
push dword [eax]
push str.GetDetail2:_invalid_filter._FilterName__s__LogCount__d_
push 0x48b2e8
call fcn.00430910
mov edx, dword [ebp - 0xa8]
or ebx, 0xffffffff
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fd56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.00410030
mov esi, dword [esi]
cmp esi, edi
jne 0x40fc97
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xc8]
mov edx, dword [edi + 8]
mov edx, dword [edx + 0x5d4]
call fcn.0042cad0
test eax, eax
je 0x40febd
mov edi, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
cmp edi, ecx
sete al
test al, al
jne 0x40febd
cmp edi, ecx
je 0x40febd
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004087c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x94], esi
push esi
mov byte [ebp - 4], 0x1c
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe93
push 0x5c
push esi
call fcn.004516ae
add esp, 8
test eax, eax
jne 0x40fe0b
or eax, 0xffffffff
jmp 0x40fe0f
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x94]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00412670
mov byte [ebp - 4], 0x1d
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00430100
add esp, 4
push eax
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x90]
call fcn.0042c230
mov byte [ebp - 4], 0x1d
add esp, 4
mov edx, dword [ebp - 0xa8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov eax, ebx
mov edx, dword [ebp - 0xb4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40feae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0xc4]
jne 0x40fdd1
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x90]
call fcn.0042eb00
mov eax, dword [ebp - 0x18]
cmp eax, 0xaf000
jb 0x40fef1
push dword [ebp - 0x98]
push eax
push str.detail2_over_FILE_MAX_SIZE__lu__08X
push 0x48b2e8
call fcn.00430910
add esp, 0x10
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x90]
call fcn.0042eb00
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00411dc0
lea ecx, [ebp - 0xc8]
call fcn.00412d10
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xac]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ff7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x90]
call fcn.0040ffc0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40ff9f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00413b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 8