Function at 0x4a4054
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4a405c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a4811
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a3eb4
test al, al
jne 0x4a4093
mov eax, dword [ebp - 8]
call fcn.00404328
jmp 0x4a47eb
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3db4
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3db4
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3e04
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3e04
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0xc]
call fcn.00408f9c
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, 0x4a4828
call fcn.00404634
mov eax, dword [ebp - 0x64]
call fcn.004047e8
push eax
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x10]
call fcn.00408f9c
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x4a4838
call fcn.00404634
mov eax, dword [ebp - 0x6c]
call fcn.004047e8
push eax
call sub.kernel32.dll_OutputDebugStringA
xor esi, esi
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x33c]
sub al, 1
jb 0x4a414d
je 0x4a46c6
dec al
je 0x4a456c
jmp 0x4a47eb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x4a436b
mov eax, dword [ebp - 4]
call fcn.004b7d28
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
add esi, eax
mov ebx, dword [ebp - 0xc]
inc ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x74]
call fcn.004045e8
cmp eax, dword [ebp - 0x18]
jge 0x4a4214
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b7b5c
test eax, eax
je 0x4a4214
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b7b5c
cmp byte [eax + 0x20], 0
je 0x4a4214
mov dword [ebp - 0x44], 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
push eax
mov edx, dword [ebp - 0x10]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a420d
inc ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x7c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.00408c50
mov eax, dword [ebp - 0x78]
call fcn.004045e8
add esi, eax
inc dword [ebp - 0x44]
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a41e1
mov eax, dword [ebp - 0x44]
add eax, eax
add esi, eax
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404974
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004047e8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.00408c50
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.004a3f94
mov ebx, dword [ebp - 0xc]
inc ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x88]
call fcn.004045e8
cmp eax, dword [ebp - 0x18]
jge 0x4a435e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b7b5c
test eax, eax
je 0x4a435e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b7b5c
cmp byte [eax + 0x20], 0
je 0x4a435e
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, 0x4a4848
call fcn.004a3f94
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
push eax
mov edx, dword [ebp - 0x10]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a435e
inc ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00408c50
mov eax, dword [ebp - 0x8c]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a4848
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a4305
mov eax, dword [ebp - 0x48]
call fcn.004034f8
jmp 0x4a47eb
mov eax, dword [ebp - 4]
call fcn.004b7d28
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0xc]
inc ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408c50
mov eax, dword [ebp - 0x94]
call fcn.004045e8
add esi, eax
inc dword [ebp - 0x44]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
push eax
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a4418
inc ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00408c50
mov eax, dword [ebp - 0x9c]
call fcn.004045e8
add esi, eax
inc dword [ebp - 0x44]
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a43e0
mov eax, dword [ebp - 0x18]
dec eax
add esi, eax
mov eax, dword [ebp - 0x44]
add eax, eax
add esi, eax
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404974
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004047e8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
inc ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.00408c50
mov eax, dword [ebp - 0xa4]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 0x14]
call fcn.004a3f94
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a4848
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ba360
push eax
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a4519
inc ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00408c50
mov eax, dword [ebp - 0xac]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a4848
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a44c0
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
mov edx, eax
dec edx
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.00408c50
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x18]
dec ecx
mov edx, 1
call fcn.004a3f94
mov eax, dword [ebp - 0x48]
call fcn.004034f8
jmp 0x4a47eb
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3db4
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.004b5c90
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004a3e04
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.004b5c90
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jle 0x4a45c9
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004919b8
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x14]
add esi, 2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
inc eax
imul esi, eax
mov eax, esi
add eax, eax
mov esi, eax
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404974
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004047e8
mov dword [ebp - 0x2c], eax
xor esi, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
sub ebx, eax
jl 0x4a46b4
inc ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004b5d80
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004b5d80
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004b26ac
push ebp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004a3ff4
pop ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x20]
add esi, edx
sub esi, eax
add esi, 2
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a4848
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
inc dword [ebp - 0x30]
dec ebx
jne 0x4a460d
mov edx, esi
sub edx, 2
mov eax, dword [ebp - 8]
call fcn.00404974
jmp 0x4a47eb
mov eax, dword [ebp - 4]
call fcn.004b7d28
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
dec eax
push eax
mov edx, dword [ebp - 0x10]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a4733
inc ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00408c50
mov eax, dword [ebp - 0xbc]
call fcn.004045e8
add eax, 2
add esi, eax
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a46fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jne 0x4a4749
sub esi, 2
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404974
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004047e8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 4]
call fcn.004ba360
dec eax
push eax
mov edx, dword [ebp - 0x10]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.004ba360
mov ebx, eax
sub ebx, 2
pop eax
sub ebx, eax
jl 0x4a47e3
inc ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call fcn.00408c50
mov eax, dword [ebp - 0xc4]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a4848
mov ecx, 0x7fffffff
mov edx, 1
call fcn.004a3f94
inc dword [ebp - 0x1c]
dec ebx
jne 0x4a478a
mov eax, dword [ebp - 0x48]
call fcn.004034f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4818
lea eax, [ebp - 0xc8]
mov edx, 0x1a
call fcn.0040434c
lea eax, [ebp - 0x28]
call fcn.00404328
ret