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

Disassembly:
push 0xe4
mov eax, 0x435717
call fcn.0042bf4b
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x48], eax
lea eax, [ebx + 8]
mov dword [ebp - 0x38], ebx
call fcn.0041b3a5
mov esi, eax
test esi, esi
jne 0x4020ec
cmp dword [0x449af4], eax
je 0x4020c4
lea eax, [ebp + 8]
push eax
push str.oops__cann_t_find_appItem_in_config___softid_:
call fcn.004047d4
call fcn.0040481c
call fcn.00404845
mov esi, eax
call fcn.0040489b
and dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 4
call fcn.004010e4
push 0x68
push eax
call fcn.0042340c
xor eax, eax
call fcn.0042bfce
ret 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x98]
sub eax, 0x10
lea edi, [esi + 8]
call fcn.00403dac
add eax, 0x10
mov dword [ebp - 0x40], eax
and dword [ebp - 4], 0
lea eax, [esi + 0xc]
push eax
call fcn.0042121d
pop ecx
mov ecx, ebx
call fcn.00401d71
test eax, eax
jne 0x40213f
and dword [ebx + 0x84], eax
mov dword [ebx + 0x80], 6
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.004050ec
jmp 0x4020e2
cmp dword [ebx + 0x88], 0
je 0x40215a
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
call fcn.00419951
push dword [ebp - 0x34]
call fcn.00419a49
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x402280
lea eax, [ebp - 0x3c]
push 0x437880
lea ecx, [ebx + 4]
push eax
call fcn.0040344a
lea ecx, [ebp - 0x34]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004033f9
add esp, 0x10
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040302c
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004050ec
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004050ec
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4022cd
mov eax, dword [esi + 4]
push dword [ebp - 0x30]
push eax
lea eax, [ebx + 0x70]
call fcn.004065f4
test eax, eax
jne 0x4022cd
call fcn.004010e4
push 0x69
push eax
call fcn.0042340c
cmp dword [0x449af4], 0
je 0x402249
push dword [ebp - 0x30]
mov esi, dword [esi + 4]
push str.__path_:
push esi
push str.__url_:
lea eax, [ebp + 8]
push eax
push str.oops__download_failed___softid_:
call fcn.004047d4
call fcn.0040481c
call fcn.00404845
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
mov esi, eax
call fcn.0040489b
mov eax, dword [ebx + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 0
push dword [ebp + 8]
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x80], 0x1e
add ebx, 0x1c
push ebx
call fcn.0041cf6f
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004050ec
jmp 0x402132
lea edi, [esi + 0x38]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4022cd
lea eax, [ebp - 0x3c]
push eax
call fcn.00422a81
pop ecx
lea ecx, [ebp - 0x34]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004033f9
pop ecx
pop ecx
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0040302c
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004050ec
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.004050ec
call fcn.004010e4
push 0x6a
push eax
call fcn.0042340c
push dword [ebp + 8]
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x44], eax
call fcn.0041cc3d
call fcn.004010e4
push 0x6b
push eax
call fcn.0042340c
lea edi, [esi + 0xc]
push dword [edi]
push dword [ebp - 0x30]
push ebx
mov ebx, esi
call fcn.00402d34
and dword [ebp - 0x34], 0
test eax, eax
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
jne 0x402322
push dword [ebp - 0x48]
mov eax, esi
push ebx
call fcn.00402a84
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [ebp - 0x3c], eax
je 0x4023ba
call fcn.004010e4
push 0x6c
push eax
call fcn.0042340c
cmp dword [0x449af4], 0
je 0x40238f
push dword [ebp - 0x30]
mov edi, dword [edi]
push str.__path_:
push edi
push str.__cmd_:
lea eax, [ebp + 8]
push eax
push str.oops__Create_install_process_failed___softid_:
call fcn.004047d4
call fcn.0040481c
call fcn.00404845
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
mov esi, eax
call fcn.0040489b
push dword [ebp + 8]
push dword [ebp - 0x44]
call fcn.0041ccd8
mov eax, dword [ebp - 0x3c]
push 1
push dword [ebp + 8]
mov dword [ebx + 0x84], eax
push dword [ebp - 0x44]
mov dword [ebx + 0x80], 0xd
jmp 0x40226b
cmp dword [ebp - 0x34], eax
jne 0x402489
call fcn.004010e4
push 0x6c
push eax
call fcn.0042340c
cmp dword [0x449af4], 0
je 0x40241c
push dword [ebp - 0x30]
mov edi, dword [edi]
push str.__path_:
push edi
push str.__cmd_:
lea eax, [ebp + 8]
push eax
push str.oops__Install_failed___softid_:
call fcn.004047d4
call fcn.0040481c
call fcn.00404845
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
call fcn.0040481c
mov esi, eax
call fcn.0040489b
push dword [ebp + 8]
push dword [ebp - 0x44]
call fcn.0041ccd8
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x48], esp
mov esi, esp
call fcn.00403dac
add eax, 0x10
mov dword [esi], eax
call fcn.0041a4ee
pop ecx
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
push 1
push dword [ebp + 8]
mov dword [ebx + 0x84], esi
push dword [ebp - 0x44]
add ecx, 8
mov eax, ecx
mov dword [ebx + 0x80], eax
call fcn.0041cf6f
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, esi
jmp 0x4020e4
cmp dword [ebx + 0x88], eax
je 0x40249e
mov edi, dword [esi]
call fcn.00419951
push edi
call fcn.004199b3
lea ecx, [esi + 0x3c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4025ab
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
call fcn.0041a609
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x40259c
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0xe8]
push 0xfde9
mov dword [ebp - 0xec], eax
push edi
lea eax, [ebp - 0xec]
push eax
call fcn.00403a83
mov byte [ebp - 4], 7
push dword [ebp - 0xec]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 9
cmp dword [ebp - 0xec], eax
je 0x40251e
push dword [ebp - 0xec]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [edi - 0xc], 0
je 0x402560
cmp dword [ebx + 0x9c], 0
je 0x402560
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x402539
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
push eax
lea ebx, [ebp - 0x68]
call fcn.0042150c
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call dword [0x4371b4]
mov ecx, ebx
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40256c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00402fe5
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
call fcn.00422c3c
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
call fcn.004050ec
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.004050ec
push dword [ebp + 8]
push dword [ebp - 0x44]
call fcn.0041d05a
call fcn.004010e4
push 0x6d
push eax
call fcn.0042340c
push esi
call fcn.004194d1
xor esi, esi
inc esi
jmp 0x40246c