Function at 0x402239
Capabilities:
Print debug messages

Disassembly:
jmp 0x4e3bc0
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x5552b0]
mov eax, dword [eax + 0x5524]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
xor ebp, ebp
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
call fcn.00401974
call fcn.00402671
mov edx, dword [0x5552b0]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 0x552dc4
mov eax, dword [edx + 0x5524]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
shl ecx, 5
add ecx, eax
lea ebx, [edx + ecx*4 + 0x698]
mov ecx, dword [esp + 0x130]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
mov ecx, dword [edx + 0x5d0]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [ebx + 0x4e8]
mov dword [esp + 0x10], eax
mov eax, 0xfffffb44
sub eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
jmp 0x4e3c7d
mov edx, dword [0x5552b0]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
lea esi, [eax + edx + 0x698]
mov edx, dword [ecx]
push edx
call fcn.00403210
mov edi, eax
mov eax, dword [esi + 0x70]
add esp, 4
cmp eax, 1
jne 0x4e3ff1
mov eax, dword [0x5552b0]
cmp ebp, dword [eax + 0x5524]
je 0x4e3ff1
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x348], ebp
mov eax, dword [ecx - 0xc0]
cmp eax, 1
je 0x4e3e76
jle 0x4e3ff1
cmp eax, 4
jg 0x4e3ff1
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 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, [edx + eax*4]
mov eax, dword [edx + eax*4 + 0x7c]
cmp eax, ebp
jne 0x4e3ff1
cmp dword [ecx + 0x80], 0x4a
jle 0x4e3ff1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [ecx + 0x84], ebp
mov eax, dword [eax + ecx]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ecx + 0x4c]
cmp eax, 0x3c
jle 0x4e3ff1
mov eax, dword [ebx + 0x348]
push 1
mov eax, dword [ebx + eax*4 + 0x428]
push eax
push ebp
call fcn.004024af
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x20], eax
jne 0x4e3ff1
mov ecx, dword [0x5552b0]
mov dword [ecx + 0x5af8], ebp
call fcn.00402897
call fcn.004036e8
mov eax, dword [0x546aa4]
test eax, eax
je 0x4e3ff1
mov eax, dword [ebx + 0x10]
push edi
cmp eax, 1
push esi
jne 0x4e3db4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
lea edx, [esp + 0x34]
push eax
push ecx
push ebx
push str._s__s__is_reinforcing_in__s._Alalliance_with__s__s__compromised
push edx
jmp 0x4e3dcb
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [esp + 0x34]
push ecx
push edx
push ebx
push str._s__s__is_not_reinforcing_in__s._May_compromise_alliance_with__s__s_
push eax
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e3fb8
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 0x4e3de9
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 + 0x2c]
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 0x4e3fe1
mov eax, dword [ecx]
mov ecx, dword [0x5552b0]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov edx, dword [ecx + 0x5d4]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
mov ecx, dword [ecx + 0x24]
push eax
push ecx
call fcn.00402fea
add esp, 8
cmp eax, 1
jne 0x4e3ff1
push eax
push eax
push ebp
call fcn.004024af
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x20], eax
jne 0x4e3ff1
call fcn.00402897
call fcn.004036e8
mov eax, dword [0x546aa4]
test eax, eax
je 0x4e3ff1
mov eax, dword [ebx + 0x10]
push edi
cmp eax, 1
push esi
jne 0x4e3ef9
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
lea edx, [esp + 0x34]
push eax
push ecx
push ebx
push str._s__s__is_reinforcing_in__s._Alalliance_with__s__s__compromised
push edx
jmp 0x4e3f10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [esp + 0x34]
push ecx
push edx
push ebx
push 0x53b0a4
push eax
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e3fb8
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 0x4e3f2e
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 + 0x2c]
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 0x4e3fe1
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x2c]
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 + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, 0x10c
inc ebp
add edi, 4
add esi, 0x784
cmp eax, 0x553624
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jl 0x4e3c77
call fcn.00402897
call fcn.004036e8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret