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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522b54
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x574464]
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 0x40f307
mov eax, dword [edi]
cmp eax, 0x138a
jne 0x40ef7c
movsd xmm0, qword [edi + 8]
mulsd xmm0, qword [0x560d48]
mov ecx, dword [ebx + 0x6ac]
cvttsd2si eax, xmm0
push eax
call fcn.0044f830
jmp 0x40f2ff
cmp eax, 0x138b
jne 0x40f1d4
sub esp, 8
lea ecx, [ebp - 0x4cc]
call fcn.0040dcf0
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.0040db40
push 0x55de00
xorps xmm1, xmm1
mov ecx, 0x55e2e0
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.004e0c62
sub esp, 8
mov esi, esp
mov dword [ebp - 0x454], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040dcc0
mov dword [esi], eax
call fcn.00406b50
add esp, 8
call fcn.004409a0
mov ecx, eax
call fcn.0043ce40
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.004100d0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40f062
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 0x40f0ad
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40f09e
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.0044f7e0
mov ecx, dword [ebx + 0x6ac]
test ecx, ecx
je 0x40f0ad
call fcn.0044aa10
push 0x3e8
push 1
lea ecx, [ebx + 0x2c]
call fcn.004409d0
push eax
lea ecx, [ebx + 0x2c]
call fcn.00444f70
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 0x40f113
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 0x40f179
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.0040ff50
push ecx
push str.SoftwareHudunSoftCADConverter
push ecx
mov edx, 0x208
lea ecx, [ebp - 0x420]
call fcn.0040e570
lea edx, [ebp - 0x420]
mov ecx, reloc.WS2_32.dll_accept
call fcn.0043b7c0
lea ecx, [ebp - 0x438]
call fcn.00405eb0
lea ecx, [ebp - 0x450]
call fcn.00405eb0
jmp 0x40f2ff
cmp eax, 0x138c
je 0x40f1e6
cmp eax, 0x3e9
jne 0x40f2ff
push edi
call fcn.0040f380
push 0xffffffffffffffff
push 0x55de00
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x660], 4
mov dword [ebp - 0x65c], 0x84
call fcn.0043cb60
push 0xffffffffffffffff
push str.MessageBox1Wnd.xml
lea ecx, [ebp - 0x5d4]
mov dword [ebp - 4], 0xc
call fcn.0043cb60
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.0040dc20
push eax
push 0
lea eax, [ebp - 0x46c]
mov ecx, edi
push eax
call fcn.0040dbe0
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x40f284
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x550]
call fcn.0043cb60
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 0x40f2cb
mov eax, dword [eax]
push ecx
push eax
mov ecx, ebx
call fcn.0043e460
lea edx, [ebp - 0x660]
mov ecx, eax
call fcn.0043c7b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0040daf0
push 1
mov ecx, ebx
call fcn.0043e240
push ecx
mov ecx, edi
call fcn.0040f330
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.004e072a
mov esp, ebp
pop ebp
ret 0x10