Function at 0x10022670
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13e4
call fcn.10123010
mov eax, dword [0x101c1b88]
xor eax, esp
mov dword [esp + 0x13e0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
xor eax, eax
push 0x103
mov ebx, ecx
push eax
lea ecx, [esp + 0x1e1]
push ecx
mov esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x1e4], al
call fcn.1011e8d0
add esp, 0xc
push 0x103
lea edx, [esp + 0x2e5]
push 0
push edx
mov byte [esp + 0x2ec], 0
call fcn.1011e8d0
add esp, 0xc
push 0x103
lea eax, [esp + 0xd5]
push 0
push eax
mov byte [esp + 0xdc], 0
call fcn.1011e8d0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov eax, edi
lea ecx, [eax + 1]
jmp 0x10022720
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10022720
push ebx
sub eax, ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push esi
push 0x101aecf0
push 0xe2
push str.RunOneExe
push str..If_WebCall.c
push 2
mov dword [esp + 0x38], eax
call fcn.1014edc0
mov edx, dword [ebp + 0x10]
add esp, 0x24
push ebx
push edx
push edi
push esi
push 0x101aecf0
push 0xe2
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014f750
mov eax, esi
add esp, 0x24
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10022780
sub eax, ecx
cmp byte [esi + eax - 4], 0x2e
je 0x100227c2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022797
sub eax, edx
cmp byte [esi + eax - 5], 0x2e
je 0x100227c2
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100227b0
sub eax, edx
cmp byte [esi + eax - 6], 0x2e
jne 0x1002280c
push 0
push esi
call sym.IsaManage.dll_IsiUpdateEx
add esp, 8
test eax, eax
jne 0x10022823
push esi
push 0x101aed38
push 0xf3
push str.RunOneExe
push str..If_WebCall.c
push 1
call fcn.1014edc0
push esi
push 0x101aed38
push 0xf3
push str.RunOneExe
push str..If_WebCall.c
push 1
call fcn.1014f750
add esp, 0x30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1d8]
push eax
push esi
call fcn.1014be90
push 4
push str.HTTP
push esi
call fcn.1011af7b
add esp, 0x14
test eax, eax
je 0x100228eb
lea ecx, [esp + 0x1d8]
push ecx
push esi
call fcn.1011a86d
add esp, 8
test eax, eax
je 0x100228eb
push 7
push str.FILE:__
push esi
call fcn.1011af7b
add esp, 0xc
test eax, eax
jne 0x10022899
lea edx, [esi + 7]
push edx
push 0x101abb1c
lea eax, [esp + 0xd8]
push 0x104
push eax
call fcn.1011a6b9
add esp, 0x10
jmp 0x10022941
push esi
push 0x101aecac
push 0x108
push str.RunOneExe
push str..If_WebCall.c
push 1
call fcn.1014edc0
push esi
push 0x101aecac
push 0x108
push str.RunOneExe
push str..If_WebCall.c
push 1
call fcn.1014f750
add esp, 0x30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2e0]
push 0x104
push ecx
call fcn.10155740
push str.SmpAgent
lea edx, [esp + 0x2ec]
push 0x104
push edx
call fcn.1014e0f0
add esp, 0x14
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x2e4]
push ecx
push str._s__s
lea edx, [esp + 0xdc]
push 0x104
push edx
call fcn.1011a6b9
add esp, 0x14
push str..exe
lea eax, [esp + 0x1dc]
push 0xffffffffffffffff
push eax
call fcn.1014e560
add esp, 0xc
test eax, eax
jne 0x10022977
push str..com
lea ecx, [esp + 0x1dc]
push 0xffffffffffffffff
push ecx
call fcn.1014e560
add esp, 0xc
test eax, eax
je 0x100229f0
lea edx, [esp + 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100229f0
lea eax, [esp + 0xd0]
push eax
call fcn.10151ee0
add esp, 4
test eax, eax
jne 0x100229f0
push esi
push 0x101aed70
push 0x116
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014edc0
push esi
push 0x101aed70
push 0x116
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014f750
add esp, 0x30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
push 0x11c
push str.RunOneExe
add esi, 0x104
push str..If_WebCall.c
push esi
call fcn.1014adb0
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x1002280c
push edi
lea ecx, [esp + 0xd4]
push ecx
push str.__s___s
push esi
push eax
call fcn.1011a6b9
mov esi, dword [esp + 0x28]
add esp, 0x14
push esi
push 0x101aed8c
push 0x122
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014edc0
push esi
push 0x101aed8c
push 0x122
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014f750
add esp, 0x30
xor esi, esi
test ebx, ebx
je 0x10022a89
lea esi, [esp + 0xd0]
call fcn.10022120
mov esi, eax
push 0x44
lea edx, [esp + 0x8c]
push 0
push edx
call fcn.1011e8d0
xor eax, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 0x44
je 0x10022c47
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push 0x400
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10022b35
mov eax, dword [esp + 0x14]
push 0x13b
push str.RunOneExe
push str..If_WebCall.c
push eax
call fcn.1014acc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push 0xfffffffffffffff6
mov dword [esp + 0xb8], 0x101
mov word [esp + 0xbc], bx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
mov ebx, dword [esp + 0x34]
push ebx
push 0
mov dword [esp + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10022c3d
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10022bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022bc3
sub eax, edx
lea esi, [eax + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
je 0x10022bef
mov edx, dword [esp + 0x10]
push edx
push esi
push eax
call fcn.1011b28e
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
push 0x168
push str.RunOneExe
push str..If_WebCall.c
push ebx
call fcn.1014acc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push eax
jmp 0x10022dec
push 0x3c
lea ecx, [esp + 0x50]
push ebx
push ecx
call fcn.1011e8d0
add esp, 0xc
lea eax, [esp + 0x4c]
lea edx, [esp + 0xd0]
push eax
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x4c0
mov dword [esp + 0x5c], 0x101a7878
mov dword [esp + 0x60], edx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x64], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [esp + 0x84], ebx
jne 0x10022d39
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x10022d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022cd0
sub eax, edx
lea esi, [eax + 1]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [edi], eax
je 0x10022cfb
mov edx, dword [esp + 0x10]
push edx
push esi
push eax
call fcn.1011b28e
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
push 0x18f
push str.RunOneExe
push str..If_WebCall.c
push ecx
call fcn.1014acc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13e0]
xor ecx, esp
call fcn.1011a380
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], ebx
je 0x10022de4
lea edx, [esp + 0xd0]
push edx
push 0x101aed98
push 0x195
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014edc0
lea eax, [esp + 0xe8]
push eax
push 0x101aed98
push 0x195
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014f750
mov ecx, dword [esp + 0xb4]
add esp, 0x30
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xd0]
push edx
push 0x101aedb0
push 0x197
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014edc0
lea eax, [esp + 0xe8]
push eax
push 0x101aedb0
push 0x197
push str.RunOneExe
push str..If_WebCall.c
push 2
call fcn.1014f750
add esp, 0x30
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0xd0]
push edx
push 0x101aedc0
push 0x19d
push str.RunOneExe
push str..If_WebCall.c
push 0
call fcn.1014edc0
lea eax, [esp + 0xe8]
push eax
push 0x101aedc0
push 0x19d
push str.RunOneExe
push str..If_WebCall.c
push 0
call fcn.1014f750
add esp, 0x30
test esi, esi
je 0x10022f5a
push 0x1a6
push str.RunOneExe
mov esi, 0x2000
push str..If_WebCall.c
push esi
mov edi, esi
call fcn.1014adb0
add esp, 0x10
mov ebx, eax
jmp 0x10022e70
push 0x1000
lea ecx, [esp + 0x3ec]
push 0
push ecx
call fcn.1011e8d0
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0x3f4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10022f03
mov eax, dword [esp + 0x18]
cmp eax, esi
jb 0x10022ee3
push 0x1b0
push str.RunOneExe
push str..If_WebCall.c
add edi, 0x2000
push edi
push ebx
add esi, 0x2000
call fcn.1014acf0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
jbe 0x10022f03
push eax
mov eax, ebx
lea edx, [esp + 0x3ec]
sub eax, esi
push edx
add eax, edi
push eax
call fcn.1011e560
add esp, 0xc
sub esi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x2c], 0x103
je 0x10022e70
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10022f5e
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10022f30
sub eax, edx
lea esi, [eax + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
je 0x10022f5e
push ebx
push esi
push eax
call fcn.1011b28e
add esp, 0xc
jmp 0x10022f5e
mov ebx, dword [esp + 0x28]
push 0x1ca
push str.RunOneExe
push str..If_WebCall.c
push ebx
call fcn.1014acc0
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x14]
push 0x1ce
push str.RunOneExe
push str..If_WebCall.c
push eax
call fcn.1014acc0
mov ecx, dword [esp + 0x13fc]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1011a380
mov esp, ebp
pop ebp
ret