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

Disassembly:
push 0xffffffffffffffff
push 0x750126
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push ebp
xor ebp, ebp
push edi
mov edi, dword [esp + 0x574]
cmp edi, ebp
mov word [esp + 0x30], bp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
je 0x64648b
cmp dword [edi + 0x294], ebp
jne 0x64648b
cmp dword [edi + 0x298], 1
je 0x64648b
mov eax, dword [edi + 0x24]
push ebx
push esi
lea esi, [edi + 0x24]
mov ecx, esi
xor ebx, ebx
mov dword [esp + 0x14], ebp
call dword [eax + 0x2c]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x6460a6
nop
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov cx, word [eax]
push ebp
push ecx
call fcn.00659110
add esp, 8
test eax, eax
je 0x6460a0
add ebx, 1
cmp dword [esp + 0x10], ebp
jne 0x646080
mov edx, dword [0x914298]
mov eax, dword [edx + 0xdcc8]
push eax
push 5
lea ecx, [esp + 0x28]
call fcn.006af6b0
mov eax, dword [0x914298]
mov eax, dword [eax + 0xdccc]
imul eax, ebx
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.006af6b0
push edi
mov dword [esp + 0x40], 0xffffffff
mov byte [esp + 0x44], 5
call fcn.006457d0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x646459
lea esi, [edi + 0x38]
push esi
lea ecx, [esp + 0x24]
call fcn.00580db0
test al, al
je 0x646459
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x914298]
cmp eax, dword [ecx + 0x8bdb4]
jae 0x646130
push eax
mov ecx, edi
call fcn.005f3b20
test eax, eax
je 0x646459
cmp dword [esp + 0x580], ebp
mov dword [esp + 0x14], 1
jne 0x646459
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00580d50
push 1
push ebp
mov ecx, edi
call fcn.005fc760
call fcn.006590f0
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x18], ebx
je 0x646459
mov eax, dword [ebx + 0x1a8]
lea ecx, [ebx + 0x1a8]
call dword [eax + 0x24]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x64643b
jmp 0x646190
mov ebx, dword [esp + 0x18]
nop
mov edx, dword [ebx + 0x1a8]
lea ecx, [ebx + 0x1a8]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0x2c]
mov esi, dword [eax]
cmp esi, ebp
je 0x646431
mov ecx, esi
call fcn.005f3d90
test eax, eax
je 0x646431
cmp esi, edi
je 0x646431
cmp dword [esi + 0x294], ebp
je 0x6461d9
cmp dword [esi + 0x298], ebp
jne 0x646431
mov cx, word [edi + 0x20]
mov dx, word [esi + 0x20]
push ecx
push edx
mov ecx, ebx
call fcn.00658990
mov ebx, eax
cmp ebx, ebp
je 0x646431
cmp dword [esi + 0x2a4], ebp
je 0x64641a
mov eax, dword [0x914298]
mov eax, dword [eax + 0xdcd0]
cmp dword [ebx + 0x1c], eax
jl 0x646227
mov cx, word [esi + 0x20]
mov edx, dword [0x912e94]
cmp cx, word [edx + 0x1ac]
jne 0x646431
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x10]
mov cx, word [esi + 0x20]
mov word [ebx + 0x18], cx
mov edx, dword [0x912e94]
mov ax, word [edx + 0x1ac]
cmp word [edi + 0x20], ax
jne 0x64632a
lea ecx, [esp + 0x44]
call fcn.004179a0
movzx eax, word [edi + 0x20]
push ebp
push 1
push eax
push fcn.005e0570
push str.KINGDOM_PLAYER
lea ecx, [esp + 0x58]
mov dword [esp + 0x588], ebp
call fcn.00415b10
movzx ecx, word [esi + 0x20]
push ebp
push 1
push ecx
push fcn.005e0570
push str.KINGDOM_AI
lea ecx, [esp + 0x58]
call fcn.00415b10
mov ecx, dword [0x894420]
push ebp
lea edx, [esp + 0x48]
push edx
push ebp
push ebp
push str.patriarch_byzantia_war
call fcn.00414e70
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00415f60
add esp, 0x10
push ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [0x894420]
push ebp
push ebp
push str.patriarch_byzantia_war_title
call fcn.00414e70
push eax
lea edx, [esp + 0x78]
push edx
call fcn.00415f60
add esp, 0x10
push ebp
push esi
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x78]
push ecx
mov edx, ecx
push edx
push str.Images_Screens_PlayWnd_Event_Icons_new_icons_messages_pravoslavie.img
push 7
call fcn.006cc240
mov ecx, dword [0x9a3304]
add esp, 0x18
push eax
call fcn.006c5910
lea ecx, [esp + 0x44]
mov dword [esp + 0x574], 0xffffffff
call fcn.004179c0
jmp 0x646431
cmp word [esi + 0x20], ax
jne 0x646431
lea ecx, [esp + 0x58]
call fcn.004179a0
movzx eax, word [esi + 0x20]
push ebp
push 1
push eax
push fcn.005e0570
push str.KINGDOM_PLAYER
lea ecx, [esp + 0x6c]
mov dword [esp + 0x588], 1
call fcn.00415b10
movzx ecx, word [edi + 0x20]
push ebp
push 1
push ecx
push fcn.005e0570
push str.KINGDOM_AI
lea ecx, [esp + 0x6c]
call fcn.00415b10
mov ecx, dword [0x894420]
push ebp
lea edx, [esp + 0x5c]
push edx
push ebp
push ebp
push str.patriarch_ai_war
call fcn.00414e70
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00415f60
add esp, 0x10
push ebp
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [0x894420]
push ebp
push ebp
push str.patriarch_ai_war_title
call fcn.00414e70
push eax
lea edx, [esp + 0x78]
push edx
call fcn.00415f60
add esp, 0x10
push ebp
push ebp
push str.images_screens_playWnd_messages_Illustrations_advisor_bad.bmp
push ebp
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x80]
push ecx
push ebp
mov edx, ecx
push edx
push str.Images_Screens_PlayWnd_Event_Icons_new_icons_messages_pravoslavie.img
push 1
call fcn.006cbfe0
mov ecx, dword [0x9a3304]
add esp, 0x24
push eax
call fcn.006c5910
lea ecx, [esp + 0x58]
mov dword [esp + 0x574], 0xffffffff
call fcn.004179c0
jmp 0x646431
mov ecx, dword [0x914298]
mov edx, dword [ecx + 0xdcd4]
add edx, dword [ebx + 0x1c]
mov eax, dword [ebx]
push edx
mov ecx, ebx
call dword [eax + 0x14]
cmp dword [esp + 0x10], ebp
jne 0x64618b
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.005fada0
mov ecx, edi
call fcn.005fd9d0
mov ecx, dword [0x905af8]
call fcn.004f0940
mov ecx, dword [esp + 0x584]
cmp ecx, ebp
pop esi
pop ebx
je 0x646470
lea edx, [esp + 0x18]
push edx
call fcn.006459a0
mov eax, dword [esp + 0xc]
pop edi
pop ebp
mov ecx, dword [esp + 0x55c]
mov dword fs:[0], ecx
add esp, 0x568
ret
mov ecx, dword [esp + 0x564]
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x568
ret