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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882d4
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x4b13d4]
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 ebx, ecx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x454], edi
test edi, edi
je 0x40a4f7
mov eax, dword [edi]
cmp eax, 0x138a
jne 0x40a13c
movsd xmm0, qword [edi + 8]
mulsd xmm0, qword [0x4a7a40]
mov ecx, dword [ebx + 0x6ac]
cvttsd2si eax, xmm0
push eax
call fcn.00422b80
jmp 0x40a4ef
cmp eax, 0x138b
jne 0x40a3c4
sub esp, 8
lea ecx, [ebp - 0x4d4]
call fcn.00408e30
lea eax, [ebp - 0x4a4]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4d4]
push eax
push ecx
lea ecx, [ebp - 0x45c]
call fcn.00408c80
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x45c]
push eax
push dword [eax]
lea eax, [ebp - 0x454]
push eax
call fcn.00402b80
push dword [ebp - 0x45c]
call fcn.00468480
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4d4]
push fcn.00403140
push 1
push 0x30
push eax
call fcn.004686ed
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
call fcn.00408e00
push eax
mov dword [ebp - 0x45c], eax
lea ecx, [ebp - 0x45c]
push dword [eax]
lea eax, [ebp - 0x454]
push eax
call fcn.00402b80
push dword [ebp - 0x45c]
call fcn.00468480
add esp, 4
call fcn.00413cf0
mov ecx, eax
call fcn.00410850
push eax
lea ecx, [ebp - 0x450]
call fcn.00402460
push str.resmainWndinstallPrg3.png
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 1
call fcn.00402460
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x474]
call fcn.00404060
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40a252
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x474]
mov esi, eax
call fcn.00402590
test esi, esi
je 0x40a29d
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40a28e
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00422b30
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40a29d
call fcn.0041dd60
push 0x3e8
push 1
lea ecx, [ebx + 0x2c]
call fcn.00413d20
push eax
lea ecx, [ebx + 0x2c]
call fcn.004182c0
xor ecx, ecx
mov dword [ebp - 0x460], 7
push 0xffffffffffffffff
push ecx
lea eax, [ebx + 0x6b8]
mov word [ebp - 0x474], cx
push eax
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x464], 0
call fcn.00401fb0
push str.inst.ep
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 3
call fcn.00401ea0
cmp dword [eax + 0x14], 8
jb 0x40a303
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 2
call fcn.00402590
xor eax, eax
mov dword [ebp - 0x460], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x474], ax
lea ecx, [ebp - 0x474]
lea eax, [ebx + 0x6b8]
mov dword [ebp - 0x464], 0
push eax
call fcn.00401fb0
push str.unins.ep
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 4
call fcn.00401ea0
cmp dword [eax + 0x14], 8
jb 0x40a369
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 2
call fcn.00402590
mov ecx, ebx
call fcn.0040b2a0
push ecx
push str.SoftwareHudunSoftSwift_AI_Writing
push ecx
mov edx, 0x208
lea ecx, [ebp - 0x420]
call fcn.00409720
lea edx, [ebp - 0x420]
mov ecx, SysReAllocString
call fcn.0040ea70
lea ecx, [ebp - 0x438]
call fcn.00402590
lea ecx, [ebp - 0x450]
call fcn.00402590
jmp 0x40a4ef
cmp eax, 0x138c
je 0x40a3d6
cmp eax, 0x3e9
jne 0x40a4ef
push edi
call fcn.0040a570
push 0xffffffffffffffff
push 0x4a69d0
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x668], 4
mov dword [ebp - 0x664], 0x84
call fcn.0040fe90
push 0xffffffffffffffff
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x5dc]
mov dword [ebp - 4], 0xc
call fcn.0040fe90
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 0xd
call fcn.00402460
mov esi, eax
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 0xe
call fcn.00402460
mov edi, eax
push 1
sub esp, 8
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.00408d60
push eax
push 0
lea eax, [ebp - 0x474]
mov ecx, edi
push eax
call fcn.00408d20
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x40a474
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x558]
call fcn.0040fe90
lea ecx, [ebp - 0x474]
call fcn.00402590
lea ecx, [ebp - 0x48c]
call fcn.00402590
lea ecx, [ebp - 0x4a4]
call fcn.00402590
mov dword [ebp - 4], 0x11
mov edi, dword [ebp - 0x454]
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x40a4bb
mov eax, dword [eax]
push ecx
push eax
mov ecx, ebx
call fcn.00411790
lea edx, [ebp - 0x668]
mov ecx, eax
call fcn.0040fae0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.00408c30
push 1
mov ecx, ebx
call fcn.00411570
push ecx
mov ecx, edi
call fcn.0040a520
xor eax, eax
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.004683fe
mov esp, ebp
pop ebp
ret 0x10