Function at 0x401e1a
Capabilities:
Print debug messages

Disassembly:
jmp 0x4cdec0
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edx, dword [0x5552b0]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
stosw word es:[edi], ax
mov eax, dword [edx + 0x5524]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, eax
lea eax, [edx + ecx*4 + 0x698]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x4cdf23
mov edx, dword [0x5552b0]
mov ebp, dword [edx + 0x5d0]
push ebx
lea ecx, [esp + 0x3c]
push str.Score_is:__d_n
push ecx
add ebp, eax
mov dword [esp + 0x1c], ebx
call fcn.0050fb85
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x44]
mov esi, 1
cmp eax, esi
jne 0x4ce4a1
mov ecx, dword [0x5552b0]
mov eax, dword [ebp + 0x48]
cmp eax, dword [ecx + 0x5524]
jne 0x4ce4a1
cmp dword [ebp + 0xf4], ebx
jne 0x4ce4a1
mov eax, dword [0x5537f0]
mov edi, dword [ebp + 0x4c]
cmp eax, esi
jne 0x4cdf90
sub edi, dword [ebp + 0x108]
cmp edi, 3
jle 0x4ce230
mov edx, dword [esp + 0x24]
push edx
call fcn.00403ae9
add esp, 4
test eax, eax
je 0x4cdfe1
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
add eax, edx
cmp edi, eax
jle 0x4ce230
mov ecx, dword [esp + 0x34]
mov eax, 0x88888889
mov ecx, dword [ecx + 0x60]
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 3]
cmp edi, ecx
jle 0x4ce230
cmp dword [ebp + 0xb0], esi
jne 0x4ce02e
mov ecx, dword [0x5552b0]
lea edx, [ebp + 0xb4]
push edx
call fcn.004027e8
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5d4]
lea eax, [ecx + edx*4]
mov ecx, dword [ebp + 0x7c]
mov edx, edi
sub edx, ecx
mov ecx, dword [ebp + 0x54]
sub edx, ecx
mov ecx, dword [eax + 8]
sub edx, ecx
cmp edx, 9
jge 0x4ce08c
mov dword [esp + 0x10], ebx
jmp 0x4ce230
mov eax, dword [ebp + 8]
cmp eax, esi
mov eax, dword [ebp + 0x54]
jne 0x4ce045
cmp eax, esi
jle 0x4ce08c
mov dword [esp + 0x10], ebx
jmp 0x4ce230
cmp eax, esi
jle 0x4ce052
mov ecx, dword [ebp + 0x7c]
add ecx, eax
cmp ecx, edi
jge 0x4ce025
mov eax, dword [ebp + 0x24]
mov ecx, dword [0x5552b0]
push eax
call fcn.004027e8
mov ecx, dword [0x5552b0]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x5d4]
mov ecx, dword [edx + eax*4 + 0x50]
lea eax, [edx + eax*4]
cmp ecx, esi
jne 0x4ce08c
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x88]
dec ecx
cmp edx, ecx
je 0x4ce025
mov eax, dword [ebp + 0x24]
mov ecx, dword [0x5552b0]
push eax
call fcn.004027e8
mov ecx, dword [0x5552b0]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x5d4]
lea ecx, [esp + 0x20]
lea ebx, [edx + eax*4]
mov eax, dword [edx + eax*4 + 0x50]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ebx + 0xc]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00401889
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x64
mov dword [esp + 0x18], eax
jge 0x4ce13e
mov edx, dword [0x5552b0]
lea ecx, [esp + 0x20]
mov eax, dword [edx + 0x5524]
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + eax*4 + 0x2c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ebx + 0x4c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00401889
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x41
jge 0x4ce13e
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0xd0]
push 0
push eax
call fcn.004023f6
add esp, 8
cmp eax, 0xffffffff
jle 0x4ce40f
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea edx, [ecx + ecx*2]
mov ecx, dword [0x5552b0]
mov eax, dword [ecx + 0x5d0]
lea esi, [eax + edx*4]
mov eax, dword [eax + edx*4 + 0x4c]
cmp eax, 1
je 0x4ce18d
cmp eax, 2
jne 0x4ce22b
cmp edi, 5
jle 0x4ce22b
mov ecx, dword [ecx + 0x5524]
mov eax, dword [esi + 0xd0]
push ecx
push 0
push eax
call fcn.00402fef
add esp, 0xc
test eax, eax
jne 0x4ce312
mov eax, 0x66666667
imul dword [esp + 0x18]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
push edx
call fcn.00401889
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0x24]
push eax
push ecx
call fcn.00402fea
add esp, 0x10
test eax, eax
jne 0x4ce2ee
mov ecx, dword [ebx + 0x6c]
mov eax, 1
cmp ecx, eax
jne 0x4ce2ee
cmp dword [ebp + 8], eax
jne 0x4ce2d2
mov edx, dword [ebp + 0x7c]
mov eax, edi
sub eax, edx
cmp eax, 0xa
jle 0x4ce22b
sub edi, dword [esi + 0x4c]
lea ecx, [edi + edi*4]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0xd0]
mov dword [esp + 0x1c], edx
mov esi, 1
cmp dword [0x5537f8], esi
jne 0x4ce41c
mov ebx, dword [0x5552b0]
mov ecx, dword [ebx + 0x5524]
mov eax, dword [ebx + 0x5abc]
cmp ecx, eax
jne 0x4ce41c
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
test eax, eax
jle 0x4ce420
lea eax, [edi + edi*2]
shl eax, 3
sub eax, edi
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x5d0]
lea edx, [eax + edx*4]
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
shl eax, 5
add eax, ecx
lea eax, [ebx + eax*4 + 0x698]
mov dword [eax + 0x654], edi
mov ecx, dword [eax + edi*4 + 0x690]
cmp ecx, esi
jne 0x4ce2aa
mov ecx, dword [eax + 0x40]
mov ebx, dword [esp + 0x10]
add ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [edx + 0x48]
mov dword [eax + 0x654], ecx
cmp dword [eax + ecx*4 + 0x658], esi
jne 0x4ce420
mov edx, dword [eax + 0x40]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
jmp 0x4ce420
sub edi, dword [esi + 0x4c]
lea eax, [edi + edi*4]
shl eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xd0]
mov dword [esp + 0x1c], eax
jmp 0x4ce22b
mov edx, dword [ebp + 0x7c]
mov eax, dword [esp + 0x20]
mov ecx, edi
sub ecx, edx
cmp ecx, eax
jle 0x4ce22b
sub edi, dword [esi + 0x4c]
lea eax, [edi + edi*4]
shl eax, 1
mov dword [esp + 0x10], eax
jmp 0x4ce221
mov eax, dword [0x546aa4]
test eax, eax
je 0x4ce22b
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push eax
push str.Refusing_a_97_pop_at__s._Would_violate_alliance
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0xc
cmp eax, 9
jl 0x4ce3dc
xor edx, edx
mov dword [0x563ad0], edx
mov edi, dword [edx*4 + 0x563aac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x563ad0]
inc edx
cmp edx, 8
mov dword [0x563ad0], edx
jl 0x4ce34a
mov edi, 0x549b78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x563ad0]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [eax*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4ce22b
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4ce22b
mov dword [esp + 0x10], 0
jmp 0x4ce230
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x4ce49f
mov ecx, dword [0x5552b0]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xd0]
mov dword [esp + 0x2c], esi
mov dword [ecx + 0x55e0], eax
mov edx, dword [0x5552b0]
mov dword [edx + 0x55e4], edi
mov eax, dword [0x5537f0]
cmp eax, esi
jne 0x4ce49f
mov ebp, dword [ebp + 0xd0]
mov edx, dword [0x5552b0]
xor ebx, ebx
xor eax, eax
cmp ebp, 0x63
je 0x4ce497
cmp edi, 0x63
je 0x4ce497
mov ecx, dword [edx + 0x5d0]
lea eax, [ebp + ebp*2]
shl eax, 3
sub eax, ebp
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4 + 0x108]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x4c]
sub eax, esi
dec eax
mov dword [edx + 0x5ac0], eax
jmp 0x4ce4a1
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
add eax, 0x114
inc esi
cmp eax, 0x33c0
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
jl 0x4cdf1d
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret