Function at 0x54ec14
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x54ec1d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.00405d54
mov eax, dword [ebp + 0x20]
call fcn.00405d54
mov eax, dword [ebp + 0x1c]
call fcn.00405d54
mov eax, dword [ebp + 0x18]
call fcn.00405d54
mov eax, dword [ebp + 0xc]
call fcn.00405d54
xor eax, eax
push ebp
push 0x54f548
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 0x20]
call fcn.0040c760
cmp dword [ebp - 0x38], 0
je 0x54f508
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x34]
call fcn.00405dc0
lea ecx, [ebp - 8]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00537260
cmp dword [ebp - 8], 0
jne 0x54ed09
mov eax, dword [ebp - 0xc]
mov edx, 0x54f564
call fcn.00406520
jne 0x54ecc8
lea eax, [ebp - 8]
push eax
mov ecx, 0x54f5a4
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00536f44
jmp 0x54eceb
mov eax, dword [ebp - 0xc]
mov edx, 0x54f5c4
call fcn.00406520
jne 0x54eceb
lea eax, [ebp - 8]
push eax
mov ecx, 0x54f60c
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00536f44
mov edx, dword [ebp - 0xc]
mov eax, 0x54f634
call fcn.00406840
test eax, eax
jle 0x54ed09
lea eax, [ebp - 8]
mov edx, 0x54f680
call fcn.00405dc0
cmp dword [ebp - 8], 0
je 0x54f508
lea ecx, [ebp - 0x18]
mov edx, 0x54f6dc
mov eax, dword [ebp - 8]
call fcn.00537654
cmp dword [ebp - 0x18], 0
je 0x54edf3
cmp dword [ebp + 0xc], 0
je 0x54edf3
mov edx, dword [ebp - 0x18]
mov eax, 0x54f700
call fcn.00406840
mov ebx, eax
test ebx, ebx
jle 0x54edc8
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.00406528
lea eax, [ebp - 0x18]
mov ecx, ebx
mov edx, 1
call fcn.004065f8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00405dc0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
call fcn.00414a04
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
call fcn.00406250
mov eax, dword [ebp - 0x14]
call fcn.0040d648
test al, al
jne 0x54ee03
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 0xc]
call fcn.00414a04
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.00406250
mov eax, dword [ebp - 0x14]
call fcn.0040d648
test al, al
je 0x54f508
jmp 0x54ee03
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 0xc]
call fcn.00414a04
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.00406250
mov eax, dword [ebp - 0x14]
call fcn.0040d648
test al, al
je 0x54f508
jmp 0x54ee03
cmp dword [ebp - 0x18], 0
je 0x54ee03
cmp dword [ebp + 0xc], 0
je 0x54f508
cmp dword [ebp - 8], 0
je 0x54f508
mov edx, dword [0x4e2cf4]
mov eax, 0x95
call fcn.00406f2c
mov ebx, eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x3cc], 0
jne 0x54ee40
mov dl, 1
mov eax, dword [0x421684]
call fcn.00403cf4
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x3cc], eax
push 0x54f710
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
cmp dword [ebp - 0x10], 0
jne 0x54ee72
xor esi, esi
push 0x54f710
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00537b0c
lea ecx, [ebp - 0x48]
mov edx, 0x54f72c
mov eax, dword [ebp - 8]
call fcn.00537654
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.0040d194
cmp eax, 1
jne 0x54eeae
lea ecx, [ebp - 0x4c]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00538924
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
call fcn.00405dc0
jmp 0x54eef0
cmp eax, 2
jne 0x54eed0
lea ecx, [ebp - 0x50]
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.00538924
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.00405dc0
jmp 0x54eef0
cmp eax, 3
jne 0x54eef0
lea ecx, [ebp - 0x54]
mov edx, 3
mov eax, dword [ebp - 0x10]
call fcn.00538924
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x10]
call fcn.00405dc0
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00405d6c
lea edx, [ebp - 0x58]
mov eax, dword [ebp + 0x1c]
call fcn.0040c760
cmp dword [ebp - 0x58], 0
jne 0x54ef5b
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x54f754
call fcn.00406250
mov eax, dword [ebp - 0x5c]
call fcn.00405df8
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 0x14]
call fcn.0040d648
test al, al
je 0x54ef4e
lea eax, [ebp + 0x1c]
push eax
mov ecx, 0x54f780
mov edx, 3
mov eax, dword [ebp - 0x14]
call fcn.004e0a94
jmp 0x54ef5b
lea eax, [ebp + 0x1c]
mov edx, 0x54f79c
call fcn.00405dc0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.004df3ac
test al, al
je 0x54f0ae
mov byte [ebx + 0x14], 1
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00405d6c
push 0x54f7ac
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x3e]
call fcn.00405d6c
push 0
push 0
push 0x54f7c8
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov eax, dword [ebp - 0x64]
call fcn.0040d210
mov dword [ebx + 0x46], eax
mov dword [ebx + 0x4a], edx
push 0x54f7ec
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x42]
call fcn.00405d6c
push 0
push 0
push 0x54f808
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov eax, dword [ebp - 0x6c]
call fcn.0040d210
mov dword [ebx + 0x36], eax
mov dword [ebx + 0x3a], edx
push 0x54f82c
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x70]
lea eax, [ebx + 0x2e]
call fcn.00405d6c
push 0x54f844
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x74]
lea eax, [ebx + 0x32]
call fcn.00405d6c
mov eax, dword [ebx + 0x46]
mov dword [ebx + 0x4e], eax
mov eax, dword [ebx + 0x4a]
mov dword [ebx + 0x52], eax
mov byte [ebx + 0x2d], 0
lea eax, [ebx + 0x56]
xor edx, edx
call fcn.00405d6c
push 0x54f85c
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0x5a]
call fcn.00405d6c
mov byte [ebx + 0x6a], 0
push 0x54f884
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 0x6b]
call fcn.00405d6c
jmp 0x54f13a
mov byte [ebx + 0x14], 0
lea eax, [ebx + 0x10]
mov edx, 0x54f89c
call fcn.00405d6c
lea eax, [ebx + 0x3e]
xor edx, edx
call fcn.00405d6c
mov dword [ebx + 0x46], 0
mov dword [ebx + 0x4a], 0
lea eax, [ebx + 0x42]
xor edx, edx
call fcn.00405d6c
mov dword [ebx + 0x36], 0
mov dword [ebx + 0x3a], 0
lea eax, [ebx + 0x2e]
xor edx, edx
call fcn.00405d6c
lea eax, [ebx + 0x32]
xor edx, edx
call fcn.00405d6c
mov dword [ebx + 0x4e], 0
mov dword [ebx + 0x52], 0
mov byte [ebx + 0x2d], 0
lea eax, [ebx + 0x56]
xor edx, edx
call fcn.00405d6c
lea eax, [ebx + 0x5a]
mov edx, 0x54f89c
call fcn.00405d6c
mov byte [ebx + 0x6a], 0
lea eax, [ebx + 0x6b]
xor edx, edx
call fcn.00405d6c
lea ecx, [ebp - 0x80]
mov edx, 0x54f8ac
mov eax, dword [ebp - 8]
call fcn.00537654
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x6f]
call fcn.00405d6c
mov eax, ebx
mov edx, dword [ebp - 0x34]
call fcn.00405d6c
lea eax, [ebx + 0xc]
mov edx, dword [ebp + 0x1c]
call fcn.00405d6c
lea ecx, [ebp - 0x84]
mov edx, 0x54f8d0
mov eax, dword [ebp - 8]
call fcn.00537654
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 4]
call fcn.00405d6c
lea eax, [ebx + 8]
mov edx, dword [ebp - 4]
call fcn.00405d6c
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 8]
call fcn.00405d6c
mov dword [ebx + 0x19], esi
mov dword [ebx + 0x1d], edi
lea ecx, [ebp - 0x88]
mov edx, 0x54f8f0
mov eax, dword [ebp - 8]
call fcn.00537830
mov edx, dword [ebp - 0x88]
lea eax, [ebx + 0x25]
call fcn.00405d6c
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x21], eax
lea eax, [ebx + 0x29]
mov edx, dword [ebp + 0xc]
call fcn.00405d6c
push 0x54f908
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov edx, dword [ebp - 0x8c]
lea eax, [ebx + 0x5e]
call fcn.00405d6c
mov byte [ebx + 0x88], 0
lea eax, [ebx + 0x73]
mov edx, dword [ebp - 0x14]
call fcn.00405d6c
mov byte [ebx + 0x85], 0
mov byte [ebx + 0x88], 0
lea eax, [ebx + 0x7d]
mov edx, 0x54f89c
call fcn.00405d6c
xor eax, eax
mov dword [ebx + 0x81], eax
mov byte [ebx + 0x77], 0
lea eax, [ebx + 0x8d]
xor edx, edx
call fcn.00405d6c
lea eax, [ebx + 0x91]
xor edx, edx
call fcn.00405d6c
lea eax, [ebx + 0x62]
mov edx, 0x54f89c
call fcn.00405d6c
lea eax, [ebx + 0x66]
mov edx, 0x54f89c
call fcn.00405d6c
lea eax, [ebx + 0x78]
mov edx, 0x54f89c
call fcn.00405d6c
mov byte [ebx + 0x7c], 0
cmp byte [ebx + 0x14], 0
je 0x54f2a1
cmp dword [ebx + 0x3e], 0
jne 0x54f2a1
cmp dword [ebx + 0x2e], 0
jne 0x54f2a1
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
push 0x54f924
lea eax, [ebp - 0x90]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov eax, dword [ebp - 0x90]
mov edx, 0x3f
call fcn.0040d194
mov edx, dword [ebp - 0x30]
test dword [edx + 0x3d0], eax
jne 0x54f2e6
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00550b2c
dec eax
je 0x54f328
lea eax, [ebp - 0x94]
mov ecx, 0x54f940
mov edx, dword [ebx]
call fcn.00406250
mov eax, dword [ebp - 0x94]
call fcn.00405df8
push eax
call sub.kernel32.dll_OutputDebugStringW
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
lea ecx, [ebp - 0x24]
mov edx, 0x54f97c
mov eax, dword [ebp - 8]
call fcn.00537654
mov eax, dword [ebp - 0x24]
mov edx, 0x54f9a8
call fcn.00406520
jne 0x54f368
mov edx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x6f]
call fcn.00406840
test eax, eax
jg 0x54f368
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov eax, dword [ebx + 0x15]
mov edx, 0x54f9b8
call fcn.00406520
jne 0x54f3ae
mov eax, dword [0x55e2dc]
cmp dword [eax], 6
jne 0x54f3ae
mov eax, dword [0x55e6e0]
cmp dword [eax], 1
jne 0x54f3ae
mov edx, dword [ebx + 0xc]
mov eax, 0x54fa14
call fcn.005398c8
test al, al
je 0x54f3ae
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov eax, dword [ebx + 0x15]
mov edx, 0x54fa28
call fcn.00406520
jne 0x54f403
lea edx, [ebp - 0x98]
mov eax, dword [ebx]
call fcn.0040c0d8
mov eax, dword [ebp - 0x98]
push eax
lea edx, [ebp - 0x9c]
mov eax, 0x54fa84
call fcn.0040c0d8
mov eax, dword [ebp - 0x9c]
pop edx
call fcn.00406840
test eax, eax
jle 0x54f403
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov eax, dword [ebx + 0x15]
mov edx, 0x54fa9c
call fcn.00406520
jne 0x54f435
mov edx, dword [ebx + 0xc]
mov eax, 0x54faf8
call fcn.004df3ac
test al, al
je 0x54f435
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov edx, dword [0x55e664]
mov ecx, 7
mov eax, dword [ebx]
call fcn.0040a7c4
test al, al
je 0x54f45d
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
lea ecx, [ebp - 0xa0]
mov edx, 0x54fb18
mov eax, dword [ebp - 8]
call fcn.00537654
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x28]
call fcn.0040c760
cmp dword [ebp - 0x28], 0
je 0x54f4a8
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x3e0]
mov eax, dword [ebp - 0x28]
call fcn.004df3ac
test al, al
je 0x54f4a8
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
push 0x54fb40
lea eax, [ebp - 0xa4]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00537b0c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x2c]
call fcn.0040c760
cmp dword [ebp - 0x2c], 0
je 0x54f4f8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3d0]
mov edx, dword [ebp - 0x2c]
call fcn.00539b80
test al, al
jne 0x54f4f8
mov edx, dword [0x4e2cf4]
mov eax, ebx
call fcn.00406f40
jmp 0x54f508
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3cc]
mov edx, ebx
call fcn.00424248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f54f
lea eax, [ebp - 0xa4]
mov edx, 0x1c
call fcn.00405d64
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00405d64
lea eax, [ebp + 0xc]
call fcn.00405d5c
lea eax, [ebp + 0x18]
mov edx, 3
call fcn.00405d64
ret