Function at 0x4c02a0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4f7dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x54f4a0]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x254]
push edi
push esi
mov dword [esp + 0x248], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, edi
call fcn.004bf720
lea ecx, [esp + 0x14]
call fcn.004bd310
xor ebx, ebx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], ebx
call fcn.004bebe0
test al, al
je 0x4c0541
push 0x104
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004bf180
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0xcc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4c0341
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x48], 8
push ebp
mov ebp, eax
jb 0x4c034f
mov eax, dword [eax + 0x34]
jmp 0x4c0352
add eax, 0x34
push str.AddinInfo
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4c050d
mov ecx, dword [ebp + 0x78]
cmp ecx, ebx
je 0x4c037a
push str.name
call fcn.004bc810
push eax
lea ecx, [edi + 4]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [ebp + 0x78]
cmp ecx, ebx
je 0x4c03a3
push str.version
call fcn.004bc810
cmp eax, ebx
je 0x4c03a3
push eax
lea ecx, [edi + 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [ebp + 0x84]
cmp eax, ebx
jne 0x4c03b3
mov dword [esp + 0x14], ebx
jmp 0x4c03c2
mov ecx, dword [ebp + 0x88]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
jbe 0x4c04b7
lea ecx, [ecx]
push ebx
mov ecx, ebp
call fcn.004bc510
mov esi, eax
cmp dword [esi + 0x48], 8
jb 0x4c03f5
mov eax, dword [esi + 0x34]
jmp 0x4c03f8
lea eax, [esi + 0x34]
push str.LuaChunk
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4c0422
mov al, byte [esp + 0x13]
test al, al
jne 0x4c0490
push esi
mov ecx, edi
call fcn.004bf970
mov byte [esp + 0x13], 1
jmp 0x4c0490
cmp dword [esi + 0x48], 8
jb 0x4c042d
mov eax, dword [esi + 0x34]
jmp 0x4c0430
lea eax, [esi + 0x34]
push 0x500e10
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4c045a
mov al, byte [esp + 0x12]
test al, al
jne 0x4c0490
push esi
mov ecx, edi
call fcn.004bfed0
mov byte [esp + 0x12], 1
jmp 0x4c0490
cmp dword [esi + 0x48], 8
jb 0x4c0465
mov eax, dword [esi + 0x34]
jmp 0x4c0468
lea eax, [esi + 0x34]
push str.Commands
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4c0490
mov al, byte [esp + 0x11]
test al, al
jne 0x4c0490
push esi
mov ecx, edi
call fcn.004bffe0
mov byte [esp + 0x11], 1
lea edx, [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4c04aa
test esi, esi
je 0x4c04aa
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x4c03e0
lea ecx, [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4c04ce
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], 0xffffffff
call fcn.004bc970
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x248]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
pop ebx
xor ecx, esp
call fcn.004e6c56
add esp, 0x248
ret 4
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x4c0528
cmp ebp, ebx
je 0x4c0528
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], 0xffffffff
call fcn.004bc970
or eax, 0xffffffff
jmp 0x4c04e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call fcn.004bc970
or eax, 0xffffffff
jmp 0x4c04e5