Function at 0x401e9c
Capabilities:
Print debug messages

Disassembly:
jmp 0x4e29c0
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov ebx, dword [esp + 0x140]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
shl eax, 5
add eax, ebx
lea ecx, [ebx + eax*2]
mov edx, dword [ecx*4 + 0x552dc4]
push edx
call fcn.00403210
mov ebp, dword [esp + 0x148]
mov dword [esp + 0x30], eax
mov eax, ebp
shl eax, 5
add eax, ebp
lea ecx, [ebp + eax*2]
mov edx, dword [ecx*4 + 0x552dc4]
push edx
call fcn.00403210
lea esi, [ebp + ebp*2]
mov dword [esp + 0x2c], eax
lea eax, [ebx + ebx*2]
add esp, 8
lea esi, [esi + esi*4]
lea ecx, [eax + eax*4]
mov eax, dword [0x5552b0]
shl esi, 5
shl ecx, 5
add esi, ebp
add ecx, ebx
shl esi, 2
lea edi, [eax + ecx*4 + 0x698]
lea edx, [esi + eax + 0x698]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
call fcn.00402671
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x348], ebp
xor edx, edx
mov dword [eax + 0x348], ebx
mov ecx, dword [0x5552b0]
xor eax, eax
lea esi, [esi + ecx + 0x698]
lea ecx, [esi + 0x508]
cmp eax, ebp
je 0x4e2a9f
mov dword [esi + 0x348], eax
cmp dword [ecx], 0
jle 0x4e2a9f
inc edx
inc eax
add ecx, 4
cmp eax, 8
jl 0x4e2a8f
mov ecx, dword [0x5552b0]
push 0x63
mov eax, dword [ecx + 0x58bc]
sub eax, edx
sub eax, 2
mov dword [esp + 0x24], eax
call fcn.00403297
mov ecx, dword [0x5552b0]
push ebx
mov dword [esp + 0x38], eax
call fcn.00403297
mov edx, dword [0x5552b0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 6
mov edx, dword [edx + 0x5d4]
lea ecx, [edx + 0x7c]
mov eax, ecx
cmp dword [eax + 4], 0x64
jne 0x4e2b07
cmp dword [eax], ebp
jne 0x4e2b07
inc dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add eax, 0x94
dec esi
mov dword [esp + 0x18], esi
jne 0x4e2af9
xor esi, esi
mov eax, 6
mov dword [esp + 0x18], esi
cmp dword [ecx + 4], 0x64
jne 0x4e2b2d
cmp dword [ecx], ebx
jne 0x4e2b2d
inc esi
add ecx, 0x94
dec eax
jne 0x4e2b22
mov eax, dword [0x546aa4]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x13c]
cmp esi, 1
jne 0x4e2c46
test eax, eax
je 0x4e2d4b
mov ecx, dword [edi + 0x348]
mov eax, dword [edi + ecx*4 + 0x4e8]
lea esi, [eax + eax*8]
lea eax, [eax + esi*4]
mov eax, dword [edx + eax*4]
push eax
mov eax, dword [edi + ecx*4 + 0x4c8]
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + eax*4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push 0
push ecx
push edi
lea edx, [esp + 0x54]
push str._s__s__is_proposing_a_level__d_alliance_with__s__s__involving__s_and__s
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x24
cmp eax, 9
jl 0x4e2d12
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 0x4e2bb9
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
jmp 0x4e2d3b
test eax, eax
je 0x4e2d4b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push edx
dec esi
push eax
push esi
push ecx
push edi
lea edx, [esp + 0x4c]
push str._s__s__is_proposing_a_level__d_alliance_with__s__s_
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e2d12
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 0x4e2c88
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
jmp 0x4e2d3b
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]
mov esi, dword [esp + 0x13c]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x14], eax
call fcn.0050f2e2
cdq
mov ecx, 0x50
idiv ecx
cmp edx, dword [esp + 0x14]
jge 0x4e301b
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x348]
mov eax, dword [eax + edx*4 + 0x368]
mov dword [esp + 0x14], eax
call fcn.0050f2e2
cdq
mov ecx, 0x50
idiv ecx
cmp edx, dword [esp + 0x14]
jge 0x4e301b
mov edx, dword [0x5552b0]
mov eax, 0x55555556
mov ecx, dword [edx + 0x58bc]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x20]
cmp eax, edx
jl 0x4e2fcd
mov ecx, dword [esp + 0x1c]
lea eax, [esi - 1]
cmp eax, 3
mov dword [ecx + 0x348], ebx
ja case.default.0x4e2de0
jmp dword [eax*4 + 0x4e313c]
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5524]
mov dword [eax + 0x5524], ebp
mov dword [esp + 0x18], ecx
call fcn.004012b7
mov edx, dword [edi + 0x348]
push 0xffffffffffffffff
mov edi, dword [edi + edx*4 + 0x4e8]
call fcn.00402649
add esp, 4
cmp edi, eax
jne 0x4e2e35
mov eax, dword [0x5552b0]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x5524], ecx
call fcn.004012b7
push ebx
push esi
push ebp
jmp 0x4e2eb0
mov edx, dword [0x5552b0]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x5524], eax
call fcn.004012b7
push ebx
push esi
push ebp
call fcn.00401d1b
add esp, 0xc
mov dword [esp + 0x10], 3
call fcn.004036e8
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4e2ed9
mov edx, dword [esp + 0x30]
test edx, edx
jle 0x4e3125
cmp eax, dword [esp + 0x18]
jl 0x4e2e95
push ebx
push esi
push ebp
jmp 0x4e2eb0
mov ecx, dword [ecx + 0x64]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x20], ecx
call fcn.0050f2e2
cdq
idiv dword [esp + 0x20]
push ebx
push esi
push ebp
cmp edx, edi
jge 0x4e2e4d
call fcn.0040164a
add esp, 0xc
mov dword [esp + 0x10], 2
call fcn.004036e8
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov eax, dword [0x5552b0]
mov edi, dword [eax + 0x5524]
mov dword [eax + 0x5524], ebp
call fcn.004012b7
push 0xffffffffffffffff
call fcn.00402649
add esp, 4
cmp eax, 0xffffffff
je 0x4e2f3e
mov ecx, dword [0x5552b0]
lea edx, [eax + eax*8]
push ebx
push esi
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x5d4]
push ebp
lea ecx, [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 [ecx + 0xc]
cmp eax, 0x4a
jle 0x4e2f41
call fcn.0040164a
add esp, 0xc
mov dword [esp + 0x10], 2
jmp 0x4e2f51
push ebx
push esi
push ebp
call fcn.00401d1b
add esp, 0xc
mov dword [esp + 0x10], 3
mov eax, dword [0x5552b0]
mov dword [eax + 0x5524], edi
call fcn.004012b7
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push ebp
call fcn.00402e6e
push ebx
mov dword [esp + 0x28], eax
call fcn.00402e6e
mov ecx, dword [esp + 0x28]
add esp, 8
cmp ecx, eax
jg 0x4e2ff4
mov edi, dword [edi + 0x60]
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jge 0x4e2ff4
jmp 0x4e2fcd
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp eax, ecx
je 0x4e2ff4
mov edi, dword [edi + 0x60]
mov eax, 0x66666667
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jg 0x4e2ff4
push ebx
push esi
push ebp
call fcn.00401d1b
add esp, 0xc
mov dword [esp + 0x10], 3
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push ebx
push esi
push ebp
call fcn.0040164a
add esp, 0xc
mov dword [esp + 0x10], 2
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov eax, dword [0x546aa4]
test eax, eax
je 0x4e3125
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ecx
dec esi
push edi
push esi
push edx
push eax
lea ecx, [esp + 0x4c]
push str._s__s__has_rejected_level__d_alliance_with__s__s_
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e30ec
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 0x4e3062
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
jmp 0x4e3115
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]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret