Function at 0x4c5a50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
lea edi, [esi + 0x120]
push edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x10e]
mov dword [ebp - 4], 0
test al, 2
jne 0x4c5aa0
push edi
jmp 0x4c5dba
push 0
push 0x55a610
push 0x55a370
push 0
push esi
call sub.MSVCRT.dll___RTDynamicCast
push 0
push 0x55a5f8
push 0x55a370
push 0
push esi
mov edi, eax
call sub.MSVCRT.dll___RTDynamicCast
push 0
push 0x55a5e0
push 0x55a370
push 0
push esi
mov ebx, eax
call sub.MSVCRT.dll___RTDynamicCast
push 0
push 0x55a5c8
push 0x55a370
push 0
push esi
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll___RTDynamicCast
add esp, 0x50
mov dword [ebp - 0x20], eax
push 0
push 0x55a388
push 0x55a370
push 0
push esi
call sub.MSVCRT.dll___RTDynamicCast
push 0
push 0x55a5b0
push 0x55a370
push 0
push esi
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll___RTDynamicCast
add esp, 0x28
test edi, edi
je 0x4c5b7a
mov edi, dword [edi + 0x190]
test edi, edi
je 0x4c5b7a
xor eax, eax
lea ecx, [ebp - 0x14]
mov al, byte [0x5668c1]
push ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call edi
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
test ebx, ebx
je 0x4c5bb8
mov ebx, dword [ebx + 0x15c]
test ebx, ebx
je 0x4c5bb8
xor edx, edx
lea eax, [ebp - 0x14]
mov dl, byte [0x5668c1]
push eax
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 3
call ebx
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4c5bf9
mov ecx, dword [ecx + 0x190]
test ecx, ecx
je 0x4c5bf9
xor edx, edx
lea eax, [ebp - 0x14]
mov dl, byte [0x5668c1]
push eax
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 5
call ecx
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4c5c3a
mov ecx, dword [ecx + 0x198]
test ecx, ecx
je 0x4c5c3a
xor edx, edx
lea eax, [ebp - 0x20]
mov dl, byte [0x5668c1]
push eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 7
call ecx
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4c5c78
mov ecx, dword [ecx + 0x180]
test ecx, ecx
je 0x4c5c78
xor edx, edx
lea eax, [ebp - 0x1c]
mov dl, byte [0x5668c1]
push eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 9
call ecx
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
test eax, eax
je 0x4c5cb3
mov eax, dword [eax + 0x160]
test eax, eax
je 0x4c5cb3
xor ecx, ecx
lea edx, [ebp - 0x1c]
mov cl, byte [0x5668c1]
push edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xb
call eax
mov ebx, eax
mov dword [ebp - 4], 0
jmp 0x4c5cb8
mov ebx, 1
mov eax, dword [ebp + 8]
mov ecx, 0x568cb0
push eax
push esi
call fcn.004c6450
test eax, eax
je 0x4c5ccd
xor ebx, ebx
test bl, 1
je 0x4c5d80
mov al, byte [0x5668c1]
test al, al
je 0x4c5d66
mov edx, dword [0x566868]
lea ecx, [ebp - 0x228]
push 0x100
push ecx
push 0x9cf
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov al, byte [0x5688a4]
mov ecx, 0x40
mov byte [ebp - 0x128], al
xor eax, eax
lea edi, [ebp - 0x127]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x128]
lea edx, [esi + 4]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x228]
push eax
push 0x566898
lea edx, [ebp - 0x428]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4c5d80
mov ecx, dword [0x566868]
push esi
push 0x4bc630
push 0
push 0x93
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test bl, 4
je 0x4c5d95
mov edx, dword [esi]
and word [esi + 0x10e], 0xfffd
mov ecx, esi
call dword [edx + 8]
test bl, 2
je 0x4c5db6
mov eax, dword [esi]
and word [esi + 0x10e], 0xfffd
mov ecx, esi
call dword [eax + 8]
push 0xffffffffffffffff
mov ecx, 0x566788
call fcn.004c2200
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4