Function at 0x40164a
Capabilities:
Print debug messages

Disassembly:
jmp 0x4e1610
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x124]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
mov ebp, dword [0x5552b0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + esi*2]
mov edi, dword [esp + 0x12c]
mov edx, esi
lea eax, [eax + eax*4]
shl eax, 5
add eax, esi
shl edx, 5
lea ebx, [ebp + eax*4 + 0x698]
lea eax, [edi + edi*2]
add edx, esi
lea ecx, [eax + eax*4]
shl ecx, 5
add ecx, edi
lea eax, [esi + edx*2]
lea ebp, [ebp + ecx*4 + 0x698]
mov ecx, dword [eax*4 + 0x552dc4]
push ecx
call fcn.00403210
mov edx, edi
mov dword [esp + 0x18], eax
shl edx, 5
add edx, edi
lea eax, [edi + edx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0x552dc4]
push eax
call fcn.00403210
mov ecx, dword [ebx + 0x39c]
mov edx, dword [ebp + 0x39c]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x546aa4]
add esp, 8
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x4e17cd
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x12c]
push ebp
dec eax
lea edx, [esp + 0x28]
push eax
push ecx
push ebx
push str._s__s__has_accepted_a_level__d_alliance_with__s__s_
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e1786
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 0x4e16fc
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 + 0x20]
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 0x4e17af
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x20]
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 + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x124]
mov edi, dword [esp + 0x12c]
mov eax, dword [ebp + 0x39c]
mov ecx, dword [esp + 0x128]
mov dword [ebx + 0x348], eax
push 4
mov dword [ebx + eax*4 + 0x428], ecx
mov edx, dword [ebx + 0x348]
mov eax, 2
mov dword [ebx + edx*4 + 0x408], eax
mov ebx, dword [ebx + 0x39c]
mov dword [ebp + 0x348], ebx
mov dword [ebp + ebx*4 + 0x428], ecx
mov ecx, dword [ebp + 0x348]
mov dword [ebp + ecx*4 + 0x408], eax
mov edx, dword [ebp + 0x348]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + edx*4 + 0x488]
lea ebp, [ebp + edx*4 + 0x488]
inc eax
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call fcn.00401429
mov edx, dword [esp + 0x134]
lea eax, [edi + esi*8]
lea esi, [esi + edi*8]
add esp, 0xc
lea eax, [eax + eax*4]
lea ecx, [esi + esi*4]
mov esi, dword [esp + 0x18]
shl eax, 2
mov edi, dword [esi + 0x552dcc]
shl ecx, 2
mov dword [eax + 0x54a8c4], edx
mov dword [ecx + 0x54a8c4], edx
xor edx, edx
cmp edi, edx
pop edi
pop esi
pop ebp
pop ebx
je 0x4e1883
mov edx, 1
mov dword [eax + 0x54a8cc], edx
mov dword [ecx + 0x54a8cc], edx
add esp, 0x110
ret