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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5520a9
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5b228c]
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, dword [ebp + 8]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 1
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40e412
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
movaps xmm0, xmmword [0x568060]
lea eax, [ebp - 0x10]
push dword [ebp - 0x80]
movups xmmword [ebp - 0x48], xmm0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x70], 1
movaps xmm0, xmmword [0x568070]
push eax
movups xmmword [ebp - 0x38], xmm0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], 0
movaps xmm0, xmmword [0x568080]
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.00403a00
mov byte [ebp - 4], 2
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x40e41c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
push dword [eax + 0x14]
push dword [eax + 0x40]
lea eax, [ebp - 0x50]
push str._s_s.ico
push eax
call fcn.0040f6a0
mov esi, dword [ebp - 0x50]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e1ba
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x60]
mov edi, eax
mov ebx, dword [ebp - 0x5c]
cmp edi, ebx
je 0x40e1f8
movzx esi, word [ebp + 0x14]
nop word [eax + eax]
mov eax, dword [edi + 4]
push 0
push eax
push eax
push 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi], eax
add edi, 8
cmp edi, ebx
jne 0x40e1d0
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
xor edi, edi
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x5c]
je 0x40e265
mov esi, eax
mov eax, dword [esi]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40e23f
cmp ebx, ecx
je 0x40e22c
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x68], ecx
jmp 0x40e23f
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00403560
mov ebx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
add esi, 8
cmp esi, dword [ebp - 0x5c]
jne 0x40e215
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x50]
cmp edi, ecx
je 0x40e265
sub ecx, edi
sar ecx, 2
push esi
push ecx
push edi
call fcn.00456140
add esp, 0xc
test eax, eax
jne 0x40e29d
mov byte [ebp - 4], 3
test edi, edi
je 0x40e35d
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x40e353
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e426
jmp 0x40e353
mov eax, dword [ebp - 0x54]
lea edx, [esi - 0x10]
mov dword [ebp - 0x7c], edx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x74], ecx
cmp edx, ecx
je 0x40e303
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c], eax
jl 0x40e2f7
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x40e2f7
push edx
call fcn.004098c0
mov edx, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x78], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e2ed
mov esi, dword [ebp - 0x74]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x54]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40e303
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x54]
push esi
call fcn.004157e0
mov byte [ebp - 4], 3
test edi, edi
je 0x40e338
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x40e32e
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e42b
push ebx
push edi
call fcn.004610ef
add esp, 8
mov edx, dword [ebp - 0x7c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e37b
mov ecx, dword [edx]
push edx
jmp 0x40e376
push ebx
push edi
call fcn.004610ef
add esp, 8
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e37b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov esi, edx
mov ebx, dword [ebp - 0x5c]
cmp esi, ebx
je 0x40e39e
mov eax, dword [esi]
test eax, eax
je 0x40e394
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
add esi, 8
cmp esi, ebx
jne 0x40e387
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x40e3ce
mov ecx, dword [ebp - 0x58]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x40e3c4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e430
push ecx
push edx
call fcn.004610ef
add esp, 8
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40e3f3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40e3f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40e3f3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebp - 0x54]
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.00460f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
call fcn.0050f6a9
call fcn.0050f6a9
call fcn.0050f6a9
int3