Function at 0x40e870
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4507e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x44], eax
mov dword [esi + 0x94], 3
mov eax, dword [0x469220]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00413270
add esp, 8
mov eax, dword [esi + 0x248]
mov ecx, dword [esi + 0x244]
mov ebx, 0x10
cmp eax, ebx
mov dword [esp + 0x50], 0
jb 0x40e8d7
mov eax, dword [esi + 0x234]
jmp 0x40e8dd
lea eax, [esi + 0x234]
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.00406c50
test eax, eax
jl 0x40e90d
cmp dword [esp + 0x40], ebx
jb 0x40e906
mov eax, dword [esp + 0x2c]
push eax
call fcn.00446915
add esp, 4
xor eax, eax
jmp 0x40eea3
push ebp
push edi
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x58], 1
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x33
mov byte [esp + 0x5c], 2
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40e958
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00402510
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x5400
push ecx
call edi
cmp dword [esi + 0x19c], ebx
jb 0x40e98b
mov ecx, dword [esi + 0x188]
jmp 0x40e991
lea ecx, [esi + 0x188]
cmp dword [esi + 0x180], ebx
jb 0x40e9a1
mov eax, dword [esi + 0x16c]
jmp 0x40e9a7
lea eax, [esi + 0x16c]
push 0
push 1
push 1
push 3
push ecx
push eax
mov ecx, esi
call fcn.0040cfb0
test al, al
jne 0x40ea19
push 0x3d
call fcn.004069d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e9d5
push ebx
call fcn.0043124b
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402510
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x1c]
push 0
push ebx
push 0x5400
push edx
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
jmp 0x40ed67
push 0x3e
call fcn.004069d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ea32
push ebx
call fcn.0043124b
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402510
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
push 0
push ebp
push 0x5400
push ecx
call edi
cmp dword [esi + 0x19c], 0x10
jb 0x40ea60
mov eax, dword [esi + 0x188]
jmp 0x40ea66
lea eax, [esi + 0x188]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00418d80
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x40eab7
push 0x45698c
push 0xf
call fcn.004069d0
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00404b10
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
push 0
push ebx
push 0x5405
push ecx
call edi
lea eax, [ebp - 0x10]
jmp 0x40ed48
push 0x11000
push str.launch.exe
push eax
call fcn.004181e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40eb58
push 0x453e50
push 0x456964
push 0x13
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404b10
mov edx, dword [esi + 0x1c]
add esp, 0x10
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push 0x5405
push edx
call edi
lea eax, [ebp - 0x10]
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
call fcn.00419910
mov eax, 1
jmp 0x40eea1
mov ebp, dword [esp + 0x18]
push 8
lea eax, [esp + 0x24]
push eax
push str.launch.exe
push ebp
call fcn.004185d0
add esp, 0x10
test eax, eax
je 0x40ebc9
push ebx
call fcn.00417e50
push ebp
call fcn.00418b30
add esp, 8
push str.Access_error:_launch.exe
lea ecx, [esp + 0x14]
call fcn.004028f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
push 0
push ecx
push 0x5405
push edx
call edi
lea ecx, [esp + 0x14]
call fcn.00401f30
lea ecx, [esp + 0x10]
call fcn.00401f30
lea ecx, [esp + 0x30]
call fcn.00419910
mov eax, 1
jmp 0x40eea1
mov eax, dword [esp + 0x28]
push eax
call fcn.0044691a
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40ec19
push ebx
call fcn.00417e50
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418b30
add esp, 8
push str.Access_error:_launch.exe
lea ecx, [esp + 0x14]
call fcn.004028f0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push ebp
push edx
push 0x5405
push eax
call edi
push ebp
call fcn.00446915
add esp, 4
jmp 0x40eba4
mov ecx, dword [esp + 0x28]
push ecx
push ebp
push ebx
call fcn.00417f90
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp eax, ecx
push ebx
je 0x40ec71
call fcn.00417e50
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418b30
add esp, 8
push str.Access_error:_launch.exe
lea ecx, [esp + 0x14]
call fcn.004028f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x5405
push ecx
call edi
push ebp
call fcn.00446915
add esp, 4
jmp 0x40eba4
call fcn.00417e50
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418b30
mov eax, dword [0x469224]
add esp, 8
push eax
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ecef
mov ecx, dword [0x469224]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x469224]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ecef
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
inc ebx
cmp eax, 0xa
je 0x40eda1
mov ecx, dword [0x469224]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x469224]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40ecb8
push 0x45385c
push 0x453a70
call fcn.00430c3e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40edf6
push str.Access_error:_launch.exe
call fcn.0043124b
add esp, 4
push eax
push str.Access_error:_launch.exe
lea ecx, [esp + 0x18]
call fcn.00402510
mov ecx, dword [esi + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push 0x5405
push ecx
call edi
push ebp
call fcn.00446915
mov eax, dword [esp + 0x18]
add esp, 4
add eax, 0xfffffff0
mov byte [esp + 0x58], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ed64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x48], 0x10
jb 0x40ed97
mov eax, dword [esp + 0x34]
push eax
call fcn.00446915
add esp, 4
mov eax, 1
jmp 0x40eea1
push str.Access_error:_launch.exe
call fcn.0043124b
add esp, 4
push eax
push str.Access_error:_launch.exe
lea ecx, [esp + 0x18]
call fcn.00402510
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0
push ebx
push 0x5405
push eax
call edi
push ebp
call fcn.00446915
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ed5a
mov ecx, dword [esp + 0x28]
push ebx
push ecx
push 1
push ebp
call fcn.00430b96
push ebx
call fcn.00430a3e
push ebp
call fcn.00446915
push 0x35
call fcn.004069d0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x40ee29
push ebx
call fcn.0043124b
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402510
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x1c]
push 0
push ebx
push 0x5400
push edx
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x48], 0x10
jb 0x40ee9c
mov eax, dword [esp + 0x34]
push eax
call fcn.00446915
add esp, 4
mov eax, 2
pop edi
pop ebp
mov ecx, dword [esp + 0x48]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
pop ebx
call fcn.00430cd9
add esp, 0x4c
ret