Function at 0x1001c0f0
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087c9f
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100bb758]
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 esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x354], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x1001cbc8
cmp eax, 1
je 0x1001cbc8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001cbc8
cmp eax, dword [ebx + 0x2c]
jne 0x1001cbc8
push 3
push dword [esi + 0x70]
lea eax, [ebp - 0x348]
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], eax
call fcn.1001c020
push dword [ebp - 0x34c]
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0
call fcn.10005d80
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x348]
cmp eax, ecx
je 0x1001c1a5
push eax
call fcn.1006724e
add esp, 4
lea ecx, [ebp - 0x35c]
call fcn.1001b8c0
cmp dword [esi + 4], 2
mov ecx, str.failed.
mov eax, str.success
mov byte [ebp - 4], 3
cmovne eax, ecx
push eax
push dword [ebp - 0x360]
lea eax, [ebp - 0x35c]
push str.download_url__s__s
push eax
call fcn.10006340
add esp, 0x10
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x35c]
movzx eax, al
sub eax, 1
jne 0x1001c2d6
push 4
push str.FILE
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000afb0
mov byte [ebp - 4], 5
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xdc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100083a0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 6
mov ecx, 0x1008e984
cmovne ecx, esi
push ecx
push edi
call fcn.10007c20
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x230]
call fcn.10005f50
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10005f50
mov ebx, dword [ebp - 0x364]
push dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001cb76
mov eax, dword [ebp - 0x354]
cmp dword [eax + 4], 3
je 0x1001cb76
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x358]
call fcn.10005d80
mov eax, dword [ebx + 0x30]
mov byte [ebp - 4], 7
cmp dword [eax + 0xc8], 0
je 0x1001c458
push 0x10090bc0
push dword [ebp - 0x358]
call fcn.1006ebf7
add esp, 8
test eax, eax
jne 0x1001c458
push edi
lea ecx, [ebp - 0x350]
call fcn.1001b890
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 8
cmp dword [eax - 4], 1
jle 0x1001c36d
push dword [eax - 0xc]
lea ecx, [ebp - 0x350]
call fcn.100062c0
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x350]
call fcn.1001cfe0
push edi
lea ecx, [ebp - 0x354]
call fcn.1001b890
push str..exe
push 0x104
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 9
call fcn.1001bee0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x354]
call fcn.1001cfe0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100609f0
mov edi, dword [ebp - 0x350]
add esp, 0xc
push dword [ebp - 0x354]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x350]
push eax
lea edi, [ebx + 0x3c]
push edi
call fcn.1000a740
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c420
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10006650
lea ecx, [ebp - 0x354]
call fcn.10005f30
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 7
call fcn.10005f30
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x350]
add eax, 0x10
push eax
call fcn.1001b890
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
jne 0x1001c54a
push dword [edi]
call fcn.100400f0
add esp, 4
test eax, eax
jne 0x1001c664
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001c649
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0xc
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xfe
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov edi, eax
mov byte [ebp - 4], 0xd
jmp 0x1001c612
push eax
push dword [edi]
call fcn.1003fe20
add esp, 8
test eax, eax
jne 0x1001c664
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001c649
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0xf
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0x107
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov edi, eax
mov byte [ebp - 4], 0x10
push str.check_sign_failed.
push edi
call fcn.10007c20
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x248]
call fcn.10005f50
lea ecx, [ebp - 0x230]
call fcn.10005f50
lea ecx, [ebp - 0x350]
call fcn.10005f30
lea ecx, [ebp - 0x358]
call fcn.10005f30
jmp 0x1001cb88
lea ecx, [ebp - 0x354]
call fcn.1001b8c0
mov eax, dword [ebx + 0x4c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1001c691
lea ecx, [eax + 0x20]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x1001c691
push ecx
lea ecx, [ebp - 0x354]
call fcn.100068a0
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x3a4]
push eax
movlpd qword [ebp - 0x39c], xmm0
mov dword [ebp - 0x38c], 0
movlpd qword [ebp - 0x384], xmm0
movlpd qword [ebp - 0x37c], xmm0
movlpd qword [ebp - 0x374], xmm0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x3a4], 0x3c
mov dword [ebp - 0x388], 1
mov dword [ebp - 0x3a0], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x364], eax
call fcn.10054f50
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1001c7f9
push 4
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x230], cl
lea ecx, [ebp - 0x230]
push str.FILE
mov dword [ebp - 0x21c], 0xf
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0x13
call fcn.10054f50
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x11b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov esi, eax
push str.run_exe
push esi
mov byte [ebp - 4], 0x14
call fcn.10007c20
add esp, 8
mov ecx, esi
push dword [ebp - 0x364]
call fcn.1000efa0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x248]
call fcn.10005f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10005f50
cmp dword [ebp - 0x364], 0
je 0x1001ca41
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1001c82e
push dword [eax + 8]
mov ecx, dword [ebx + 0x30]
call fcn.10019100
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x30]
add eax, 0xc
push eax
call fcn.10011d00
mov ecx, eax
call fcn.10028560
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x36c]
push 0xffffffffffffffff
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x368]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x36c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
test esi, esi
jne 0x1001c95e
sub eax, 1
jne 0x1001c947
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0x16
call fcn.10054f50
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x126
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov esi, eax
push str.stop_event__quit
push esi
mov byte [ebp - 4], 0x17
call fcn.10007c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x248]
call fcn.10005f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10005f50
push 0
push 0
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001cb32
sub eax, 1
jne 0x1001ca2a
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0x19
call fcn.10054f50
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x12b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov esi, eax
push str.process_quit__start_next
push esi
mov byte [ebp - 4], 0x1a
call fcn.10007c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x248]
call fcn.10005f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10005f50
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001cb32
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001cb32
push 4
push str.FILE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000afb0
mov byte [ebp - 4], 0x1c
call fcn.10054f50
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x132
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100083a0
mov esi, eax
push str.run_process_failed__start_next
push esi
mov byte [ebp - 4], 0x1d
call fcn.10007c20
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009260
lea ecx, [ebp - 0x248]
call fcn.10005f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10005f50
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
call fcn.1001bc20
lea ecx, [ebp - 0x354]
call fcn.10005f30
lea ecx, [ebp - 0x350]
call fcn.10005f30
lea ecx, [ebp - 0x358]
call fcn.10005f30
lea ecx, [ebp - 0x35c]
call fcn.10005f30
lea ecx, [ebp - 0x360]
call fcn.10005f30
jmp 0x1001cbc8
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cba6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001cbc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100561dc
mov esp, ebp
pop ebp
ret 0xc