Function at 0x517a64
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x517a6d
mov eax, dword [ebp - 4]
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x202c], ecx
mov dword [ebp - 0x2030], ecx
mov dword [ebp - 0x2028], ecx
mov dword [ebp - 0x2024], ecx
mov dword [ebp - 0x2020], ecx
mov dword [ebp - 0x201c], ecx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x517d38
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2014]
mov ecx, ebx
mov edx, 0x517d54
call fcn.004067b4
mov eax, dword [ebp - 0x2014]
call fcn.0040646c
push eax
call fcn.004091b0
mov eax, ebx
call fcn.0040d9d0
test al, al
je 0x517d12
xor eax, eax
push ebp
push 0x517b51
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, ebx
mov dl, 1
mov eax, dword [0x421c6c]
call fcn.00427d0c
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x2000
sbb edx, 0
push edx
push eax
mov eax, ebx
call fcn.00427850
lea edx, [ebp - 0x200d]
mov ecx, 0x2000
mov eax, ebx
call fcn.00427a84
mov eax, ebx
call fcn.00404364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x517b8d
mov eax, 0x2000
call fcn.0040e418
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x200d]
mov ecx, 0x2000
mov eax, dword [ebp - 0xc]
call fcn.004084ec
lea eax, [ebp - 0x201c]
mov edx, dword [ebp - 0xc]
call fcn.0040658c
mov edx, dword [ebp - 0x201c]
mov eax, 0x517da4
call fcn.00406d4c
mov ebx, eax
cmp ebx, 1
jl 0x517d12
push 0x517dac
call fcn.004091b0
lea eax, [ebp - 0x2020]
mov edx, dword [ebp - 0xc]
call fcn.0040658c
mov edx, dword [ebp - 0x2020]
mov eax, 0x517dc4
call fcn.00406d4c
mov esi, eax
cmp esi, 1
jl 0x517d12
add ebx, 3
push 0x517dcc
call fcn.004091b0
cmp esi, ebx
jl 0x517d12
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2024]
mov edx, dword [ebp - 0xc]
call fcn.0040658c
mov eax, dword [ebp - 0x2024]
mov ecx, esi
sub ecx, ebx
mov edx, ebx
call fcn.00406a34
lea eax, [ebp - 0x2028]
mov ecx, dword [ebp - 4]
mov edx, 0x517de4
call fcn.004067b4
mov eax, dword [ebp - 0x2028]
call fcn.0040646c
push eax
call fcn.004091b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x517c71
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x517d12
mov dl, 1
mov eax, dword [0x421a14]
call fcn.004277f8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x517d0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x2030]
mov eax, dword [0x5268c8]
mov eax, dword [eax]
call fcn.00480c10
mov eax, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
call fcn.0040dcc8
lea eax, [ebp - 0x202c]
mov edx, 0x517e00
call fcn.00406734
mov eax, dword [ebp - 0x202c]
push eax
call fcn.00416f68
mov ecx, eax
mov eax, dword [ebp - 8]
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517d12
mov eax, dword [ebp - 8]
call fcn.00404364
mov eax, dword [ebp - 0xc]
call fcn.0040e458
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517d3f
lea eax, [ebp - 0x2030]
mov edx, 8
call fcn.004063d8
lea eax, [ebp - 4]
call fcn.004063d0
ret