Function at 0x6ca600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7587fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x309c
call fcn.0071f5d0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00412d40
xor ebx, ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x30b4], ebx
call fcn.00412d40
lea ecx, [esp + 0x48]
mov byte [esp + 0x30b4], 1
call fcn.00412d40
lea ecx, [esp + 0x50]
mov byte [esp + 0x30b4], 2
call fcn.00412d40
lea ecx, [esp + 0x38]
mov byte [esp + 0x30b4], 3
call fcn.00412d40
lea ecx, [esp + 0x14]
mov byte [esp + 0x30b4], 4
call fcn.004179a0
mov ax, word [esi + 0x50c]
mov byte [esp + 0x30b4], 5
mov word [esp + 0x94], bx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
push eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov word [esp + 0x7c], bx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00659140
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x6cb087
mov eax, dword [esi + 0x514]
cmp eax, 4
mov dword [esi + 0x24], 9
mov word [esp + 0xa8], bx
mov word [esp + 0x8a8], bx
je 0x6ca9d6
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x68]
push ecx
push eax
mov ecx, edi
call fcn.005f7ea0
mov edx, dword [0x914298]
mov eax, dword [edx + 0xdcf8]
push eax
lea eax, [esp + 0x44]
push 0x77fb8c
push eax
call fcn.00413950
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x58]
push 0x77fb8c
push edx
call fcn.00413950
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
push 0x77fb8c
push ecx
call fcn.00413950
mov eax, dword [esp + 0x64]
add esp, 0x24
cmp eax, ebx
jne 0x6ca789
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.REALMSPERC
lea ecx, [esp + 0x28]
call fcn.00415a70
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x6ca7a8
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.REALMSNUM
lea ecx, [esp + 0x28]
call fcn.00415a70
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x6ca7c7
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.REALMSCONV
lea ecx, [esp + 0x28]
call fcn.00415a70
cmp dword [edi + 0x294], 3
push ebx
jne 0x6ca82b
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x2c]
mov ecx, dword [0x894420]
ja 0x6ca80f
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.commonrelig_convert_pagan_religion_realms
call fcn.00414e70
push eax
lea ecx, [esp + 0x10b4]
push ecx
jmp 0x6ca877
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.commonrelig_convert_pagan_religion_realms_disabled
call fcn.00414e70
push eax
lea eax, [esp + 0x10b4]
push eax
jmp 0x6ca877
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x2c]
ja 0x6ca857
mov ecx, dword [0x894420]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.commonrelig_convert_religion_realms
call fcn.00414e70
push eax
lea eax, [esp + 0x10b4]
push eax
jmp 0x6ca877
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x894420]
push ebx
push ebx
push str.commonrelig_convert_religion_realms_disabled
call fcn.00414e70
push eax
lea edx, [esp + 0x10b4]
push edx
call fcn.00415f60
add esp, 0x10
push ebx
push ebx
push ebx
lea eax, [esp + 0x10b4]
push eax
push str.REALMSREQ
lea ecx, [esp + 0x28]
call fcn.00415a70
mov edx, dword [esi + 0x514]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0067b3c0
add esp, 8
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x64], esp
mov word [eax + 0x18], bx
mov ecx, dword [edi + 0x38]
mov dword [eax], ecx
mov edx, dword [edi + 0x3c]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x40]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x44]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x48]
mov dword [eax + 0x10], ecx
mov edx, dword [edi + 0x4c]
mov dword [eax + 0x14], edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.006c5b40
add esp, 0x3c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30b8], 6
call fcn.004133c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30b4], 5
call fcn.00412de0
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x6ca92a
mov eax, 0x77f5d4
push ebx
push ebx
push 1
push eax
push str.COST
lea ecx, [esp + 0x28]
call fcn.00415a70
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x6ca94a
mov eax, 0x77f5d4
push ebx
push ebx
push 1
push eax
push str.RELIGION
lea ecx, [esp + 0x28]
call fcn.00415a70
mov ecx, dword [0x894420]
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.commonrelig_convert_religion_title
call fcn.00414e70
push eax
lea eax, [esp + 0x8b4]
push eax
call fcn.00415f60
add esp, 0x10
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x894420]
push ebx
push ebx
push str.commonrelig_convert_religion_desc
call fcn.00414e70
push eax
lea edx, [esp + 0xb4]
push edx
call fcn.00415f60
lea eax, [esi + 0x234]
push str.commonrelig_convert_religion_title
push eax
call fcn.0071e658
lea ecx, [esi + 0x298]
push str.commonrelig_convert_religion_desc
push ecx
call fcn.0071e658
add esp, 0x20
jmp case.0x6ca9ee.2
mov eax, dword [esi + 0x518]
cmp eax, 6
je 0x6caeee
cmp eax, 5
ja case.0x6ca9ee.2
jmp dword [eax*4 + 0x6cb108]
lea edx, [esp + 0x7c]
push edx
push 1
push edi
call fcn.00646000
movzx eax, byte [esp + 0xa8]
push eax
lea ecx, [esp + 0x20b8]
push 0x77fb8c
push ecx
call fcn.0071f52c
push edi
call fcn.006457d0
add esp, 0x1c
test eax, eax
push 1
je 0x6caa56
mov ecx, dword [0x894420]
lea edx, [esp + 0x20ac]
push edx
push str.LEVEL
push ebx
push ebx
push str.patriarch_help_ind_cleric_enabled
call fcn.00414e70
push eax
lea eax, [esp + 0x28b8]
push eax
jmp 0x6caa7e
lea ecx, [esp + 0x20ac]
push ecx
mov ecx, dword [0x894420]
push str.LEVEL
push ebx
push ebx
push str.patriarch_help_ind_cleric_disabled
call fcn.00414e70
push eax
lea edx, [esp + 0x28b8]
push edx
call fcn.00417b30
mov eax, dword [esp + 0xac]
mov ecx, dword [0x914298]
add esp, 0x14
cmp eax, dword [ecx + 0x8bdb4]
jae 0x6cab2e
push eax
mov ecx, edi
call fcn.005f3b20
mov ecx, dword [0x894420]
push 1
test eax, eax
mov eax, dword [esp + 0x9c]
push ebx
push ebx
mov edx, eax
je 0x6cab04
shl edx, 6
sub edx, eax
add edx, edx
sub edx, eax
mov eax, dword [0x914298]
mov eax, dword [eax + edx*4 + 0xee80]
push eax
call fcn.00414e70
push eax
push str.ENTRY
push ebx
push ebx
push str.patriarch_help_ind_entry_enabled
mov ecx, dword [0x894420]
call fcn.00414e70
push eax
lea ecx, [esp + 0x18b8]
push ecx
call fcn.00417b30
add esp, 0x14
jmp 0x6cab36
shl edx, 6
sub edx, eax
add edx, edx
sub edx, eax
mov eax, dword [0x914298]
mov eax, dword [eax + edx*4 + 0xee80]
push eax
call fcn.00414e70
push eax
push str.ENTRY
push ebx
push ebx
push str.patriarch_help_ind_entry_disabled
jmp 0x6caae6
mov word [esp + 0x18a8], bx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
sub esp, 0x1c
add edi, 0x38
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00580c90
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0xd8]
push eax
call fcn.006c5b40
add esp, 0x3c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30b8], 7
call fcn.004133c0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x30b4], 5
call fcn.00412de0
push ebx
push ebx
push 1
lea ecx, [esp + 0x18b4]
push ecx
push str.ENTRY
lea ecx, [esp + 0x28]
call fcn.00415a70
push ebx
push ebx
push 1
lea edx, [esp + 0x28b4]
push edx
push str.CLERIC
lea ecx, [esp + 0x28]
call fcn.00415a70
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x6cabd0
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.COST
lea ecx, [esp + 0x28]
call fcn.00415a70
mov ecx, dword [0x894420]
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.patriarch_help_ind_church_title
call fcn.00414e70
push eax
lea ecx, [esp + 0x8b4]
push ecx
call fcn.00415f60
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.patriarch_help_ind_church_desc
call fcn.00414e70
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.00415f60
lea ecx, [esi + 0x234]
push str.patriarch_help_ind_church_title
push ecx
call fcn.0071e658
lea edx, [esi + 0x298]
push str.patriarch_help_ind_church_desc
push edx
call fcn.0071e658
add esp, 0x20
jmp case.0x6ca9ee.2
lea edi, [esi + 0x234]
push str.patriarch_help_dep_church_title
push edi
call fcn.0071e658
push str.patriarch_help_dep_church_desc
jmp 0x6cae28
lea edx, [esp + 0x60]
push edx
push 1
mov ecx, edi
call fcn.005f80e0
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
sub esp, 0x1c
lea eax, [edi + 0x38]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.00580c90
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.006c5b40
add esp, 0x3c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30b8], 8
call fcn.004133c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x30b4], 5
call fcn.00412de0
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x6cace7
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.COST
lea ecx, [esp + 0x28]
call fcn.00415a70
mov ecx, edi
call fcn.005f4820
test eax, eax
lea edi, [esi + 0x234]
jne 0x6cad1c
push str.muslim_help_jihad_title
push edi
call fcn.0071e658
push str.muslim_help_jihad_desc
jmp 0x6cad2c
push str.muslim_help_releasejihad_title
push edi
call fcn.0071e658
push str.muslim_help_releasejihad_desc
lea eax, [esi + 0x298]
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push edi
call fcn.00414e70
push eax
lea ecx, [esp + 0x8b4]
push ecx
call fcn.00415f60
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
lea eax, [esi + 0x298]
push eax
call fcn.00414e70
push eax
lea eax, [esp + 0xb4]
push eax
jmp 0x6cb014
mov eax, dword [esi + 0x510]
sub eax, ebx
je 0x6cae80
sub eax, 1
je 0x6cae12
sub eax, 1
jne case.0x6ca9ee.2
lea edi, [esi + 0x234]
push str.pagan_help_change_muslim_title
push edi
call fcn.0071e658
lea eax, [esi + 0x298]
push str.pagan_help_change_muslim_desc
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
push ebx
push edi
call fcn.00414e70
push eax
lea ecx, [esp + 0x8ac]
push ecx
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 8
push ebx
push ebx
lea eax, [esi + 0x298]
push eax
call fcn.00414e70
push eax
lea edx, [esp + 0xac]
push edx
call fcn.0071e658
add esp, 8
jmp case.0x6ca9ee.2
lea edi, [esi + 0x234]
push str.pagan_help_change_catholic_title
push edi
call fcn.0071e658
push str.pagan_help_change_catholic_desc
lea eax, [esi + 0x298]
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
push ebx
push edi
call fcn.00414e70
push eax
lea eax, [esp + 0x8ac]
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 8
push ebx
push ebx
lea eax, [esi + 0x298]
push eax
call fcn.00414e70
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.0071e658
add esp, 8
jmp case.0x6ca9ee.2
lea edi, [esi + 0x234]
push str.pagan_help_change_orthodox_title
push edi
call fcn.0071e658
lea eax, [esi + 0x298]
push str.pagan_help_change_orthodox_desc
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
push ebx
push edi
call fcn.00414e70
push eax
lea edx, [esp + 0x8ac]
push edx
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 8
push ebx
push ebx
lea eax, [esi + 0x298]
push eax
call fcn.00414e70
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0071e658
add esp, 8
jmp case.0x6ca9ee.2
cmp dword [esi + 0x51c], ebx
je case.0x6ca9ee.2
lea ecx, [esp + 0x60]
push ecx
push 1
mov ecx, edi
call fcn.005fce00
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push ebx
sub esp, 0x1c
lea edx, [edi + 0x38]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call fcn.00580c90
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.006c5b40
add esp, 0x3c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30b8], 9
call fcn.004133c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x30b4], 5
call fcn.00412de0
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x6caf6b
mov eax, 0x77f5d4
push ebx
push ebx
push ebx
push eax
push str.COST
lea ecx, [esp + 0x28]
call fcn.00415a70
cmp dword [edi + 0x294], 1
jne 0x6cafa7
cmp dword [edi + 0x298], 2
jne 0x6cafa7
lea edi, [esi + 0x234]
push str.pope_donate_title
push edi
call fcn.0071e658
push str.pope_donate_desc
jmp 0x6cafbd
lea edi, [esi + 0x234]
push str.pope_ask_title
push edi
call fcn.0071e658
push 0x7fcc84
lea eax, [esi + 0x298]
push eax
call fcn.0071e658
mov ecx, dword [0x894420]
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push edi
call fcn.00414e70
push eax
lea eax, [esp + 0x8b4]
push eax
call fcn.00415f60
add esp, 0x10
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x894420]
push ebx
push ebx
lea eax, [esi + 0x298]
push eax
call fcn.00414e70
push eax
lea edx, [esp + 0xb4]
push edx
call fcn.00415f60
add esp, 0x10
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x6cb032
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x6cb048
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov dword [esi + 0x2c], ebx
lea eax, [esp + 0x8a8]
push eax
call fcn.0040fbd0
lea ecx, [esp + 0xac]
push ecx
mov dword [esi + 0x28], eax
call fcn.0040fbd0
lea edx, [esi + 0x30c]
push str.DEFS_Screens_PlayWnd_rollmsg.in2
push edx
mov dword [esi + 0x2c], eax
call fcn.0071e658
mov eax, dword [ebp + 8]
add esp, 0x10
push eax
mov ecx, esi
call fcn.006c68d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30b4], 4
call fcn.004179c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x30b4], 3
call fcn.00412de0
lea ecx, [esp + 0x50]
mov byte [esp + 0x30b4], 2
call fcn.00412de0
lea ecx, [esp + 0x48]
mov byte [esp + 0x30b4], 1
call fcn.00412de0
lea ecx, [esp + 0x40]
mov byte [esp + 0x30b4], bl
call fcn.00412de0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30b4], 0xffffffff
call fcn.00412de0
mov ecx, dword [esp + 0x30ac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4