Function at 0x1011ce8
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
jne 0x101bf6f
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01012364
mov dword [0x1048d90], eax
cmp dword [0x1048d8c], ebx
jne 0x101bfb8
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x10490a0], ecx
call fcn.0100e6f3
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 0x101960d
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x10095c8
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.01011c72
jmp 0x10121c7
push 0x5c
push 0x1012300
call fcn.01006cbf
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 0x101bf21
xor esi, esi
inc esi
mov eax, dword [0x1049224]
cmp eax, esi
je 0x101bf40
mov eax, dword [0x1049224]
test eax, eax
jne 0x1012337
mov dword [0x1049224], esi
push 0x10122f8
push 0x10122ec
call fcn.010121a3
pop ecx
pop ecx
test eax, eax
jne 0x101bfdb
mov eax, dword [0x1049224]
cmp eax, esi
jne 0x1012275
push 0x10122e8
push 0x10122b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1049224], 2
cmp dword [ebp - 0x20], ebx
jne 0x1012282
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1049234], ebx
jne 0x101bf4d
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101bfdb
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x1012328
cmp cx, 0x22
je 0x101bf78
inc eax
inc eax
jmp 0x101229d
cmp cx, bx
je 0x1012342
cmp dword [ebp - 0x1c], ebx
je 0x1012342
jmp 0x10122a9
mov dword [0x10492e4], esi
jmp 0x1012251
movzx ecx, word [eax]
cmp cx, bx
je 0x1009584
cmp cx, 0x20
ja 0x1009584
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1012342
dec eax
je 0x1019629
jmp 0x10095f0
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 0x10095f0
jmp 0x1019615
cmp eax, esi
jne 0x101bf30
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1012218
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1012204
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1012251
push 0x1049234
call fcn.0103f733
pop ecx
test eax, eax
je 0x101228e
push ebx
push 2
push ebx
call dword [0x1049234]
jmp 0x101228e
movzx ecx, word [ebp - 0x3c]
jmp 0x1009591
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x10122b3
cmp dword [0x10492e4], ebx
jne 0x101bfc6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1048d90]
jmp 0x101bfe7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006d04
ret