Function at 0x1011cd0
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
jne 0x101bfe7
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0101234c
mov dword [0x1048d90], eax
cmp dword [0x1048d8c], ebx
jne 0x101c030
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x10490a0], ecx
call fcn.0100e953
mov dword [ebp + 8], 1
mov eax, dword [esi + 0x1048aec]
push ebx
push 0x4ff
mov dword [ebp - 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
sub eax, ebx
jne 0x101966d
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x10095a8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, edi
call fcn.01001652
push dword [esi + 0x1048af0]
mov dword [esi + 0x1048ae0], ebx
mov dword [esi + 0x1048aec], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, edi
call fcn.0100166e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
call fcn.01011c5a
jmp 0x10121af
push 0x5c
push 0x10122e8
call fcn.01006cc7
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1049228
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x101bf99
xor esi, esi
inc esi
mov eax, dword [0x1049224]
cmp eax, esi
je 0x101bfb8
mov eax, dword [0x1049224]
test eax, eax
jne 0x101231f
mov dword [0x1049224], esi
push 0x10122e0
push 0x10122d4
call fcn.0101218b
pop ecx
pop ecx
test eax, eax
jne 0x101c053
mov eax, dword [0x1049224]
cmp eax, esi
jne 0x101225d
push 0x10122d0
push 0x10122a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1049224], 2
cmp dword [ebp - 0x20], ebx
jne 0x101226a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1049234], ebx
jne 0x101bfc5
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101c053
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x1012310
cmp cx, 0x22
je 0x101bff0
inc eax
inc eax
jmp 0x1012285
cmp cx, bx
je 0x101232a
cmp dword [ebp - 0x1c], ebx
je 0x101232a
jmp 0x1012291
mov dword [0x10492e4], esi
jmp 0x1012239
movzx ecx, word [eax]
cmp cx, bx
je 0x1009564
cmp cx, 0x20
ja 0x1009564
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101232a
dec eax
je 0x1019689
jmp 0x10095d0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x10095d0
jmp 0x1019675
cmp eax, esi
jne 0x101bfa8
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1012200
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10121ec
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1012239
push 0x1049234
call fcn.0103f70b
pop ecx
test eax, eax
je 0x1012276
push ebx
push 2
push ebx
call dword [0x1049234]
jmp 0x1012276
movzx ecx, word [ebp - 0x3c]
jmp 0x1009571
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x101229b
cmp dword [0x10492e4], ebx
jne 0x101c03e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1048d90]
jmp 0x101c05f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006d0c
ret