Function at 0x47c2f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf3bb
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
mov ebx, ecx
test ebx, ebx
je 0x47c61f
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x47c61e
movzx eax, word [edi]
test ax, ax
je 0x47c61e
push esi
cmp ax, 0x23
jne 0x47c38b
cmp word [edi + 2], 0
lea eax, [edi + 2]
je 0x47c61d
push eax
call fcn.00441380
mov esi, eax
push ebx
push esi
call fcn.0043d560
add esp, 0xc
mov edi, eax
test esi, esi
je 0x47c367
push esi
call fcn.00441300
add esp, 4
test edi, edi
je 0x47c61d
push edi
call fcn.00441300
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x40d0]
test ecx, ecx
je 0x47c61d
mov eax, dword [ebx + 0x4494]
test al, 4
je 0x47c61d
test al, 0x10
jne 0x47c61d
mov eax, dword [ebx + 0x66e8]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47c61d
cmp eax, ecx
jne 0x47c61d
mov ecx, ebx
call fcn.00479620
test eax, eax
je 0x47c61d
lea ecx, [eax + 8]
call fcn.00476940
test al, al
je 0x47c46e
mov ecx, dword [0x50b3a0]
push 1
call fcn.00443510
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
push edi
call esi
mov ecx, dword [0x50b3a0]
test eax, eax
jne 0x47c411
push 2
call fcn.00443510
jmp 0x47c469
push 1
call fcn.00443530
push eax
push edi
call esi
mov ecx, dword [0x50b3a0]
test eax, eax
jne 0x47c42f
push 2
call fcn.00443530
jmp 0x47c469
push 1
call fcn.00443550
push eax
push edi
call esi
mov ecx, dword [0x50b3a0]
test eax, eax
jne 0x47c44d
push 2
call fcn.00443550
jmp 0x47c469
push 1
call fcn.00443570
push eax
push edi
call esi
test eax, eax
jne 0x47c46e
mov ecx, dword [0x50b3a0]
push 2
call fcn.00443570
mov edi, eax
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x47c55d
cmp dword [ebx + 0x44c8], esi
je 0x47c492
push esi
push esi
push esi
push esi
push str.PostMacro__creating_thread
call fcn.004a18f0
add esp, 0x14
mov eax, dword [ebx + 0x264]
cmp eax, esi
je 0x47c4d9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47c4bd
mov eax, dword [ebx + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x264], esi
jmp 0x47c4d9
mov ecx, dword [ebx + 0x264]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebx + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x47c4e0
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [edi + edi + 0x14]
push eax
push 1
call fcn.004412c0
mov ecx, dword [ebp + 8]
add esp, 8
mov esi, eax
push ecx
inc edi
push edi
lea edx, [esi + 0x10]
push edx
mov dword [esi], ebx
mov dword [esi + 4], 0
call fcn.00401800
lea eax, [ebx + 0x268]
push eax
push 0
push esi
push 0x479450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x264], eax
test eax, eax
jne 0x47c61d
push esi
call fcn.00441300
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0x44c8], esi
je 0x47c576
push esi
push esi
push esi
push esi
push str.PostMacro__calling_pipe
call fcn.004a18f0
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push 0x2710
push ecx
lea ecx, [ebp - 0x234]
call fcn.004276a0
push 1
push str.CRealConsole::PostMacro
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], esi
call fcn.00427760
test eax, eax
je 0x47c5f2
mov ecx, dword [0x50b39c]
push esi
push str.Macro:_Waiting_for_result__10_sec_
call fcn.00415da0
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x47c5c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push edi
push 0xcc
lea ecx, [ebp - 0x234]
call fcn.004277d0
mov ecx, dword [0x50b39c]
push esi
push esi
call fcn.00415da0
cmp dword [ebx + 0x44c8], esi
je 0x47c60b
push esi
push esi
push esi
push esi
push str.PostMacro__done
call fcn.004a18f0
add esp, 0x14
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.00427b60
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8