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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566902
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x5ca3a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a4], ecx
mov word [ebp - 0x2ac], 0
push 0x206
push 0
lea eax, [ebp - 0x2aa]
push eax
call fcn.0047d440
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x2ac]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x2ac]
push edx
call fcn.00405ae0
add esp, 8
mov word [eax + 2], 0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00401610
mov dword [ebp - 4], 0
push 0x56f30c
lea ecx, [ebp - 0x3d8]
call fcn.004037c0
push 0x48
call fcn.0045d430
add esp, 4
mov dword [ebp - 0x3e0], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3e0], 0
je 0x40eb04
mov ecx, dword [ebp - 0x3e0]
call fcn.0045a060
mov dword [ebp - 0x4a8], eax
jmp 0x40eb0e
mov dword [ebp - 0x4a8], 0
mov ecx, dword [ebp - 0x4a8]
mov dword [ebp - 0x3dc], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3dc]
mov dword [ebp - 0xa0], edx
push 0
lea eax, [ebp - 0x3d8]
push eax
lea ecx, [ebp - 0x3fc]
push ecx
call fcn.0041a330
add esp, 8
mov dword [ebp - 0x4ac], eax
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4b0]
call fcn.004017e0
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.0045aee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3fc]
call fcn.004015d0
mov ecx, dword [ebp - 0xa0]
call fcn.0040f660
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x3a0], 0
jne 0x40ebaf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.00401650
jmp 0x40f06b
push 0x56f324
lea ecx, [ebp - 0x39c]
call fcn.0045ab40
mov byte [ebp - 4], 3
push 0x56f330
lea ecx, [ebp - 0x3bc]
call fcn.00401610
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00414f80
add esp, 8
mov dword [ebp - 0x4b4], eax
mov edx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
call fcn.004017e0
push eax
push 0x56f338
lea ecx, [ebp - 0x39c]
call fcn.0045ac70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x418]
call fcn.004015d0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401610
mov byte [ebp - 4], 6
push 0x56f340
lea ecx, [ebp - 0x2c]
call fcn.004037c0
lea ecx, [ebp - 0x39c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x41c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00403610
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040f090
lea eax, [ebp - 0x39c]
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.004595e0
push 0x56f350
lea ecx, [ebp - 0x2fc]
call fcn.0045ab40
mov byte [ebp - 4], 7
push 0x56f35c
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00414f80
add esp, 8
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4c4]
call fcn.004017e0
push eax
push 0x56f364
lea ecx, [ebp - 0x2fc]
call fcn.0045ac70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x438]
call fcn.004015d0
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x56f36c
lea ecx, [ebp - 0x2c]
call fcn.004037c0
lea edx, [ebp - 0x2fc]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x43c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00403610
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040f090
lea ecx, [ebp - 0x2fc]
push ecx
mov ecx, dword [ebp - 0x3a0]
call fcn.004595e0
push 0x56f37c
lea ecx, [ebp - 0x9c]
call fcn.0045ab40
mov byte [ebp - 4], 9
push 0x56f388
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea edx, [ebp - 0x3bc]
push edx
lea eax, [ebp - 0x458]
push eax
call fcn.00414f80
add esp, 8
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4d0]
call fcn.004017e0
push eax
push 0x56f390
lea ecx, [ebp - 0x9c]
call fcn.0045ac70
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x458]
call fcn.004015d0
lea edx, [ebp - 0x2ac]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x56f398
lea ecx, [ebp - 0x2c]
call fcn.004037c0
lea eax, [ebp - 0x9c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x45c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00403610
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040f090
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.004595e0
push str.SymbolList
lea ecx, [ebp - 0x34c]
call fcn.0045ab40
mov byte [ebp - 4], 0xb
push 0x56f3b4
lea ecx, [ebp - 0x3bc]
call fcn.00403660
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x478]
push edx
call fcn.00414f80
add esp, 8
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4dc]
call fcn.004017e0
push eax
push 0x56f3bc
lea ecx, [ebp - 0x34c]
call fcn.0045ac70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x478]
call fcn.004015d0
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403660
push 0x56f3c4
lea ecx, [ebp - 0x2c]
call fcn.004037c0
lea edx, [ebp - 0x34c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x47c], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00403610
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4a4]
call fcn.0040f090
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, dword [ebp - 0x3a0]
call fcn.004595e0
lea edx, [ebp - 0x2ac]
push edx
lea ecx, [ebp - 0x48]
call fcn.00401610
mov byte [ebp - 4], 0xd
push str.Targe.xml
lea ecx, [ebp - 0x48]
call fcn.004037c0
lea ecx, [ebp - 0x48]
call fcn.00401800
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ef4d
lea ecx, [ebp - 0x48]
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.0041a330
add esp, 8
mov dword [ebp - 0x4e4], eax
mov edx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], edx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x4e8]
call fcn.004017e0
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.0045a310
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x498]
call fcn.004015d0
cmp dword [ebp - 0xa0], 0
je 0x40eff6
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], ecx
cmp dword [ebp - 0x49c], 0
je 0x40efe2
push 1
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x49c]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x4ec], eax
jmp 0x40efec
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.00401650
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34c]
call fcn.0045ac00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
call fcn.0045ac00
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2fc]
call fcn.0045ac00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00401650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3bc]
call fcn.00401650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x39c]
call fcn.0045ac00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call fcn.00401650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047da50
mov esp, ebp
pop ebp
ret