Function at 0x65de10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x750e91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], edi
call fcn.004049b0
push 0x1f4
push 0x3e8
lea ecx, [esp + 0x38]
mov dword [esp + 0xe4], 0
call fcn.00404ae0
push str.kingdoms
push 0
lea ecx, [esp + 0x38]
call fcn.004053c0
lea ebx, [edi + 0x1a8]
mov esi, eax
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x2c], ebx
call dword [eax + 0xc]
push eax
push str.count
push esi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx ecx, word [edi + 0xc4]
push ecx
push str.last
push esi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx edx, byte [edi + 0x1f5]
push edx
push str.devlevel
push esi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
test eax, eax
mov dword [esp + 0x14], eax
je 0x65e194
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [edx + 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x65e189
movzx eax, word [esi + 0x20]
push 0xa
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.00720ef9
add esp, 0xc
push eax
push 0
lea ecx, [esp + 0x38]
call fcn.004053c0
mov ecx, esi
mov edi, eax
call fcn.005d0d40
push eax
push str.name
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
movzx edx, word [esi + 0x194]
push edx
push str.capital
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx eax, byte [esi + 0x124]
push eax
push str.color1
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx ecx, byte [esi + 0x125]
push ecx
push str.color2
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx edx, byte [esi + 0x127]
push edx
push str.ornament
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx eax, byte [esi + 0x128]
push eax
push str.polit_color
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx ecx, byte [esi + 0x129]
push ecx
push str.human
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx edx, byte [esi + 0x12a]
push edx
push str.team
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov eax, dword [esi + 0x18c]
push eax
push str.fame
push edi
lea ecx, [esp + 0x3c]
call fcn.00405710
mov ecx, dword [esi + 0x198]
push ecx
push str.king_h
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov edx, dword [esi + 0x19c]
push edx
push str.king_id
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov eax, dword [esi + 0x1a0]
push eax
push str.heir_id
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov ecx, dword [esi + 0x1a4]
push ecx
push str.reputation
push edi
lea ecx, [esp + 0x3c]
call fcn.00405710
mov eax, dword [esi + 0x2c8]
test eax, eax
je 0x65e056
cmp word [eax], 0
je 0x65e056
push eax
push str.introsound
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
mov eax, dword [esi + 0x18]
test eax, eax
je 0x65e073
cmp word [eax], 0
je 0x65e073
push eax
push str.title
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x65e093
cmp word [eax], 0
je 0x65e093
push eax
push str.king_title
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x65e0b3
cmp word [eax], 0
je 0x65e0b3
push eax
push str.queen_title
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
mov edx, dword [esi + 0x294]
cmp edx, 4
je 0x65e0e1
mov ecx, dword [esi + 0x298]
sub esp, 8
mov eax, esp
mov dword [esp + 0x28], esp
push 0x7b1fb4
mov dword [eax + 4], ecx
push edi
lea ecx, [esp + 0x40]
mov dword [eax], edx
call fcn.00405850
lea ecx, [esp + 0x18]
call fcn.00412d40
mov edx, dword [esi + 0x24]
add esi, 0x24
mov ecx, esi
mov byte [esp + 0xdc], 1
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x65e156
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov bx, word [eax]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x65e130
cmp word [eax], 0
je 0x65e130
push 0x77fbbc
lea ecx, [esp + 0x1c]
call fcn.00413410
sub esp, 8
movzx edx, bx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00413ef0
lea ecx, [esp + 0x20]
call fcn.00413460
cmp dword [esp + 0x10], 0
jne 0x65e105
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x65e174
cmp word [eax], 0
je 0x65e174
push eax
push str.realms
push edi
lea ecx, [esp + 0x3c]
call fcn.00405670
lea ecx, [esp + 0x18]
mov byte [esp + 0xdc], 0
call fcn.00412de0
mov edi, dword [esp + 0x7c]
cmp dword [esp + 0x14], 0
jne 0x65ded5
push str.relations
push 0
lea ecx, [esp + 0x38]
call fcn.004053c0
lea ebx, [edi + 0xc8]
mov esi, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
push eax
push str.count
push esi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx ecx, word [edi + 0xc4]
push ecx
push str.last
push esi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x65e299
lea ecx, [ecx]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov esi, dword [eax]
test esi, esi
je 0x65e28e
mov edx, dword [esi + 0xc]
movzx eax, word [edx + 0x20]
mov ecx, dword [esi + 8]
movzx edx, word [ecx + 0x20]
push eax
push edx
lea eax, [esp + 0x98]
push 0x77fbb0
push eax
call fcn.0071f52c
add esp, 0x10
lea ecx, [esp + 0x90]
push ecx
push 0
lea ecx, [esp + 0x38]
call fcn.004053c0
mov edx, dword [esi + 0x10]
push edx
mov edi, eax
push str.state
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
mov eax, dword [esi + 0x1c]
push eax
push str.relation
push edi
lea ecx, [esp + 0x3c]
call fcn.00405710
movzx ecx, byte [esi + 0x2c]
push ecx
push str.trade
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
movzx edx, word [esi + 0x36]
push edx
push str.borders
push edi
lea ecx, [esp + 0x3c]
call fcn.00405800
cmp dword [esp + 0x10], 0
jne 0x65e1f0
push 0xffffffffffffffff
push 0x7ec438
lea ecx, [esp + 0x2c]
call fcn.00413870
mov eax, dword [ebp + 8]
test eax, eax
mov byte [esp + 0xdc], 2
je 0x65e2cb
push eax
lea eax, [esp + 0x28]
push str.map_kingdoms__s.ini
push eax
call fcn.00413950
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402de0
lea ecx, [esp + 0x24]
mov byte [esp + 0xdc], 0
call fcn.00412de0
lea ecx, [esp + 0x30]
mov dword [esp + 0xdc], 0xffffffff
call fcn.004049f0
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4