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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53397e
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, 0x570852
mov dword [ebp - 4], 0
call fcn.005040ed
push 0x104
lea eax, [ebp - 0x174]
push 0
push eax
call fcn.005073b0
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.00504142
add esp, 0x10
mov dword [eax], 0
push 0
push 0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x17c]
push eax
push 0x417d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004056c0
mov ecx, eax
test ecx, ecx
je 0x417506
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 0x416fc4
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 0x416ed9
cmp edi, 0x7fffffff
ja 0x417510
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.00506e30
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.004056c0
mov ecx, eax
test ecx, ecx
je 0x417515
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.00404ac0
test al, al
jne 0x416f38
test esi, esi
jne 0x416f17
xor ecx, ecx
jmp 0x416f2f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416f20
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00406790
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.00404bb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.0040b3a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.0040b9d0
test bl, bl
jne 0x416fc4
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push 0xc
push eax
call fcn.00417790
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x417477
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416fb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41753d
push ecx
push edx
call fcn.005040df
add esp, 8
jmp 0x417477
call fcn.004087d0
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 0x41704e
cmp edi, 0x7fffffff
ja 0x41751f
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.00506e30
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 0x41706d
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x417083
call fcn.004056c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x417524
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 0x41709d
xor ecx, ecx
jmp 0x4170b1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170a2
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.00404c90
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov edi, dword [ebp - 0x20]
add edi, 0xfffffff0
lea esi, [eax - 0x10]
cmp esi, edi
je 0x41711c
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x417110
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x417110
push esi
call fcn.00404bb0
add esp, 4
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x417108
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 0x41711c
push dword [eax - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00406790
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417135
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.0040b9d0
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 0x4171ab
cmp esi, 0x7fffffff
ja 0x41752e
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.00506e30
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.004056c0
mov ecx, eax
test ecx, ecx
je 0x417533
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.00404ac0
test al, al
jne 0x417208
test edi, edi
jne 0x4171e9
xor ecx, ecx
jmp 0x4171ff
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4171f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00406790
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.00404bb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
call fcn.0040b3a0
add esp, 0xc
mov byte [ebp - 4], 1
test al, al
sete al
mov byte [ebp - 0x21], al
test edi, edi
je 0x417278
sub ebx, edi
sar ebx, 1
add ebx, ebx
cmp ebx, 0x1000
jb 0x41726b
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x41753d
mov edi, ecx
push ebx
push edi
call fcn.005040df
mov al, byte [ebp - 0x21]
add esp, 8
test al, al
je 0x4172d4
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4172d4
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push 0x11
push eax
call fcn.00417790
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x4172cb
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4172c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41753d
push ecx
push edx
call fcn.005040df
add esp, 8
mov byte [ebp + 0xf], 0
jmp 0x4174b0
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 [0x539e60]
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 0x417352
cmp ebx, 0x7fffffff
ja 0x417542
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.00506e30
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
call fcn.004056c0
test eax, eax
je 0x417506
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.00404ac0
test al, al
jne 0x4173ee
test edi, edi
je 0x4173e6
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 0x4173e6
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 0x4173bd
push esi
lea ecx, [ebp - 0x10]
call fcn.00405fa0
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 0x417547
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
jmp 0x4173ee
lea ecx, [ebp - 0x10]
call fcn.00405030
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.004078e0
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 0x417433
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.0040b970
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x417473
cmp eax, 0x103
je 0x41746f
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 0x41746c
lea esi, [ebp - 0x56]
jmp 0x4172f0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x417477
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 0x4174d1
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 0x4174f0
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.00404a90
call fcn.0040ba30
push 0x80004005
call fcn.00404a90
call fcn.0040ba30
push 0x80004005
call fcn.00404a90
call fcn.0040ba30
push 0x80004005
call fcn.00404a90
call fcn.0050b3af
call fcn.0040ba30
push 0x80070057
call fcn.00404a90
int3