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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523574
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x575464]
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 0x40fc07
mov eax, dword [edi]
cmp eax, 0x138a
jne 0x40f87c
movsd xmm0, qword [edi + 8]
mulsd xmm0, qword [0x561bf0]
mov ecx, dword [ebx + 0x6ac]
cvttsd2si eax, xmm0
push eax
call fcn.00450150
jmp 0x40fbff
cmp eax, 0x138b
jne 0x40fad4
sub esp, 8
lea ecx, [ebp - 0x4cc]
call fcn.0040e5f0
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x49c]
mov ecx, esp
lea edx, [ebp - 0x4cc]
push eax
push edx
call fcn.0040e440
push 0x55ed10
xorps xmm1, xmm1
mov ecx, 0x55f1e4
call fcn.00406de0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4cc]
push fcn.004087d0
push 1
push 0x30
push eax
call fcn.004e131a
sub esp, 8
mov esi, esp
mov dword [ebp - 0x454], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040e5c0
mov dword [esi], eax
call fcn.00406b50
add esp, 8
call fcn.004412c0
mov ecx, eax
call fcn.0043de50
push eax
lea ecx, [ebp - 0x450]
call fcn.00405d80
push str.resmainWndinstallPrg3.png
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 1
call fcn.00405d80
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x46c]
call fcn.004097d0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40f962
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x46c]
mov esi, eax
call fcn.00405eb0
test esi, esi
je 0x40f9ad
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40f99e
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00450100
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40f9ad
call fcn.0044b320
push 0x3e8
push 1
lea ecx, [ebx + 0x2c]
call fcn.004412f0
push eax
lea ecx, [ebx + 0x2c]
call fcn.00445890
xor ecx, ecx
mov dword [ebp - 0x458], 7
push 0xffffffffffffffff
push ecx
lea eax, [ebx + 0x6b8]
mov word [ebp - 0x46c], cx
push eax
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x45c], 0
call fcn.004058d0
push str.inst.ep
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 3
call fcn.004057c0
cmp dword [eax + 0x14], 8
jb 0x40fa13
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 2
call fcn.00405eb0
xor eax, eax
mov dword [ebp - 0x458], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x46c], ax
lea ecx, [ebp - 0x46c]
lea eax, [ebx + 0x6b8]
mov dword [ebp - 0x45c], 0
push eax
call fcn.004058d0
push str.unins.ep
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 4
call fcn.004057c0
cmp dword [eax + 0x14], 8
jb 0x40fa79
mov eax, dword [eax]
push eax
call esi
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 2
call fcn.00405eb0
mov ecx, ebx
call fcn.004108f0
push ecx
push str.SoftwareHudunSoftSwift_AI_Writing
push ecx
mov edx, 0x208
lea ecx, [ebp - 0x420]
call fcn.0040ee70
lea edx, [ebp - 0x420]
mov ecx, reloc.WS2_32.dll_accept
call fcn.0043c0e0
lea ecx, [ebp - 0x438]
call fcn.00405eb0
lea ecx, [ebp - 0x450]
call fcn.00405eb0
jmp 0x40fbff
cmp eax, 0x138c
je 0x40fae6
cmp eax, 0x3e9
jne 0x40fbff
push edi
call fcn.0040fc80
push 0xffffffffffffffff
push 0x55ed10
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x660], 4
mov dword [ebp - 0x65c], 0x84
call fcn.0043d490
push 0xffffffffffffffff
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x5d4]
mov dword [ebp - 4], 0xc
call fcn.0043d490
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xd
call fcn.00405d80
mov esi, eax
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 0xe
call fcn.00405d80
mov edi, eax
push 1
sub esp, 8
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.0040e520
push eax
push 0
lea eax, [ebp - 0x46c]
mov ecx, edi
push eax
call fcn.0040e4e0
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x40fb84
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x550]
call fcn.0043d490
lea ecx, [ebp - 0x46c]
call fcn.00405eb0
lea ecx, [ebp - 0x484]
call fcn.00405eb0
lea ecx, [ebp - 0x49c]
call fcn.00405eb0
mov edi, dword [ebp - 0x454]
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x40fbcb
mov eax, dword [eax]
push ecx
push eax
mov ecx, ebx
call fcn.004584e0
lea edx, [ebp - 0x660]
mov ecx, eax
call fcn.0043d0e0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0040e3f0
push 1
mov ecx, ebx
call fcn.0043eb60
push ecx
mov ecx, edi
call fcn.0040fc30
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.004e1010
mov esp, ebp
pop ebp
ret 0x10