Function at 0x401b0e
Capabilities:
Print debug messages

Disassembly:
jmp 0x4e1ee0
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov ebx, dword [esp + 0x148]
mov byte [esp + 0x40], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
mov dword [esp + 0x10], esi
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 + 0x150]
mov dword [esp + 0x18], 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
mov dword [esp + 0x28], esi
lea esi, [ebp + ebp*2]
mov dword [esp + 0x30], eax
lea eax, [ebx + ebx*2]
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 edx, [eax + ecx*4 + 0x698]
lea edi, [esi + eax + 0x698]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call fcn.00402671
mov eax, dword [esp + 0x3c]
mov dword [eax + 0x348], ebp
mov dword [edi + 0x348], ebx
mov ecx, dword [0x5552b0]
mov dword [ecx + 0x5524], ebp
call fcn.004012b7
push 2
call fcn.00402347
mov ecx, dword [0x5552b0]
add esp, 0xc
push 0x63
call fcn.00403297
mov ecx, dword [0x5552b0]
push ebx
mov dword [esp + 0x40], eax
call fcn.00403297
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
call fcn.00402649
mov edx, dword [0x5552b0]
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4e201d
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x5d4]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0xc]
cmp eax, 8
jge 0x4e200d
sub eax, dword [ecx + 0x50]
cmp eax, 1
jne 0x4e201d
jmp 0x4e2015
sub eax, dword [ecx + 0x50]
cmp eax, 2
jg 0x4e201d
mov dword [esp + 0x20], 1
mov dword [edx + 0x5524], ebx
call fcn.004012b7
push 2
call fcn.00402347
push 0xffffffffffffffff
call fcn.00402649
mov eax, dword [0x5552b0]
add esp, 8
xor edx, edx
lea esi, [esi + eax + 0x698]
xor eax, eax
lea ecx, [esi + 0x508]
cmp eax, ebp
je 0x4e205f
mov dword [esi + 0x348], eax
cmp dword [ecx], 0
jle 0x4e205f
inc edx
inc eax
add ecx, 4
cmp eax, 8
jl 0x4e204f
mov eax, dword [0x5552b0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 6
mov esi, dword [eax + 0x58bc]
mov eax, dword [eax + 0x5d4]
sub esi, edx
sub esi, 2
lea ecx, [eax + 0x7c]
mov dword [esp + 0x38], esi
mov eax, ecx
cmp dword [eax + 4], 0x64
jne 0x4e20a5
cmp dword [eax], ebp
jne 0x4e20a5
inc dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add eax, 0x94
dec edx
mov dword [esp + 0x1c], edx
jne 0x4e2097
xor edx, edx
mov eax, ecx
mov dword [esp + 0x1c], edx
mov ecx, 6
cmp dword [eax + 4], 0x64
jne 0x4e20cd
cmp dword [eax], ebx
jne 0x4e20cd
inc edx
add eax, 0x94
dec ecx
jne 0x4e20c2
mov eax, dword [0x546aa4]
mov dword [esp + 0x1c], edx
test eax, eax
je 0x4e21e7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
dec edx
push edi
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push str._s__s__has_proposed_a_level__d_alliance_with__s__s_
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4e21b1
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 0x4e2127
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 + 0x40]
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 0x4e21da
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x40]
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 + 0x38]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x5469ac]
cmp dword [edx + 0x70], 1
jle 0x4e223c
mov eax, dword [edi + 0x34]
mov dword [esp + 0x14], eax
call fcn.0050f2e2
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [esp + 0x14]
jge 0x4e223c
mov edx, dword [edi + 0x348]
mov eax, dword [edi + edx*4 + 0x368]
mov dword [esp + 0x14], eax
call fcn.0050f2e2
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [esp + 0x14]
jl 0x4e22a5
mov edx, dword [0x5469ac]
cmp dword [edx + 0x70], 1
jne 0x4e24a6
mov eax, dword [edi + 0x34]
mov dword [esp + 0x18], eax
call fcn.0050f2e2
mov edx, dword [esp + 0x18]
mov ecx, 0xc8
sub ecx, edx
cdq
idiv ecx
cmp edx, dword [esp + 0x18]
jge 0x4e24a6
mov eax, dword [edi + 0x348]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x14], edx
mov ecx, dword [edi + eax*4 + 0x368]
mov dword [esp + 0x28], ecx
call fcn.0050f2e2
mov edx, dword [esp + 0x14]
mov ecx, 0xc8
sub ecx, edx
cdq
idiv ecx
cmp edx, dword [esp + 0x28]
jge 0x4e24a6
mov edx, dword [0x5552b0]
mov eax, dword [edx + 0x58bc]
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x4e2492
mov eax, dword [edi + 0x348]
mov esi, dword [edi + eax*4 + 0x368]
call fcn.0050f2e2
cdq
mov ecx, 0x50
idiv ecx
cmp edx, esi
jge 0x4e2464
mov eax, dword [esp + 0x144]
sub eax, 2
je 0x4e23cb
dec eax
je 0x4e236d
dec eax
jne 0x4e24b8
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x4e234f
mov ecx, dword [0x5552b0]
lea edx, [edi + edi*8]
lea eax, [edi + edx*4]
mov edx, dword [ecx + 0x5d4]
lea esi, [edx + eax*4]
mov eax, dword [edx + eax*4 + 0xc]
test eax, eax
jle 0x4e234f
push edi
push ebx
call fcn.004037dd
push edi
push ebp
mov dword [esp + 0x34], eax
call fcn.004037dd
lea eax, [eax + eax*4]
add esp, 0x10
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esi + 0xc]
cmp eax, 0x32
jl 0x4e234f
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4e2365
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
je 0x4e2360
cmp eax, 4
jle 0x4e2365
push ebx
push 4
jmp 0x4e23a6
push ebx
push 4
jmp 0x4e246d
push ebp
call fcn.00402e6e
push ebx
mov esi, eax
call fcn.00402e6e
add esp, 8
cmp esi, eax
jg 0x4e23a3
cmp esi, 4
jle 0x4e239b
mov edi, dword [edi + 0x34]
call fcn.0050f2e2
cdq
mov ecx, 0x50
idiv ecx
cmp edx, edi
jl 0x4e23a3
push ebx
push 3
jmp 0x4e246d
push ebx
push 3
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, 0x130
ret
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jg 0x4e23de
cmp dword [esp + 0x20], 1
jne 0x4e24b8
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4e24b8
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jge 0x4e2406
cmp dword [esp + 0x20], 1
jne 0x4e24b8
inc ecx
cmp ecx, eax
jl 0x4e24b8
mov edx, dword [edi + 0x348]
mov esi, dword [edi + 0x34]
mov edi, dword [edi + edx*4 + 0x368]
call fcn.0050f2e2
mov ecx, 0x64
cdq
sub ecx, esi
idiv ecx
mov esi, edx
call fcn.0050f2e2
cdq
idiv edi
cmp esi, edx
jge 0x4e24b8
push ebx
push 2
push ebp
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, 0x130
ret
mov edx, dword [esp + 0x144]
push ebx
push edx
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, 0x130
ret
mov eax, dword [esp + 0x144]
push ebx
push eax
push ebp
call fcn.00401d1b
jmp 0x4e23ac
mov ecx, dword [esp + 0x144]
push ebx
push ecx
push ebp
call fcn.00401d1b
add esp, 0xc
call fcn.004036e8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret