Function at 0x4021f3
Capabilities:
Print debug messages

Disassembly:
jmp 0x4dff30
sub esp, 0x124
mov eax, dword [0x5552b0]
push ebx
push ebp
push esi
mov eax, dword [eax + 0x5524]
push edi
mov ecx, eax
mov dword [esp + 0x24], 0
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x144]
add esp, 4
cmp eax, 0xffffffff
je 0x4e0320
mov ebp, dword [esp + 0x144]
cmp ebp, 0xffffffff
je 0x4e0320
call fcn.00402671
mov esi, dword [esp + 0x13c]
mov edx, dword [0x5552b0]
mov ebx, dword [esp + 0x138]
lea eax, [esi + esi*2]
lea ecx, [eax + eax*4]
shl ecx, 5
add ecx, esi
lea eax, [edx + ecx*4 + 0x698]
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x28], eax
lea ecx, [ecx + ecx*4]
mov dword [eax + 0x348], ebx
shl ecx, 5
add ecx, ebx
lea ecx, [edx + ecx*4 + 0x698]
mov dword [esp + 0x2c], ecx
mov dword [ecx + 0x348], esi
mov edx, dword [eax + 0x348]
mov edi, dword [eax + 0x64]
mov eax, dword [eax + edx*4 + 0x368]
mov dword [esp + 0x1c], eax
call fcn.0050f2e2
cdq
idiv edi
cmp edx, dword [esp + 0x1c]
jge 0x4e0320
mov eax, dword [esp + 0x140]
cmp ebp, eax
je 0x4e0037
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*4]
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5d4]
lea edi, [ecx + edx*4]
mov dword [esp + 0x20], edi
jmp 0x4e0074
mov ecx, dword [esp + 0x148]
test ecx, ecx
jle 0x4e0320
push ebx
push eax
call fcn.00401cee
add esp, 8
cmp eax, 0xffffffff
je 0x4e0320
mov ecx, dword [0x5552b0]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x5d4]
lea eax, [edx + eax*4]
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [edi + 0x84], esi
mov ecx, dword [edi + esi*4 + 0x2c]
mov dword [edi + 0x84], ebx
mov edx, dword [edi + ebx*4 + 0x2c]
push ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
call fcn.00401c62
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x144]
push ebx
push eax
call fcn.00401465
lea ecx, [ebp + ebp*8]
add esp, 0xc
lea edx, [ebp + ecx*4]
mov ecx, dword [0x5552b0]
mov ecx, dword [ecx + 0x5d4]
mov dword [ecx + edx*4 + 0x84], esi
lea ebp, [ecx + edx*4]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x1c], edx
mov esi, dword [ebp + esi*4 + 0x2c]
mov dword [ebp + 0x84], ebx
mov ecx, dword [ebp + ebx*4 + 0x2c]
mov dword [esp + 0x18], ecx
jle 0x4e0320
cmp ecx, esi
jle 0x4e0320
add eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp + 0x30]
fild dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [0x5296b8]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x4e0320
mov edx, dword [esp + 0x10]
add edx, esi
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [0x529714]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4e0320
mov ecx, dword [0x5552b0]
push 0x63
call fcn.004025ae
mov ecx, dword [0x5552b0]
push 0x63
mov esi, eax
call fcn.00403297
mov ecx, dword [0x5552b0]
push ebx
mov dword [esp + 0x14], eax
call fcn.004025ae
mov ecx, dword [0x5552b0]
push ebx
mov dword [esp + 0x1c], eax
call fcn.00403297
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jne 0x4e019d
cmp dword [esp + 0x10], eax
je 0x4e01ab
cmp ecx, 0xa
jg 0x4e01ab
cmp eax, 4
jle 0x4e0320
mov eax, dword [0x546aa4]
test eax, eax
je 0x4e02b8
mov eax, dword [ebp]
mov ecx, dword [edi]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
push str._s_is_considering_a_level_0_alliance_with__s__involving__s_and__s
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x18
cmp eax, 9
jl 0x4e027b
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 0x4e01f1
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 + 0x34]
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
jmp 0x4e02a4
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x34]
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]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x20]
mov edx, dword [0x5552b0]
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [edx + 0x5a24], eax
mov eax, dword [0x5552b0]
mov dword [eax + 0x5a3c], ebx
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 4]
mov ecx, dword [eax + 0x348]
mov dword [eax + ecx*4 + 0x4c8], edx
mov ecx, dword [eax + 0x348]
mov edx, dword [ebp + 4]
mov dword [eax + ecx*4 + 0x4e8], edx
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 4]
mov ecx, dword [eax + 0x348]
mov dword [eax + ecx*4 + 0x4c8], edx
mov ecx, dword [eax + 0x348]
mov edx, dword [edi + 4]
mov dword [eax + ecx*4 + 0x4e8], edx
call fcn.004036e8
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret