Function at 0x418030
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d36
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.0042e460
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1014], 0
test edi, edi
je 0x418456
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418456
test esi, esi
je 0x418456
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4180a2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
mov dword [ebp - 0x117c], 0x47efa8
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x110c]
mov dword [ebp - 0x1014], 1
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1110], 0x58
movlpd qword [ebp - 0x1174], xmm0
call fcn.00418680
lea eax, [ebp - 0x116c]
mov dword [ebp - 0x10d0], 0
push 0x20
lea ecx, [ebp - 0x110c]
mov dword [ebp - 0x10d4], eax
call fcn.00419810
cmp dword [ebp - 0x10d4], 0
mov byte [ebp - 0x10cc], al
jne 0x418146
mov eax, dword [ebp - 0x1100]
lea ecx, [ebp - 0x110c]
push 0
or eax, 4
push eax
call fcn.0040cdb0
mov eax, dword [ebp - 0x117c]
push 0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x117c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1180], eax
lea ecx, [ebp - 0x116c]
call fcn.00417950
push 0x40
push 1
push edi
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 3
call fcn.00418ea0
test eax, eax
jne 0x4181c4
mov eax, dword [ebp - 0x117c]
lea ecx, [ebp - 0x117c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040cdb0
mov dword [ebp - 4], 4
mov dword [ebp - 0x10c4], 0x47efc8
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x1014], 5
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1060], 0x60
call fcn.00418680
lea eax, [ebp - 0x10c0]
mov dword [ebp - 0x1020], 0
push 0x20
lea ecx, [ebp - 0x105c]
mov dword [ebp - 0x1024], eax
call fcn.00419810
cmp dword [ebp - 0x1024], 0
mov byte [ebp - 0x101c], al
jne 0x41824b
mov eax, dword [ebp - 0x1050]
lea ecx, [ebp - 0x105c]
push 0
or eax, 4
push eax
call fcn.0040cdb0
mov eax, dword [ebp - 0x10c4]
push 0
mov dword [ebp - 4], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c8], eax
lea ecx, [ebp - 0x10c0]
call fcn.00417950
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10c0]
mov byte [ebp - 4], 8
call fcn.00418ea0
test eax, eax
jne 0x4182c9
mov eax, dword [ebp - 0x10c4]
lea ecx, [ebp - 0x10c4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040cdb0
mov eax, dword [ebp - 0x117c]
lea ecx, [ebp - 0x1170]
mov byte [ebp - 4], 9
mov edx, dword [eax + 4]
add ecx, edx
cmp dword [ecx], 0
jne 0x4183cc
mov eax, dword [ebp - 0x10c4]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10b8], 0
jne 0x4183cc
test byte [ecx], 1
jne 0x4183cc
lea ecx, [ebp - 0x117c]
add ecx, edx
push 0xa
call fcn.00419810
movzx eax, al
lea ecx, [ebp - 0x117c]
push eax
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call fcn.00418c80
lea eax, [ebp - 0x1010]
push str.check
push eax
call fcn.0044e910
add esp, 8
test eax, eax
je 0x418371
lea eax, [ebp - 0x1010]
push str._trate_
push eax
call fcn.0044e910
lea ecx, [ebp - 0x1010]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418368
jmp 0x418387
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418380
push 0
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x10c4]
call fcn.004198b0
push 0
push 2
push 0x47efe0
lea ecx, [ebp - 0x10c4]
call fcn.004198b0
mov eax, dword [ebp - 0x117c]
lea ecx, [ebp - 0x1170]
mov edx, dword [eax + 4]
add ecx, edx
cmp dword [ecx], 0
je 0x4182e7
lea ecx, [ebp - 0x116c]
call fcn.00418940
test eax, eax
jne 0x418406
mov eax, dword [ebp - 0x117c]
lea ecx, [ebp - 0x117c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040cdb0
lea ecx, [ebp - 0x10c0]
call fcn.00418940
test eax, eax
jne 0x418440
mov eax, dword [ebp - 0x10c4]
lea ecx, [ebp - 0x10c4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040cdb0
lea ecx, [ebp - 0x10c4]
call fcn.00417d00
lea ecx, [ebp - 0x117c]
call fcn.00417c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret