Function at 0x40348b
Capabilities:
Print debug messages

Disassembly:
jmp 0x4e2650
sub esp, 0x104
mov edx, dword [esp + 0x10c]
mov ecx, dword [0x5552b0]
push ebx
push ebp
lea eax, [edx + edx*2]
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [eax + eax*4]
lea edi, [esp + 0x15]
shl eax, 5
add eax, edx
mov byte [esp + 0x14], 0
lea ebx, [ecx + eax*4 + 0x698]
lea eax, [esi + esi*2]
lea eax, [eax + eax*4]
shl eax, 5
add eax, esi
lea ebp, [ecx + eax*4 + 0x698]
mov ecx, 0x3f
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
shl ecx, 5
add ecx, edx
stosw word es:[edi], ax
lea edx, [edx + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
mov ecx, esi
mov edi, eax
shl ecx, 5
add ecx, esi
lea edx, [esi + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
add esp, 8
mov dword [esp + 0x10], eax
call fcn.00402671
mov dword [ebx + 0x348], esi
mov esi, dword [ebx + esi*4 + 0x4c8]
mov ecx, dword [0x5552b0]
push esi
call fcn.004011b3
mov ecx, dword [ebx + 0x348]
mov esi, eax
mov eax, dword [ebx + ecx*4 + 0x4e8]
mov ecx, dword [0x5552b0]
push eax
call fcn.004011b3
mov ecx, dword [esp + 0x118]
cmp ecx, 1
jne 0x4e27f5
mov ecx, dword [0x546aa4]
test ecx, ecx
je 0x4e28ec
mov edx, dword [esp + 0x10]
push eax
push esi
push edx
push ebp
push 0
push edi
push ebx
lea eax, [esp + 0x30]
push str._s__s__is_proposing_a_level__d_alliance_with__s__s__involving__s_and__s
push eax
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x24
cmp eax, 9
jl 0x4e28be
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 0x4e2768
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 + 0x14]
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 0x4e28e7
mov eax, dword [0x546aa4]
test eax, eax
je 0x4e28ec
mov edx, dword [esp + 0x10]
dec ecx
push edx
push ebp
push ecx
push edi
push ebx
lea eax, [esp + 0x28]
push str._s__s__is_proposing_a_level__d_alliance_with__s__s_
push eax
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e28be
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 0x4e2834
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 + 0x14]
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 0x4e28e7
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x14]
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 + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004036e8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret