Function at 0x4c7e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0bec
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 8], 0
je 0x4c815f
mov eax, dword fs:[0x2c]
mov edx, dword [0x633954]
mov edx, dword [eax + edx*4]
mov eax, dword [0x631d4c]
cmp eax, dword [edx + 4]
jg 0x4c8173
cmp dword [0x631d48], 0
jne 0x4c7ef5
mov ecx, 0x6319b8
call fcn.004714f0
test eax, eax
mov dword [ebp - 0x28], 0x5c26f8
mov edx, str.false
lea eax, [ebp - 0x28]
mov ecx, str.true
cmove ecx, edx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
push eax
mov ecx, 0x631d44
call fcn.004c7790
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4c81d1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4c81db
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
sub eax, 0
je 0x4c7f48
sub eax, 1
jne 0x4c7f55
push str.silent
jmp 0x4c7f4d
push str.normal
lea ecx, [ebp - 0x10]
call fcn.004674b0
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x4c7f69
sub eax, 1
jne 0x4c7f76
push 0x5c2714
jmp 0x4c7f6e
push str.start
lea ecx, [ebp - 0x14]
call fcn.004674b0
push 4
call fcn.00546014
mov edi, eax
add esp, 4
test edi, edi
je 0x4c7fa1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4c81e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
jmp 0x4c7fa3
xor edi, edi
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4c81ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, 0x5b860c
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
test eax, 0xffff0000
jne 0x4c7fdb
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x4c7fe7
push 9
push 0x5b860c
call fcn.00429870
sub esp, 8
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x24], esi
call fcn.00546014
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp + 0xc]
mov ecx, esi
mov byte [ebp - 4], 5
push eax
mov eax, dword [0x631d44]
push dword [eax + 4]
call fcn.004bb0a0
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov ebx, dword [esi]
mov eax, dword [0x631d48]
mov dword [esi + 4], eax
mov edx, dword [ebx + 4]
cmp byte [edx + 0xd], 0
jne 0x4c8083
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x4c8063
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4c8057
mov dword [ebx], edx
mov edx, dword [esi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x4c807e
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x4c8073
mov dword [edx + 8], ecx
jmp 0x4c808a
mov dword [ebx], ebx
mov eax, dword [esi]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004c8200
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0042a6a0
mov edx, dword [ebp - 0x20]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c80d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c80f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push edi
push 0x4c7da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0xc], 1
mov edi, eax
jne 0x4c811b
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c8140
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4c815f
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 8
push 0x631d4c
call fcn.00546388
add esp, 4
cmp dword [0x631d4c], 0xffffffff
jne 0x4c7eb7
push 0x18
mov dword [ebp - 4], 0
call fcn.00546014
push 0x5a99e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x631d44], eax
call fcn.0054669a
push 0x631d4c
mov dword [ebp - 4], 0xffffffff
call fcn.0054633e
add esp, 0xc
jmp 0x4c7eb7
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3