Function at 0x1001caf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x10045018]
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 dword [ebp - 0x2dc], ecx
push str.TreatUpdateSuccess
push 0x10000
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.iImportLib.dll_int___cdecl_elex::uphlp::CFG_GetUpdateParam_class_std::vector_struct_elex::uphlp::tagUPDATECFGPARAM__class_std::allocator_struct_elex::uphlp::tagUPDATECFGPARAM____]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
test eax, eax
jne 0x1001cb71
mov esi, 0xe0001006
jmp 0x1001cebe
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub ecx, edi
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
mov dword [ebp - 0x2d4], 0
add eax, edx
je 0x1001ceab
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
mov esi, dword [ecx + edi]
mov ebx, dword [ecx + edi + 0x34]
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 0x1c]
add eax, edi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.100093b0
mov eax, esi
imul eax, eax, 0x628
add eax, dword [ebp - 0x2dc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2e0], eax
cmp dword [eax + 0x228], 3
jne 0x1001ce43
lea edi, [eax + 0x63c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ce43
mov eax, dword [ebp - 0x2e0]
cmp dword [eax + 0x220], 0
jne 0x1001ccb8
xor edx, edx
lea ecx, [edx + 2]
call fcn.1002b8c0
mov esi, eax
mov eax, dword [0x1004989c]
and eax, 0xff00
cmp eax, 0x1500
jb 0x1001cc40
test esi, esi
je 0x1001ce95
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push eax
mov edi, str._s__delself
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x240]
push 0x100368d8
push 0x10049c30
push 0x10035f44
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x2dc]
test eax, eax
mov edx, str._s__delself__vim
cmove edx, edi
push esi
lea ecx, [ecx + 0x63c]
call fcn.10008010
add esp, 4
jmp 0x1001ce33
push 0x28c
lea eax, [ebp - 0x2c4]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c8], 0x290
mov dword [ebp - 0x2c0], 1
mov dword [ebp - 0x3c], esi
jb 0x1001ccfd
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x1001cd00
xor eax, eax
mov word [ebp - 0x2bc], ax
jmp 0x1001cd16
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x2bc]
push 0x14
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov ecx, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jne 0x1001cd25
xor eax, eax
mov word [ebp - 0x244], ax
jmp 0x1001cd3e
push edi
lea eax, [ebp - 0x244]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov ecx, dword [ebp - 0x28]
add esp, 0xc
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2d0], eax
cmp ebx, 2
jne 0x1001cd95
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
push eax
push esi
push str.TreatUpdateSuccess_svc2_dwId_u_mod_s
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea eax, [ebp - 0x2d0]
push 0
push eax
push 0
push 0
push 0
push 0x1c
push ebx
call dword [sym.imp.iCommu.dll_ICOM_1004]
add esp, 0x1c
jmp 0x1001ce33
mov ecx, ebx
call fcn.1002a230
test eax, eax
jne 0x1001cdfd
cmp esi, 0x16
je 0x1001cdd4
cmp esi, 0x17
je 0x1001cdd4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
push str.TreatUpdateSuccess_DefaultUpdate_dwId_u_mod_s
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
imul esi, esi, 0x54
add esi, dword [ebp - 0x34]
add esp, 0xc
mov ecx, esi
call fcn.1001d7c0
jmp 0x1001ce33
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
push str.TreatUpdateSuccess_dwId_u_mod_s_continue
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10008e90
jmp 0x1001ce59
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
push ebx
push str.TreatUpdateSuccess_send_to__08X_dwId_u_mod_s
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
lea eax, [ebp - 0x2d0]
push eax
push ecx
push 0
push ecx
mov edx, 0x1c
mov ecx, ebx
call fcn.1002a3c0
add esp, 0x14
mov eax, dword [ebp - 0x2e0]
mov dword [eax + 0x228], 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x1001ce59
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2d4]
add dword [ebp - 0x2d8], 0x54
sub ecx, edi
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [ebp - 0x2d4], ebx
cmp ebx, eax
jae 0x1001ceab
mov ecx, dword [ebp - 0x2d8]
jmp 0x1001cba2
cmp dword [ebp - 0x14], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1001cebc
push dword [ebp - 0x28]
call edi
add esp, 4
jmp 0x1001cebc
mov ecx, dword [ebp - 0x2dc]
call fcn.1001c290
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
xor esi, esi
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1001cedc
push dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x30]
push ecx
call fcn.1001fa70
push dword [ebp - 0x34]
call edi
add esp, 0xc
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.1002d28e
mov esp, ebp
pop ebp
ret