Function at 0x40a490
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x431618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 4
mov ebx, ecx
push 0x4276a4
push 0x427b00
mov dword [ebp - 0x454], ebx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40ab6d
mov eax, dword [0x431014]
mov ecx, ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 0x460], eax
mov esi, eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x458], edi
push eax
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x44c], 0
call fcn.004096d0
or ebx, 0xffffffff
test eax, eax
je 0x40a552
push 0x427bd4
push dword [ebp - 0x45c]
lea eax, [ebp - 0x450]
push 0x427bfc
push str._s_s_s
push eax
call fcn.00409150
mov eax, dword [ebp - 0x454]
add esp, 0x14
mov esi, dword [ebp - 0x450]
push 4
push 0x4276a4
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40a5b8
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x448]
push 1
push 0x427c44
push dword [eax + 4]
call fcn.004082e0
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x448]
push dword [eax + 4]
call fcn.00409050
cmp eax, 1
jne 0x40a5a2
lea eax, [ebp - 0x216]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00408520
mov dword [ebp - 0x44c], 1
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x44c], 0
je 0x40aad9
push 1
push str.taskkill.exe__f__im_StartIsBackCfg.exe
call fcn.00411100
mov eax, dword [0x431014]
add esp, 8
mov dword [ebp - 0x44c], eax
push 0x427cc8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x45c]
lea ecx, [ebp - 0x44c]
push 0x427cc8
push eax
push esi
push dword [esi - 8]
call fcn.00408d80
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00408470
mov eax, dword [ebp - 0x44c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40a632
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a632
push ecx
call fcn.00414ef4
add esp, 4
mov edi, dword [ebp - 0x458]
push edi
call fcn.0040f6a0
add esp, 4
mov dword [ebp - 0x44c], eax
test eax, eax
lea eax, [ebp - 0x450]
push edi
jne 0x40a668
push 0x427cf0
push eax
call fcn.00409150
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
jmp 0x40a6c5
push 0x427d04
push eax
call fcn.00409150
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffffffff
jne 0x40a696
push 0x427d18
call edi
push 0x427d18
jmp 0x40a6b9
cmp dword [ebp - 0x44c], 0xfffffffe
jne 0x40a6ad
push 0x427d28
call edi
push 0x427d28
jmp 0x40a6b9
push 0x427d38
call edi
push 0x427d38
push eax
lea ecx, [ebp - 0x450]
call fcn.00408e20
push dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
call fcn.00408730
mov eax, dword [0x431014]
push 0x427d54
mov dword [ebp - 0x44c], eax
call edi
push 0x427d54
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x44c]
call fcn.00408d80
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00408470
mov eax, dword [ebp - 0x44c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40a737
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a737
push ecx
call fcn.00414ef4
add esp, 4
mov edi, dword [ebp - 0x458]
push edi
call fcn.0040f6a0
add esp, 4
mov dword [ebp - 0x44c], eax
test eax, eax
lea eax, [ebp - 0x450]
push edi
jne 0x40a767
push 0x427cf0
push eax
call fcn.00409150
add esp, 0xc
jmp 0x40a7ca
push 0x427d04
push eax
call fcn.00409150
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a793
push 0x427d18
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d18
jmp 0x40a7be
cmp dword [ebp - 0x44c], 0xfffffffe
jne 0x40a7ae
push 0x427d28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d28
jmp 0x40a7be
push 0x427d38
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d38
push eax
lea ecx, [ebp - 0x450]
call fcn.00408e20
push dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
call fcn.00408730
mov eax, dword [0x431014]
push 0x427d7c
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d7c
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x44c]
call fcn.00408d80
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00408470
mov eax, dword [ebp - 0x44c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40a840
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a840
push ecx
call fcn.00414ef4
add esp, 4
mov edi, dword [ebp - 0x458]
push edi
call fcn.0040ef40
add esp, 4
mov esi, eax
lea eax, [ebp - 0x450]
push edi
test esi, esi
jne 0x40a86c
push 0x427da4
push eax
call fcn.00409150
add esp, 0xc
jmp 0x40a8cb
push 0x427db8
push eax
call fcn.00409150
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a898
push 0x427d18
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d18
jmp 0x40a8bf
cmp esi, 0xfffffffe
jne 0x40a8af
push 0x427d28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427d28
jmp 0x40a8bf
push 0x427dcc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427dcc
push eax
lea ecx, [ebp - 0x450]
call fcn.00408e20
mov esi, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
push esi
call fcn.00408730
mov ecx, dword [ebp - 0x454]
call fcn.0040c020
mov eax, dword [ebp - 0x454]
push 4
push 0x4276a4
push 0x427de0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40aad9
mov eax, dword [0x431014]
push 0x427dfc
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x45c]
lea ecx, [ebp - 0x44c]
push 0x427dfc
push eax
push esi
push dword [esi - 8]
call fcn.00408d80
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov edx, 0x427e34
mov ecx, 0x427e2c
lea eax, [ebp - 0x450]
cmove ecx, edx
push ecx
push 0x427e3c
push str._s_s
push eax
call fcn.00409150
mov eax, dword [ebp - 0x44c]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40a99a
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a99a
push ecx
call fcn.00414ef4
add esp, 4
push dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
call fcn.00408730
mov eax, dword [0x431014]
push 0x427e78
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427e78
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x44c]
call fcn.00408d80
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ecx, 0x427e2c
mov eax, 0x427e34
cmove ecx, eax
lea eax, [ebp - 0x450]
push ecx
push 0x427ea8
push str._s_s
push eax
call fcn.00409150
mov eax, dword [ebp - 0x44c]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40aa33
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40aa33
push ecx
call fcn.00414ef4
add esp, 4
push dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
call fcn.00408730
mov eax, dword [0x431014]
push 0x427ed8
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x427ed8
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x44c]
call fcn.00408d80
mov esi, dword [ebp - 0x44c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ecx, 0x427e34
mov eax, 0x427e2c
cmove eax, ecx
push eax
push 0x427f08
lea eax, [ebp - 0x450]
push str._s_s
push eax
call fcn.00409150
lea eax, [esi - 0xc]
add esp, 0x10
cmp eax, dword [0x431010]
je 0x40aac7
add esi, 0xfffffff4
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40aac7
push esi
call fcn.00414ef4
add esp, 4
mov esi, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x454]
push esi
call fcn.00408730
lea eax, [esi - 0xc]
cmp eax, dword [0x431010]
je 0x40aafb
add esi, 0xfffffff4
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40aafb
push esi
call fcn.00414ef4
add esp, 4
lea eax, [edi - 0xc]
cmp eax, dword [0x431010]
je 0x40ab1d
add edi, 0xfffffff4
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40ab1d
push edi
call fcn.00414ef4
add esp, 4
mov eax, dword [ebp - 0x460]
pop edi
pop esi
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40ab47
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ab47
push ecx
call fcn.00414ef4
add esp, 4
mov eax, dword [ebp - 0x45c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x431010]
je 0x40ab6d
add eax, 0xfffffff4
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40ab6d
push eax
call fcn.00414ef4
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00414e7e
mov esp, ebp
pop ebp
ret 0x10