Function at 0x517afc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x517b05
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 0x517dd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2014]
mov ecx, ebx
mov edx, 0x517dec
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 0x517daa
xor eax, eax
push ebp
push 0x517be9
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 0x517c25
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, 0x517e3c
call fcn.00406d4c
mov ebx, eax
cmp ebx, 1
jl 0x517daa
push 0x517e44
call fcn.004091b0
lea eax, [ebp - 0x2020]
mov edx, dword [ebp - 0xc]
call fcn.0040658c
mov edx, dword [ebp - 0x2020]
mov eax, 0x517e5c
call fcn.00406d4c
mov esi, eax
cmp esi, 1
jl 0x517daa
add ebx, 3
push 0x517e64
call fcn.004091b0
cmp esi, ebx
jl 0x517daa
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, 0x517e7c
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 0x517d09
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x517daa
mov dl, 1
mov eax, dword [0x421a14]
call fcn.004277f8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x517da3
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 [0x5278c8]
mov eax, dword [eax]
call fcn.00480c18
mov eax, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
call fcn.0040dcc8
lea eax, [ebp - 0x202c]
mov edx, 0x517e98
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 0x517daa
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 0x517dd7
lea eax, [ebp - 0x2030]
mov edx, 8
call fcn.004063d8
lea eax, [ebp - 4]
call fcn.004063d0
ret