Function at 0x412ee0
Capabilities:
Check if file exists
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddffe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x28], 0
push edi
mov dword [ebp - 0x34], ebx
mov ecx, 0x51071b
mov dword [ebp - 4], 0
call fcn.004b781d
push 0x104
lea eax, [ebp - 0x174]
push 0
push eax
call fcn.004ba880
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
mov eax, dword [ebx + 4]
push 4
mov eax, dword [eax]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x70], 0
call fcn.004b7872
add esp, 0x10
mov dword [eax], 0
push 0
push 0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x17c]
push eax
push 0x413f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x413646
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov byte [ebp + 0xf], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, 0x5a
test eax, eax
jne 0x413104
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x49005a
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x50
sub ebx, eax
mov dword [ebp - 0x1c], 0
mov edi, ebx
mov dword [ebp - 0x18], 0
sar edi, 1
lea esi, [ecx - 0x5a]
mov dword [ebp - 0x14], 0
je 0x413019
cmp edi, 0x7fffffff
ja 0x413650
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403670
mov esi, eax
lea eax, [ebp - 0x30]
push ebx
push eax
push esi
lea ecx, [esi + edi*2]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
call fcn.004ba300
lea eax, [esi + edi*2]
add esp, 0xc
mov dword [ebp - 0x18], eax
push ecx
mov edi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x10], edi
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x413655
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004048a0
test al, al
jne 0x413078
test esi, esi
jne 0x413057
xor ecx, ecx
jmp 0x41306f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413060
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00406c70
push 0x82
push ecx
mov esi, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00404990
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.0040c110
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.0040c330
test bl, bl
jne 0x413104
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push 0xc
push eax
call fcn.00413970
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x4135b7
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4130f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41367d
push ecx
push edx
call fcn.004b780f
add esp, 8
jmp 0x4135b7
call fcn.004091d0
xor eax, eax
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x40], ax
lea ebx, [ebp - 0x3e]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x37005c
sub ebx, eax
mov dword [ebp - 0x4c], 0x61007a
mov edi, ebx
mov dword [ebp - 0x48], 0x65002e
sar edi, 1
mov esi, 0
mov dword [ebp - 0x44], 0x650078
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
je 0x41318e
cmp edi, 0x7fffffff
ja 0x41365f
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403670
mov esi, eax
lea eax, [ebp - 0x50]
push ebx
push eax
push esi
lea ecx, [esi + edi*2]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
call fcn.004ba300
lea eax, [esi + edi*2]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x34]
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
mov byte [ebp - 4], 6
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4131ad
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4131c3
call fcn.004058f0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x413664
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x4131dd
xor ecx, ecx
jmp 0x4131f1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4131e2
sub ecx, edx
sar ecx, 1
mov eax, dword [edi + 4]
push ecx
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404a70
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov edi, dword [ebp - 0x20]
add edi, 0xfffffff0
lea esi, [eax - 0x10]
cmp esi, edi
je 0x41325c
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x413250
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x413250
push esi
call fcn.00404990
add esp, 4
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x413248
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x20], eax
jmp 0x41325c
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00406c70
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413275
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040c330
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x49005a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x50
sub eax, ecx
mov dword [ebp - 0x1c], 0
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], ebx
sar esi, 1
mov edi, ebx
mov dword [ebp - 0x38], eax
je 0x4132eb
cmp esi, 0x7fffffff
ja 0x41366e
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403670
push dword [ebp - 0x38]
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0x1c], edi
lea ebx, [edi + esi*2]
mov dword [ebp - 0x14], ebx
call fcn.004ba300
lea eax, [edi + esi*2]
add esp, 0xc
mov dword [ebp - 0x18], eax
push ecx
mov esi, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x28], esi
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x413673
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push edi
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004048a0
test al, al
jne 0x413348
test edi, edi
jne 0x413329
xor ecx, ecx
jmp 0x41333f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413330
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00406c70
push 0x86
push ecx
mov esi, esp
mov byte [ebp - 4], 9
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
push eax
call fcn.00404990
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
call fcn.0040c110
add esp, 0xc
mov byte [ebp - 4], 1
test al, al
sete al
mov byte [ebp - 0x21], al
test edi, edi
je 0x4133b8
sub ebx, edi
sar ebx, 1
add ebx, ebx
cmp ebx, 0x1000
jb 0x4133ab
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x41367d
mov edi, ecx
push ebx
push edi
call fcn.004b780f
mov al, byte [ebp - 0x21]
add esp, 8
test al, al
je 0x413414
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413414
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push 0x11
push eax
call fcn.00413970
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x41340b
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413401
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41367d
push ecx
push edx
call fcn.004b780f
add esp, 8
mov byte [ebp + 0xf], 0
jmp 0x4135f0
lea esi, [ebp - 0x56]
mov dword [ebp - 0x28], 0
mov ebx, esi
lea eax, [ebp - 0x68]
sub ebx, eax
nop word [eax + eax]
movaps xmm0, xmmword [0x4e4cb0]
xor edi, edi
mov word [ebp - 0x58], 0x75
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x68], xmm0
test ebx, ebx
je 0x413492
cmp ebx, 0x7fffffff
ja 0x413682
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004029a0
mov edi, eax
lea eax, [ebp - 0x68]
sub esi, eax
mov dword [ebp - 0x1c], edi
push esi
push eax
lea ecx, [edi + ebx]
push edi
mov dword [ebp - 0x14], ecx
call fcn.004ba300
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
call fcn.004058f0
test eax, eax
je 0x413646
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.004048a0
test al, al
jne 0x41352e
test edi, edi
je 0x413526
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x413526
mov ecx, dword [ebp - 0x10]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4134fd
push esi
lea ecx, [ebp - 0x10]
call fcn.00406480
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x413687
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
jmp 0x41352e
lea ecx, [ebp - 0x10]
call fcn.00405260
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408110
mov edx, dword [ebp - 0x10]
add esp, 0x14
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413573
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040c2d0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4135b3
cmp eax, 0x103
je 0x4135af
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 2
jge 0x4135ac
lea esi, [ebp - 0x56]
jmp 0x413430
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4135b7
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x34]
push 0
push 0x32
push 0x466
mov eax, dword [eax + 4]
mov dword [ebp - 0x70], 1
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp - 0x20]
call esi
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413611
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x413630
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404870
call fcn.0040c390
push 0x80004005
call fcn.00404870
call fcn.0040c390
push 0x80004005
call fcn.00404870
call fcn.0040c390
push 0x80004005
call fcn.00404870
call fcn.004be73f
call fcn.0040c390
push 0x80070057
call fcn.00404870
int3