Function at 0x50bc39
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov al, byte [ebx]
inc ebx
xor edx, edx
mov dl, al
cmp edx, 6
jg 0x50bc75
je 0x50bdde
dec edx
je 0x50bca2
dec edx
je 0x50bcb0
sub edx, 2
je 0x50bdb8
dec edx
je 0x50bdc5
jmp 0x50be82
sub edx, 7
je 0x50bdf8
dec edx
je 0x50be18
dec edx
je 0x50be2d
sub edx, 0xf3
jne 0x50be82
mov eax, 1
jmp 0x50be8e
cmp word [ebp + 8], 0
je 0x50bc48
xor eax, eax
jmp 0x50be8e
lea edx, [ebx + 1]
mov dword [edi + 0x12], edx
cmp word [ebp + 8], 0
jne 0x50bcd6
movsx ecx, byte [esi]
xor eax, eax
mov al, byte [ebx]
cmp ecx, eax
je 0x50bccf
xor eax, eax
jmp 0x50be8e
inc ebx
inc esi
jmp 0x50bc48
mov dl, byte [ebx]
inc ebx
mov byte [ebp - 3], dl
cmp dword [edi], 0
je 0x50bd46
mov cl, byte [ebp - 3]
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x1f], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
lea edx, [ebp - 0x20]
push edx
call sub.user32.dll_CharUpperA
lea ecx, [ebp - 0x38]
push ecx
call sub.user32.dll_CharLowerA
movzx eax, word [ebp + 8]
inc eax
push eax
movsx edx, byte [ebp - 0x20]
push edx
push esi
call fcn.005134bd
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x50bd68
movzx edx, word [ebp + 8]
inc edx
push edx
movsx ecx, byte [ebp - 0x38]
push ecx
push esi
call fcn.005134bd
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x50bd68
xor eax, eax
jmp 0x50be8e
movzx edx, word [ebp + 8]
inc edx
push edx
movsx ecx, byte [ebp - 3]
push ecx
push esi
call fcn.005134bd
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x50bd68
xor eax, eax
jmp 0x50be8e
mov edx, dword [ebp - 8]
sub edx, esi
sub word [ebp + 8], dx
mov esi, dword [ebp - 8]
inc esi
cmp word [ebp + 8], 0
je 0x50bc48
mov ax, word [ebp + 8]
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0050bc39
test eax, eax
je 0x50bd9e
mov eax, 1
jmp 0x50be8e
cmp ebx, dword [edi + 0x12]
je 0x50bdaa
xor eax, eax
jmp 0x50be8e
dec word [ebp + 8]
jmp 0x50bcdc
movzx edx, word [ebx]
add esi, edx
add ebx, 2
jmp 0x50bc48
movsx ecx, byte [esi]
xor eax, eax
mov al, byte [ebx]
cmp ecx, eax
je 0x50bdd7
xor eax, eax
jmp 0x50be8e
inc ebx
inc esi
jmp 0x50bc48
mov dx, word [esi]
cmp dx, word [ebx]
je 0x50bded
xor eax, eax
jmp 0x50be8e
add ebx, 2
add esi, 2
jmp 0x50bc48
mov edx, dword [esi]
shl edx, 8
mov ecx, dword [ebx]
shl ecx, 8
cmp edx, ecx
je 0x50be0d
xor eax, eax
jmp 0x50be8e
add ebx, 3
add esi, 3
jmp 0x50bc48
mov edx, dword [esi]
cmp edx, dword [ebx]
je 0x50be22
xor eax, eax
jmp 0x50be8e
add ebx, 4
add esi, 4
jmp 0x50bc48
mov dx, word [ebx]
mov word [ebp - 2], dx
add ebx, 2
cmp dword [edi], 0
je 0x50be5c
movzx ecx, word [ebp - 2]
push ecx
push dword [ebx]
movzx eax, word [ebp - 2]
push eax
push esi
push 1
push dword [edi + 4]
call sub.kernel32.dll_CompareStringA
cmp eax, 2
je 0x50be74
xor eax, eax
jmp 0x50be8e
movzx edx, word [ebp - 2]
push edx
push dword [ebx]
push esi
call fcn.004e8640
add esp, 0xc
test eax, eax
je 0x50be74
xor eax, eax
jmp 0x50be8e
add ebx, 4
movzx edx, word [ebp - 2]
add esi, edx
jmp 0x50bc48
push 0x51af02
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4