Function at 0x10022890
Capabilities:
Create process on windows
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011df38
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100228de
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1002290b
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10022938
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x50]
add edx, 0xfffffff0
push eax
push ecx
mov dword [ebp - 0x1c], esp
mov ecx, dword [edx]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x24], eax
jl 0x1002298e
cmp edx, dword [ecx]
jne 0x1002298e
mov dword [ebp - 0x20], ecx
mov eax, 1
mov ecx, dword [ebp - 0x24]
lock xadd dword [ecx], eax
jmp 0x100229d3
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100233f5
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov eax, 0x3b
movzx edx, ax
lea ecx, [ebp - 0x5c]
call fcn.10047950
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x14], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x10022a52
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x10022a43
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10022a43
mov ecx, dword [ebp - 0x1c]
call fcn.10024750
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10022a3b
mov esi, dword [ebp - 0x14]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
jmp 0x10022a52
push dword [edx - 0xc]
lea ecx, [ebp - 0x30]
push edx
call fcn.10024680
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022a73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x50], 0xffffffff
je 0x1002344f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x14], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [esi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1c], eax
jl 0x10022aba
cmp edx, dword [ecx]
jne 0x10022aba
mov dword [ebp - 0x20], ecx
mov eax, 1
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], eax
jmp 0x10022af9
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100233f5
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov eax, 0x3e
movzx edx, ax
lea ecx, [ebp - 0x58]
call fcn.10047950
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10024250
mov ecx, eax
call fcn.100242d0
lea ecx, [edi - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x10022b86
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x10022b77
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10022b77
mov ecx, dword [ebp - 0x1c]
call fcn.10024750
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x10022b6f
mov edi, dword [ebp - 0x14]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x38], edi
jmp 0x10022b86
push dword [edx - 0xc]
lea ecx, [ebp - 0x38]
push edx
call fcn.10024680
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022ba7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x24], 0xffffffff
je 0x10022950
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [edi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1c], eax
jl 0x10022bdf
cmp edx, dword [ecx]
jne 0x10022bdf
mov dword [ebp - 0x20], ecx
mov eax, 1
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], eax
jmp 0x10022c1e
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100233f5
mov ecx, dword [edi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push edi
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x28], eax
add eax, 0xfffffff0
mov byte [ebp - 4], 6
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esp
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x20]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1c], eax
jl 0x10022c62
cmp edx, dword [ecx]
jne 0x10022c62
mov dword [ebp - 0x14], ecx
mov eax, 1
mov ecx, dword [ebp - 0x1c]
lock xadd dword [ecx], eax
jmp 0x10022ca7
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100233f5
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [edx], eax
call fcn.1003d120
mov dword [ebp - 0x18], eax
add esp, 4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10022ce0
mov ecx, dword [eax]
push dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x10022cf1
lea ecx, [ebp - 0x38]
call fcn.1002e5d0
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x1c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [esi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x10022d27
cmp edx, dword [ecx]
jne 0x10022d27
mov dword [ebp - 0x14], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
lock xadd dword [ecx], eax
jmp 0x10022d66
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100233f5
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
mov eax, 0x3e
movzx edx, ax
lea ecx, [ebp - 0x54]
call fcn.10047950
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.10024250
mov ecx, eax
call fcn.100242d0
lea ecx, [ebx - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x10022df3
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x10022de4
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10022de4
mov ecx, dword [ebp - 0x18]
call fcn.10024750
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10022ddc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
jmp 0x10022df3
push dword [edx - 0xc]
lea ecx, [ebp - 0x44]
push edx
call fcn.10024680
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], eax
je 0x1002308d
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x1c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [esi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x10022e59
cmp edx, dword [ecx]
jne 0x10022e59
mov dword [ebp - 0x14], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
lock xadd dword [ecx], eax
jmp 0x10022e98
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100233f5
mov ecx, dword [esi - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
mov eax, 0x3e
movzx edx, ax
lea ecx, [ebp - 0x48]
call fcn.10047950
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 0xffffffff
je 0x10023069
mov dword [ebp - 0x14], 0
jmp 0x10022ed0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
add esi, 0xfffffff0
push ecx
mov dword [ebp - 0x1c], esp
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10022eff
cmp ecx, dword [esi]
jne 0x10022eff
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10022f41
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x100233f5
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10103d20
mov esi, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x10]
mov dword [ecx], eax
mov eax, 0x2c
movzx edx, ax
lea ecx, [ebp - 0x60]
call fcn.10047950
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.10024250
mov ecx, eax
call fcn.100242d0
mov esi, dword [eax]
sub esi, 0x10
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x10022f94
cmp ecx, dword [esi]
jne 0x10022f94
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10022fd6
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x100233f5
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.10103d20
mov esi, dword [ebp - 0x18]
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022ffd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0xffffffff
je 0x10023048
push str.wait
push esi
call fcn.10103523
mov ecx, dword [ebp - 0x20]
add esp, 8
test eax, eax
mov byte [ebp - 4], 8
mov eax, 1
cmove ecx, eax
add esi, 0xfffffff0
mov dword [ebp - 0x20], ecx
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022ed0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10022ed0
add esi, 0xfffffff0
mov byte [ebp - 4], 8
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10023066
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002308a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
cmp dword [edi - 0xc], 0
je 0x10022950
push eax
push ebx
push edi
lea eax, [ebp - 0x4c]
push str.CustomEvents:_Execute_File_s__Params_s__bWait_d_
push eax
call fcn.10044f30
add esp, 0x14
mov byte [ebp - 4], 0xc
mov ecx, str.CustomEvents
mov edx, dword [ebp - 0x4c]
call fcn.10043b30
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100230dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x40
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.101078f0
xorps xmm0, xmm0
mov dword [ebp - 0xbc], 0x44
movdqu xmmword [ebp - 0x70], xmm0
cmp dword [ebx - 0xc], 0
mov ecx, 0x1012ecf8
push ebx
mov eax, 0x1012ec60
cmovne eax, ecx
push eax
push edi
lea eax, [ebp - 0x2c]
push 0x1012ecfc
push eax
call fcn.10044f30
add esp, 0x20
push str._ExeDir_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.10023fc0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov dword [ebp - 0x24], edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x1002316f
cmp edx, dword [ecx]
jne 0x1002316f
mov dword [ebp - 0x14], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
lock xadd dword [ecx], eax
jmp 0x100231b4
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100233f5
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x28], eax
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
push ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esp
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x100231f8
cmp edx, dword [ecx]
jne 0x100231f8
mov dword [ebp - 0x14], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
lock xadd dword [ecx], eax
jmp 0x1002323d
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100233f5
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.10103d20
add esp, 0x10
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [edx], eax
call fcn.1003d120
mov dword [ebp - 0x18], eax
add esp, 4
mov byte [ebp - 4], 0xe
or edx, 0xffffffff
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10023276
mov ecx, dword [eax]
push dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x10023284
lea ecx, [ebp - 0x3c]
call fcn.1002e5d0
push 0x1012ed24
push str.CAMEYO_AVOID_CUSTOMEVENTS
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 4], 1
jle 0x100232b1
push dword [eax - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.10024570
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push dword [ecx - 8]
push ecx
call fcn.1010374b
mov edx, eax
add esp, 8
test edx, edx
js 0x10023445
mov ecx, dword [ebp - 0x2c]
cmp edx, dword [ecx - 8]
jg 0x10023445
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
push 0x1012ec60
push str.CAMEYO_AVOID_CUSTOMEVENTS
mov word [eax + edx*2], cx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 0x18], 0
je 0x100233aa
cmp dword [ebp - 0x20], 0
je 0x10023398
push 0xffffffffffffffff
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xffffffff
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10023398
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push str.CustomEvents:_ExitCode_d
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0x10
mov ecx, str.CustomEvents
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 0xe
or ecx, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002338f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x40], 0x4d2
je 0x100233fa
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0xd
or ecx, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100233cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10022950
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10022950
call fcn.10024740
lea eax, [ebp - 0x34]
push str.CustomEvents:_special_exit_code._Aborting_execution_
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, str.CustomEvents
mov edx, dword [ebp - 0x34]
call fcn.10043b30
mov byte [ebp - 4], 0xe
or ecx, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002343d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x80070057
call fcn.100223c0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002346f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002348c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100234a9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100234ca
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 esp, ebp
pop ebp
ret