Function at 0x523258
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x523260
push ecx
push ebx
push esi
push edi
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x523525
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x15], 0
xor edx, edx
push ebp
push 0x5234ec
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
call fcn.0052322c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041513c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x523544
call fcn.0040629c
mov dl, 1
mov eax, dword [0x422568]
call fcn.00427dc8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.0040cf58
test al, al
je 0x5234da
xor eax, eax
push ebp
push 0x523390
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x523386
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040688c
test eax, eax
jle 0x523382
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, 0x523588
call fcn.0040688c
test eax, eax
jne 0x523382
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x523598
call fcn.0040629c
mov eax, dword [ebp - 0x28]
call fcn.00405e6c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov byte [ebp - 0x15], 1
cmp byte [ebp - 9], 0
je 0x523386
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x523307
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5233a1
cmp dword [ebp - 0x10], 2
jne 0x5233b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523502
xor edx, edx
push ebp
push 0x5234af
push dword fs:[edx]
mov dword fs:[edx], esp
movzx eax, byte [ebp - 0x15]
and al, byte [ebp - 9]
je 0x523410
mov eax, dword [ebp - 4]
call fcn.0040d0d8
test eax, 1
jle 0x5233e8
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040d0ec
mov eax, dword [ebp - 4]
call fcn.0040d0d8
test eax, 2
jle 0x523405
and eax, 0xfffffffd
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040d0ec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5234a5
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0040688c
test eax, eax
jle 0x5234a1
lea ecx, [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, 0x523588
call fcn.0040688c
test eax, eax
jne 0x5234a1
lea ecx, [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x5235c8
call fcn.0040629c
mov eax, dword [ebp - 0x38]
call fcn.00405e6c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov dword [ebp - 0x10], 3
inc ebx
dec esi
jne 0x523435
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5234cc
movzx eax, byte [ebp - 0x15]
and al, byte [ebp - 9]
je 0x5234da
call fcn.005235f0
mov eax, dword [ebp - 0x14]
call fcn.00403ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523502
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52352c
lea eax, [ebp - 0x3c]
mov edx, 9
call fcn.00405dd8
lea eax, [ebp - 4]
call fcn.00405dd0
ret