Function at 0x100af9c0
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ecedd
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov eax, dword [str.Global_]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x100fec14]
mov word [ebp - 0x24], ax
mov al, byte [0x100fec16]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.10011c30
mov ecx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x100afaaa
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afa9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00c0
push ecx
push edx
call fcn.10084de4
mov al, byte [ebp - 0x8d]
add esp, 8
test al, al
je 0x100afb5d
cmp dword [esi + 0x14], 0x10
lea edi, [esi + 0x14]
mov eax, esi
jb 0x100afabf
mov eax, dword [esi]
push eax
push 0
push 1
lea ecx, [esi + 0x1c]
push 0
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
mov eax, SysReAllocString
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0x1a
jb 0x100b00d9
cmp dword [edi], 0x10
mov eax, esi
jb 0x100afaf4
mov eax, dword [esi]
push 0x1a
push str._secondaryStartupEventName
push ecx
push eax
push esi
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
call fcn.10020240
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x100afb43
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afb39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00e3
push ecx
push edx
call fcn.10084de4
add esp, 8
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0x30], xmm0
jmp 0x100afce6
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 7
jb 0x100b00c5
cmp dword [esi + 0x14], 0x10
lea edi, [esi + 0x14]
mov eax, esi
jb 0x100afb7d
mov eax, dword [esi]
push ecx
push eax
push 7
push str.Global_
push esi
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
call fcn.10020240
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x1c]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 1
push 0
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
cmp ecx, 0x10
jb 0x100afbed
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afbe3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00ca
push ecx
push edx
call fcn.10084de4
add esp, 8
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 7
jb 0x100b00cf
cmp dword [edi], 0x10
mov eax, esi
jb 0x100afc09
mov eax, dword [esi]
push ecx
push eax
push 7
push str.Global_
push esi
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
call fcn.10020240
push 0x1a
push str._secondaryStartupEventName
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.10012a80
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x2c]
movq qword [ebp - 0x60], xmm1
movups xmmword [ebp - 0x20], xmm0
cmp ecx, 0x10
jb 0x100afc99
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afc86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00d4
push ecx
push edx
call fcn.10084de4
movups xmm0, xmmword [ebp - 0x20]
add esp, 8
movq xmm1, qword [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
movq qword [ebp - 0x30], xmm1
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x40], xmm0
cmp ecx, 0x10
jb 0x100afce6
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afcd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00d4
push ecx
push edx
call fcn.10084de4
lea ecx, [esi + 0x1c]
add esp, 8
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0xc
jb 0x100b00d9
cmp dword [edi], 0x10
mov eax, esi
jb 0x100afd05
mov eax, dword [esi]
push 0xc
push str._memFileName
push ecx
push eax
push esi
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
call fcn.10020240
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x100afd54
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100afd4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00e3
push ecx
push edx
call fcn.10084de4
add esp, 8
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x8c]
mov byte [esi + 0x18], 1
cmp dword [ecx], 0
je 0x100afe27
mov cl, 1
cmp eax, 0xb7
jne 0x100afd91
mov byte [esi + 0x18], 0
xor cl, cl
test cl, cl
je 0x100afe34
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [ebp - 0x44], 0x10
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 0x800
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x100afdec
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
push 0xb0
mov dword [ebp - 0x60], 0x800
mov dword [ebp - 0x5c], esi
call fcn.10084db4
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x100aff8a
lea ecx, [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.100af060
mov edi, eax
jmp 0x100aff8c
cmp eax, 5
jne 0x100afd99
mov byte [esi + 0x18], 0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x20], eax
test eax, eax
je 0x100b0028
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x100aff7c
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x100aff7c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x100aff7c
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100afec0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10001b50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000f270
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 8
jb 0x100aff27
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100aff1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00de
push ecx
push edx
call fcn.10084de4
add esp, 8
push 0x800
push 0
push dword [esi + 0x28]
call fcn.10088fa0
mov ecx, dword [esi + 0x28]
lea edi, [ebp - 0x70]
add esp, 0xc
mov edx, 0x800
cmp dword [ebp - 0x5c], 0x10
cmovae edi, dword [ebp - 0x70]
sub edi, ecx
nop
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x100aff69
mov al, byte [edi + ecx]
test al, al
je 0x100aff69
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100aff50
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
lea ecx, [ebp - 0x70]
mov byte [eax], 0
call fcn.100023d0
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100b0028
xor edi, edi
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 5
test edi, edi
je 0x100b00b9
lea edx, [edi + 4]
lock inc dword [edx]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx], eax
jne 0x100affce
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x100affc0
mov eax, dword [ecx]
push edi
jmp 0x100affc6
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea edx, [edi + 4]
or ecx, 0xffffffff
add esi, 0x2c
lea eax, [ebp - 0x98]
cmp esi, eax
je 0x100b000d
mov edx, dword [esi]
test edx, edx
je 0x100b0005
lock xadd dword [edx + 4], ecx
dec ecx
jne 0x100b0005
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x100afffd
mov eax, dword [ecx]
push edx
call dword [eax]
mov dword [esi], edi
mov byte [esi + 4], 1
jmp 0x100b0028
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov dword [esi], edi
mov byte [esi + 4], 1
jmp 0x100b0028
lock xadd dword [edx], ecx
dec ecx
jne 0x100b0028
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x100b0020
mov eax, dword [ecx]
push edi
jmp 0x100b0026
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x100b005c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b0052
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00e3
push ecx
push edx
call fcn.10084de4
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x100b009e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100b0094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b00e3
push ecx
push edx
call fcn.10084de4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret
push 4
call fcn.1002e8d0
call fcn.1008ca42
call fcn.1000ad20
call fcn.1008ca42
call fcn.1000ad20
call fcn.1008ca42
call fcn.1000ad20
call fcn.1008ca42
call fcn.1008ca42
int3