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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a728f
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100d5688]
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 0x1001e848
cmp eax, 1
je 0x1001e848
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001e848
cmp eax, dword [ebx + 0x2c]
jne 0x1001e848
push 3
push dword [esi + 0x70]
lea eax, [ebp - 0x348]
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], eax
call fcn.1001dca0
push dword [ebp - 0x34c]
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0
call fcn.10007320
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x348]
cmp eax, ecx
je 0x1001de25
push eax
call fcn.10085f8e
add esp, 4
lea ecx, [ebp - 0x35c]
call fcn.1001d570
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.100078e0
add esp, 0x10
call fcn.1005dde0
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 0x1001df56
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 5
call fcn.1005dde0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xdc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10009a70
mov edi, eax
test esi, esi
mov byte [ebp - 4], 6
mov ecx, 0x100ae9e4
cmovne ecx, esi
push ecx
push edi
call fcn.100092f0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x230]
call fcn.100074f0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.100074f0
mov ebx, dword [ebp - 0x364]
push dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001e7f6
mov eax, dword [ebp - 0x354]
cmp dword [eax + 4], 3
je 0x1001e7f6
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x358]
call fcn.10007320
mov eax, dword [ebx + 0x30]
mov byte [ebp - 4], 7
cmp dword [eax + 0xc8], 0
je 0x1001e0d8
push 0x100b0d10
push dword [ebp - 0x358]
call fcn.1008d937
add esp, 8
test eax, eax
jne 0x1001e0d8
push edi
lea ecx, [ebp - 0x350]
call fcn.1001d540
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 8
cmp dword [eax - 4], 1
jle 0x1001dfed
push dword [eax - 0xc]
lea ecx, [ebp - 0x350]
call fcn.10007860
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x350]
call fcn.1001ec60
push edi
lea ecx, [ebp - 0x354]
call fcn.1001d540
push str..exe
push 0x104
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 9
call fcn.1001db90
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x354]
call fcn.1001ec60
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1007f220
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.1000be10
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 0x1001e0a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10007bf0
lea ecx, [ebp - 0x354]
call fcn.100074d0
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 7
call fcn.100074d0
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x350]
add eax, 0x10
push eax
call fcn.1001d540
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
jne 0x1001e1ca
push dword [edi]
call fcn.10044de0
add esp, 4
test eax, eax
jne 0x1001e2e4
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.1005dde0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e2c9
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0xc
call fcn.1005dde0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xfe
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov edi, eax
mov byte [ebp - 4], 0xd
jmp 0x1001e292
push eax
push dword [edi]
call fcn.10044b10
add esp, 8
test eax, eax
jne 0x1001e2e4
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.1005dde0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e2c9
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0xf
call fcn.1005dde0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0x107
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov edi, eax
mov byte [ebp - 4], 0x10
push str.check_sign_failed.
push edi
call fcn.100092f0
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x248]
call fcn.100074f0
lea ecx, [ebp - 0x230]
call fcn.100074f0
lea ecx, [ebp - 0x350]
call fcn.100074d0
lea ecx, [ebp - 0x358]
call fcn.100074d0
jmp 0x1001e808
lea ecx, [ebp - 0x354]
call fcn.1001d570
mov eax, dword [ebx + 0x4c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x1001e311
lea ecx, [eax + 0x20]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x1001e311
push ecx
lea ecx, [ebp - 0x354]
call fcn.10007e40
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.1005dde0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1001e479
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0x13
call fcn.1005dde0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x11b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov esi, eax
push str.run_exe
push esi
mov byte [ebp - 4], 0x14
call fcn.100092f0
add esp, 8
mov ecx, esi
push dword [ebp - 0x364]
call fcn.10010b10
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x248]
call fcn.100074f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.100074f0
cmp dword [ebp - 0x364], 0
je 0x1001e6c1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1001e4ae
push dword [eax + 8]
mov ecx, dword [ebx + 0x30]
call fcn.1001ad50
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x30]
add eax, 0xc
push eax
call fcn.10013790
mov ecx, eax
call fcn.1002ac40
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.1005dde0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
test esi, esi
jne 0x1001e5de
sub eax, 1
jne 0x1001e5c7
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0x16
call fcn.1005dde0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x126
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov esi, eax
push str.stop_event__quit
push esi
mov byte [ebp - 4], 0x17
call fcn.100092f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x248]
call fcn.100074f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.100074f0
push 0
push 0
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001e7b2
sub eax, 1
jne 0x1001e6aa
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0x19
call fcn.1005dde0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x12b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov esi, eax
push str.process_quit__start_next
push esi
mov byte [ebp - 4], 0x1a
call fcn.100092f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x248]
call fcn.100074f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.100074f0
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001e7b2
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.1005dde0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001e7b2
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 0x1c
call fcn.1005dde0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x132
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10009a70
mov esi, eax
push str.run_process_failed__start_next
push esi
mov byte [ebp - 4], 0x1d
call fcn.100092f0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.1000a930
lea ecx, [ebp - 0x248]
call fcn.100074f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.100074f0
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
call fcn.1001d8d0
lea ecx, [ebp - 0x354]
call fcn.100074d0
lea ecx, [ebp - 0x350]
call fcn.100074d0
lea ecx, [ebp - 0x358]
call fcn.100074d0
lea ecx, [ebp - 0x35c]
call fcn.100074d0
lea ecx, [ebp - 0x360]
call fcn.100074d0
jmp 0x1001e848
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 0x1001e826
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 0x1001e848
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.1005f06c
mov esp, ebp
pop ebp
ret 0xc