Function at 0x40226b
Capabilities:
Print debug messages

Disassembly:
jmp 0x4df2e0
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x60]
xor esi, esi
push 5
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.0040269e
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
push 8
push ecx
call fcn.0040269e
push 0xffffffffffffffff
lea edx, [esp + 0xac]
push 8
push edx
call fcn.0040269e
push 0xffffffffffffffff
lea eax, [esp + 0x98]
push 8
push eax
call fcn.0040269e
mov ebx, dword [esp + 0x1e4]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
mov ecx, ebx
shl ecx, 5
add ecx, ebx
stosw word es:[edi], ax
lea edx, [ebx + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
add esp, 0x34
mov dword [esp + 0x38], eax
call fcn.00402671
lea eax, [ebx + ebx*2]
mov dword [esp + 0x1c], esi
lea ecx, [eax + eax*4]
mov eax, dword [0x5552b0]
shl ecx, 5
add ecx, ebx
xor edi, edi
lea ecx, [eax + ecx*4 + 0x698]
mov dword [esp + 0x14], ecx
lea ebp, [ecx + 0x764]
mov dword [esp + 0x24], ebp
jmp 0x4df3be
mov ebx, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x14]
cmp esi, ebx
je 0x4df490
mov dword [ecx + 0x348], esi
mov eax, dword [0x5552b0]
mov ebx, 1
cmp dword [edi + eax + 0x708], ebx
jne 0x4df498
cmp dword [ebp], ebx
jne 0x4df3fe
mov ecx, dword [esp + 0x18]
mov dword [esp + esi*4 + 0x3c], 5
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x4df498
mov edx, dword [esp + 0x1b4]
push edx
push esi
call fcn.00401451
add esp, 8
cmp eax, ebx
jne 0x4df481
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5a24]
mov dword [esp + esi*4 + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x5a24]
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + edx*4 + 0x5c]
mov edx, dword [esp + edx*4 + 0x5c]
inc edx
mov dword [ecx], edx
mov ecx, dword [eax + 0x5a24]
cmp ecx, ebx
jne 0x4df471
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x348]
mov edx, dword [ecx + edx*4 + 0x4c8]
mov dword [esp + esi*4 + 0x90], edx
mov edx, dword [ecx + 0x348]
mov ecx, dword [ecx + edx*4 + 0x4e8]
mov dword [esp + esi*4 + 0x70], ecx
jmp 0x4df498
or ecx, 0xffffffff
mov dword [esp + esi*4 + 0x90], ecx
mov dword [esp + esi*4 + 0x70], ecx
jmp 0x4df498
mov eax, dword [0x5552b0]
mov dword [esp + esi*4 + 0x3c], 0
jmp 0x4df498
mov dword [esp + esi*4 + 0x3c], 0
add edi, 0x784
inc esi
add ebp, 4
cmp edi, 0x3c20
jl 0x4df3b3
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4df54e
mov ebp, dword [esp + 0x24]
xor edi, edi
xor ebx, ebx
mov ecx, dword [eax + 0x5524]
cmp edi, ecx
je 0x4df538
lea esi, [ebx + eax + 0x698]
mov eax, dword [ebx + eax + 0x6a8]
mov dword [esi + 0x348], ecx
cmp eax, 1
jne 0x4df533
mov edx, dword [esp + 0x14]
mov dword [edx + 0x348], edi
mov eax, dword [ebp]
cmp eax, 1
jne 0x4df533
mov eax, dword [esp + 0x1b4]
push 5
push eax
push edi
mov ecx, 0x54a798
mov dword [ebp], 0
call fcn.00403201
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [eax + 0x348]
mov dword [eax + edx*4 + 0x428], ecx
mov eax, dword [esi + 0x348]
mov dword [esi + eax*4 + 0x428], ecx
mov eax, dword [0x5552b0]
add ebx, 0x784
inc edi
add ebp, 4
cmp ebx, 0x3c20
jl 0x4df4c2
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4df905
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov esi, dword [eax + 0x64]
mov edi, dword [eax + 0x34]
call fcn.0050f2e2
cdq
idiv esi
cmp edx, edi
jge 0x4df582
mov dword [esp + 0x24], 1
jmp 0x4df5a2
mov ecx, dword [0x5552b0]
mov eax, 0x55555556
mov ecx, dword [ecx + 0x58bc]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x60]
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], edx
mov esi, dword [0x5552b0]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x2c], ebx
mov ecx, dword [esi + 0x5524]
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
shl eax, 5
add eax, ecx
lea esi, [esi + eax*4 + 0x698]
xor eax, eax
lea edx, [esi + 0x508]
cmp eax, ecx
je 0x4df5f1
mov dword [esi + 0x348], eax
mov ebp, dword [edx]
cmp ebp, ebx
jle 0x4df5f1
inc edi
inc eax
add edx, 4
cmp eax, 8
jl 0x4df5e0
mov ecx, dword [esp + 0x28]
cmp dword [ecx], ebx
jle 0x4df80a
mov edx, dword [0x5552b0]
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 0x58bc]
sub eax, edi
sub eax, 2
cmp eax, ecx
jl 0x4df80a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
lea edi, [edx + 0x368]
mov ecx, dword [0x5552b0]
mov edx, dword [ecx + 0x5524]
lea eax, [ebx + ecx + 0x698]
cmp ebp, edx
je 0x4df75c
mov edx, dword [eax + 0x70]
mov ecx, 1
cmp edx, ecx
jne 0x4df75c
mov esi, dword [eax + 0x10]
xor edx, edx
cmp esi, edx
je 0x4df675
cmp dword [esp + 0x18], ecx
je 0x4df75c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp dword [esi], ecx
jne 0x4df75c
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x3a0]
mov dword [esi + 0x348], ebp
cmp ecx, edx
jne 0x4df6d0
cmp dword [eax + 0x3a0], edx
jne 0x4df6c7
cmp dword [eax + 0x3a4], edx
jne 0x4df6c7
mov eax, dword [esi + 0x3a4]
mov esi, dword [edi]
cmp eax, 1
jne 0x4df734
call fcn.0050f2e2
cdq
lea ecx, [esi*4]
idiv ecx
jmp 0x4df73c
cmp dword [eax + 0x3a4], 1
jmp 0x4df6fe
mov esi, 1
cmp ecx, esi
jne 0x4df702
cmp dword [eax + 0x3a0], edx
jne 0x4df6f8
cmp dword [eax + 0x3a4], edx
jne 0x4df6f8
mov esi, dword [edi]
call fcn.0050f2e2
cdq
lea ecx, [esi + esi*2]
idiv ecx
jmp 0x4df73c
cmp dword [eax + 0x3a4], esi
je 0x4df73c
jmp 0x4df732
cmp ecx, 2
jne 0x4df740
cmp dword [eax + 0x3a0], edx
jne 0x4df72a
cmp dword [eax + 0x3a4], edx
jne 0x4df72a
mov esi, dword [edi]
call fcn.0050f2e2
cdq
lea ecx, [esi*4]
idiv ecx
jmp 0x4df73c
cmp dword [eax + 0x3a4], esi
je 0x4df73c
mov esi, dword [edi]
call fcn.0050f2e2
cdq
idiv esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x4df75c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
add ebx, 0x784
inc ebp
add edx, 4
add edi, 4
cmp ebx, 0x3c20
mov dword [esp + 0x1c], edx
jl 0x4df637
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4df80a
mov eax, dword [0x5552b0]
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [eax + 0x5a3c]
mov dword [ecx + 0x348], eax
mov dword [ecx + eax*4 + 0x468], 0
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [ecx + ecx*2]
lea edx, [eax + eax*4]
mov eax, dword [0x5552b0]
shl edx, 5
add edx, ecx
cmp dword [eax + edx*4 + 0x6a8], ebx
jne 0x4df7f1
mov esi, dword [esp + 0x1b8]
mov edi, dword [esp + 0x34]
push esi
push edi
call fcn.0040348b
add esp, 0xc
mov dword [esi*8 + 0x563a58], esi
mov dword [esi*8 + 0x563a5c], edi
jmp 0x4df806
mov ecx, dword [esp + 0x1b8]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00401e9c
add esp, 0xc
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
jle 0x4df5b2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4dfa13
mov eax, dword [0x546aa4]
test eax, eax
je 0x4dfa13
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xb8]
push str.No_proposal_of_alliance_has_been_sent_by__s__s_
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x10
cmp eax, 9
jl 0x4df9d4
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 0x4df875
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 + 0xb0]
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 0x4dfa00
mov eax, dword [0x546aa4]
test eax, eax
je 0x4dfa13
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0xb8]
push str.No_proposal_of_alliance_has_been_sent_by__s__s_
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x10
cmp eax, 9
jl 0x4df9d4
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 0x4df947
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 + 0xb0]
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 0x4dfa00
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0xb0]
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 + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004036e8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret