Function at 0x4c6105b8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov al, byte [esi]
inc esi
xor edx, edx
mov dl, al
cmp edx, 4
jg 0x4c6105eb
je 0x4c6107af
dec edx
je 0x4c610613
dec edx
je 0x4c610620
dec edx
je 0x4c610702
jmp 0x4c6108d6
add edx, 0xfffffffb
sub edx, 4
jb 0x4c610804
je 0x4c610872
sub edx, 0xf3
jne 0x4c6108d6
mov eax, 1
jmp 0x4c6108e2
cmp dword [ebp + 0xc], 0
je 0x4c6105c7
xor eax, eax
jmp 0x4c6108e2
push 1
push esi
call sub.IDAPI32.dll_OsJLdFMtoB
mov word [ebp - 2], ax
movsx edx, word [ebp - 2]
xor ecx, ecx
mov cl, byte [esi + edx]
cmp ecx, 0xb0
jne 0x4c610649
inc word [ebp - 2]
mov word [ebp - 4], 2
jmp 0x4c61064f
mov word [ebp - 4], 1
movsx eax, word [ebp - 2]
add eax, esi
mov edx, dword [ebp + 8]
mov dword [edx + 0xa], eax
cmp dword [ebp + 0xc], 0
jne 0x4c610668
xor eax, eax
jmp 0x4c6108e2
cmp dword [ebp + 0xc], 0
jne 0x4c610675
xor eax, eax
jmp 0x4c6108e2
movsx edx, word [ebp - 4]
push edx
push edi
call sub.IDAPI32.dll_OsJLdFMtoB
mov ebx, eax
test bx, bx
jne 0x4c61068e
xor eax, eax
jmp 0x4c6108e2
movsx edx, bx
push edx
movsx ecx, word [ebp - 2]
push ecx
push edi
push esi
call sub.IDAPI32.dll_OsJLdFPNBStrCmp
test eax, eax
je 0x4c6106b9
push 1
push edi
call sub.IDAPI32.dll_OsJLdFMtoB
mov ebx, eax
movsx eax, bx
sub dword [ebp + 0xc], eax
movsx edx, bx
add edi, edx
jmp 0x4c610668
movsx ecx, bx
sub dword [ebp + 0xc], ecx
movsx eax, bx
add edi, eax
movsx edx, word [ebp - 2]
add esi, edx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.4c6105b8
test eax, eax
je 0x4c6106e8
mov eax, 1
jmp 0x4c6108e2
mov edx, dword [ebp + 8]
cmp esi, dword [edx + 0xa]
je 0x4c6106f7
xor eax, eax
jmp 0x4c6108e2
movsx edx, word [ebp - 2]
sub esi, edx
jmp 0x4c610668
push 1
push esi
call sub.IDAPI32.dll_OsJLdFMtoB
mov word [ebp - 2], ax
movsx ecx, word [ebp - 2]
xor eax, eax
mov al, byte [esi + ecx]
cmp eax, 0xb0
jne 0x4c61072a
inc word [ebp - 2]
mov word [ebp - 4], 2
jmp 0x4c610730
mov word [ebp - 4], 1
movsx edx, word [ebp - 2]
add edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edx
cmp dword [ebp + 0xc], 0
jne 0x4c61074f
xor eax, eax
jmp 0x4c6108e2
push edi
push esi
mov dx, word [ebp - 2]
push edx
mov cx, word [ebp - 4]
push ecx
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.4c6108eb
mov edi, eax
test eax, eax
jne 0x4c610777
xor eax, eax
jmp 0x4c6108e2
mov edx, dword [ebp + 8]
push dword [edx + 0x24]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.4c6105b8
test eax, eax
je 0x4c61079a
mov eax, 1
jmp 0x4c6108e2
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xa]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 0x24]
je 0x4c61074f
xor eax, eax
jmp 0x4c6108e2
mov dx, word [esi]
add esi, 2
mov word [ebp - 0xa], dx
movsx ecx, word [ebp - 0xa]
push ecx
push edi
call sub.IDAPI32.dll_OsJLdFMtoB
mov ebx, eax
test bx, bx
je 0x4c6107ed
movsx eax, bx
cmp eax, dword [ebp + 0xc]
ja 0x4c6107ed
movsx edx, bx
cmp edx, dword [ebp + 0xc]
jne 0x4c6107f4
movsx ecx, bx
push ecx
push edi
call sub.IDAPI32.dll_OsJLdFBtoM
movsx edx, word [ebp - 0xa]
cmp eax, edx
je 0x4c6107f4
xor eax, eax
jmp 0x4c6108e2
movsx ecx, bx
add edi, ecx
movsx eax, bx
sub dword [ebp + 0xc], eax
jmp 0x4c6105c7
xor edx, edx
mov dl, byte [esi - 1]
add dx, 0xfffc
mov word [ebp - 6], dx
movsx ecx, word [ebp - 6]
push ecx
push esi
call sub.IDAPI32.dll_OsJLdFBtoM
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
push eax
push edi
call sub.IDAPI32.dll_OsJLdFMtoB
mov ebx, eax
test ax, ax
je 0x4c61083a
movsx edx, bx
cmp edx, dword [ebp + 0xc]
jbe 0x4c610841
xor eax, eax
jmp 0x4c6108e2
movsx edx, word [ebp - 6]
push edx
movsx ecx, bx
push ecx
push esi
push edi
call sub.IDAPI32.dll_OsJLdFPNBStrCmp
test eax, eax
je 0x4c61085c
xor eax, eax
jmp 0x4c6108e2
movsx edx, word [ebp - 6]
add esi, edx
movsx ecx, bx
add edi, ecx
movsx eax, bx
sub dword [ebp + 0xc], eax
jmp 0x4c6105c7
mov dx, word [esi]
mov word [ebp - 6], dx
add esi, 2
movsx ecx, word [ebp - 6]
push ecx
push dword [esi]
call sub.IDAPI32.dll_OsJLdFBtoM
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
push eax
push edi
call sub.IDAPI32.dll_OsJLdFMtoB
mov ebx, eax
test ax, ax
je 0x4c6108a6
movsx edx, bx
cmp edx, dword [ebp + 0xc]
jbe 0x4c6108aa
xor eax, eax
jmp 0x4c6108e2
movsx edx, word [ebp - 6]
push edx
movsx ecx, bx
push ecx
push dword [esi]
push edi
call sub.IDAPI32.dll_OsJLdFPNBStrCmp
test eax, eax
je 0x4c6108c3
xor eax, eax
jmp 0x4c6108e2
add esi, 4
movsx edx, bx
add edi, edx
movsx ecx, bx
sub dword [ebp + 0xc], ecx
jmp 0x4c6105c7
push 0x4c63b2b0
call sub.KERNEL32.dll_OutputDebugStringA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14