Function at 0x4f8aea
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x740630
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x8fe0b0]
xor ebp, ebp
cmp ecx, ebp
mov ebx, 1
je 0x4f8b30
mov eax, dword [ecx]
push 8
call dword [eax + 0xd4]
test eax, eax
mov ecx, dword [0x8fe0b0]
je 0x4f8b1d
mov edx, dword [ecx]
push ebp
call dword [edx + 0x110]
jmp 0x4f8b30
cmp ecx, ebp
je 0x4f8b30
mov eax, dword [ecx + 8]
add ecx, 8
push ebx
call dword [eax]
mov dword [0x8fe0b0], ebp
mov eax, dword [esp + 0x34]
cmp eax, 0x2f
jne 0x4f8b80
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa660
push esi
push str.DEFS_Screens_playwnd_ranking_dlg.in2
call fcn.0042faf0
add esp, 8
cmp eax, ebp
je 0x4fa660
push ebp
push ebp
push 0x2f
push eax
mov ecx, esi
call fcn.004db250
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x2c
jne 0x4f8bcc
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa660
push esi
push str.DEFS_Screens_Online_help_Help.in2
call fcn.0042faf0
add esp, 8
cmp eax, ebp
je 0x4fa660
push ebp
push ebp
push 0x2c
push eax
mov ecx, esi
call fcn.004db250
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x26
push edi
jne 0x4f8c49
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], ebp
je 0x4f8c08
push ebx
mov ecx, eax
call fcn.004e3cf0
mov edi, eax
jmp 0x4f8c0a
xor edi, edi
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [edi]
push eax
push ebx
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x40], 0xffffffff
call dword [edx + 0x124]
push ebx
push ebp
push 0x26
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x2e
jne 0x4f8cd3
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], ebx
je 0x4f8c88
push ebx
mov ecx, eax
call fcn.004e3cf0
mov edi, eax
jmp 0x4f8c8a
xor edi, edi
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [edi]
push eax
push ebx
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x40], 0xffffffff
mov dword [edi + 0xa8], 1
call dword [edx + 0x124]
push ebx
push ebp
push 0x2e
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x25
jne 0x4f8d43
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_scorewnd_stats.in2
call fcn.0042faf0
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 8
cmp eax, ebp
je 0x4f8d07
mov dword [edi + 0x98], ebx
mov ecx, dword [esp + 0x40]
push eax
push ecx
push 0x25
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
mov edx, dword [esi]
push eax
push 0x25
mov ecx, esi
call dword [edx + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x32
jne 0x4f8e13
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov eax, dword [esi + 0x2d4]
lea edi, [esi + 0x2d4]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
je 0x4f8d8a
mov edx, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [edx + 0x12c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
jne 0x4f8d72
mov ecx, dword [0x914138]
cmp dword [ecx + 0x1b0], 6
push ebp
jne 0x4f8dbc
mov edx, dword [esi]
push ebx
push 0x25
mov ecx, esi
call dword [edx + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
push 0x85fddc
push 0x85b460
push ebp
push esi
push str.DEFS_Screens_scorewnd_endgamewnd.in2
call fcn.0042faf0
add esp, 8
push eax
call fcn.0071f44c
mov edi, eax
mov eax, dword [edi]
add esp, 0x14
mov ecx, edi
call dword [eax + 0x124]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
push edx
push 0x32
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x33
jne 0x4f8e9b
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push ebp
push 0x85fddc
push 0x85b460
push ebp
push esi
push str.DEFS_Screens_scorewnd_endgamewnd.in2
call fcn.0042faf0
add esp, 8
push eax
call fcn.0071f44c
mov esi, eax
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
mov dword [esi + 0x9c], ebx
call dword [eax + 0x124]
cmp dword [esi + 0x9c], ebp
je 0x4f8e7d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10c]
cmp eax, 0xffffffff
je 0x4fa65f
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push ebx
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x31
jne 0x4f8f20
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
je 0x4f8ed4
mov edx, dword [esi]
push 0xffffffffffffffff
push 0x31
mov ecx, esi
call dword [edx + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
push ebp
push 0x85f598
push 0x85b460
push ebp
push esi
push str.DEFS_Screens_multiplayer_buyarmy.in2
call fcn.0042faf0
add esp, 8
push eax
call fcn.0071f44c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add esp, 0x14
push ecx
push edx
push 0x31
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x24
jne 0x4f8fa9
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 2
je 0x4f8f64
push ebx
push ebx
mov ecx, eax
call fcn.004ec1e0
mov edi, eax
jmp 0x4f8f66
xor edi, edi
mov eax, dword [edi]
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x38], 0xffffffff
call dword [eax + 0x124]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push 0x24
push edi
mov ecx, esi
mov dword [edi + 0x9c], eax
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x2d
jne 0x4f9032
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 3
je 0x4f8ff1
mov edx, dword [esp + 0x40]
push ebx
push edx
mov ecx, eax
call fcn.004ec1e0
mov edi, eax
jmp 0x4f8ff3
xor edi, edi
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi]
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x38], 0xffffffff
mov dword [edi + 0x9c], ebx
call dword [eax + 0x124]
push ebx
push ebp
push 0x2d
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x23
jne 0x4f9101
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
cmp dword [0x905bc0], ebp
je 0x4f9076
mov ecx, dword [0x905bc4]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x4f9076
mov edx, dword [ecx]
push ebp
call dword [edx + 0xd4]
push eax
call fcn.00659110
add esp, 8
mov ebx, eax
jmp 0x4f9078
xor ebx, ebx
push 0xb8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 4
je 0x4f90a4
push 1
push 1
mov ecx, eax
call fcn.004e0460
mov edi, eax
jmp 0x4f90a6
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x30], 0xffffffff
je 0x4f90b8
movzx eax, word [ebx + 0x20]
jmp 0x4f90ba
xor eax, eax
mov ebx, dword [esp + 0x3c]
mov ecx, dword [edi]
push ebp
push ebx
push eax
mov dword [esp + 0x48], ecx
call fcn.005f4c80
push eax
mov eax, dword [esp + 0x4c]
push 0
push esi
mov ecx, edi
call dword [eax + 0x124]
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x23
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x22
jne 0x4f91bf
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 5
je 0x4f914e
push ebx
push 0xa
push 0xa
push 6
push 9
push 9
mov ecx, eax
call fcn.004e5110
mov edi, eax
jmp 0x4f9150
xor edi, edi
mov edx, dword [edi]
push ebp
lea eax, [esp + 0x14]
push eax
push esi
mov ecx, edi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x1c], 0xc4
mov dword [esp + 0x20], 0xc6
mov dword [esp + 0x24], 0x202
mov dword [esp + 0x28], 0x19f
call dword [edx + 0xc]
mov edx, dword [esi]
push ebp
push str.Images_Screens_PlayWnd_Spies_Big_actions_small_back.rle
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push 0x22
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x20
jne 0x4f9292
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov ebx, dword [esp + 0x3c]
cmp ebx, ebp
je 0x4fa65f
cmp dword [ebx + 4], ebp
je 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
mov dword [esp + 0x30], 6
je 0x4f9222
push 1
push 0xa
push 0xa
push 6
push 9
push 9
mov ecx, eax
call fcn.004e21b0
mov edi, eax
jmp 0x4f9224
xor edi, edi
mov eax, dword [ebx + 4]
mov edx, dword [edi]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x1c], 0xc4
mov dword [esp + 0x20], 0xc6
mov dword [esp + 0x24], 0x202
mov dword [esp + 0x28], 0x19f
call dword [edx + 0xc]
mov edx, dword [esi]
push ebp
push str.Images_Screens_PlayWnd_Spies_Big_actions_small_back.rle
mov ecx, esi
call dword [edx + 0x10]
push ebx
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x44]
push eax
push 0x20
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x1c
jne 0x4f93e0
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov ebx, dword [esp + 0x3c]
cmp ebx, ebp
je 0x4fa65f
cmp dword [ebx + 4], ebp
je 0x4fa65f
mov edx, dword [esi]
push ebp
push str.Images_Screens_PlayWnd_pick_skill_back.rle
mov ecx, esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebp
je 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
mov dword [esp + 0x30], 7
je 0x4f930c
push 1
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 6
push 3
push 3
mov ecx, eax
call fcn.004e1a10
mov ebp, eax
jmp 0x4f930e
xor ebp, ebp
xor ecx, ecx
or eax, 0xffffffff
cmp byte [ebx + 8], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov ecx, edi
jne 0x4f9365
mov eax, dword [edi]
call dword [eax + 0x18]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x3c], eax
call dword [edx + 0x14]
add eax, 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
add eax, 0x1eb
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x1ec
mov dword [esp + 0x1c], eax
jmp 0x4f939c
mov edx, dword [edi]
call dword [edx + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esp + 0x3c]
add eax, 0x227
add ecx, 0x1e6
mov dword [esp + 0x10], 0x228
mov dword [esp + 0x14], 0x1e7
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
movzx edx, byte [ebx + 8]
mov eax, dword [ebp]
mov dword [ebp + 0x88], edx
mov ecx, dword [ebx + 4]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov ecx, ebp
call dword [eax + 0xc]
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x1c
push ebp
mov ecx, esi
mov dword [ebp + 0x4c], edi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x19
jne 0x4f9433
mov edi, dword [esp + 0x3c]
cmp edi, ebp
je 0x4fa65f
push ebp
push 0x85e0ac
push 0x85b460
push ebp
push edi
call fcn.0071f44c
mov edx, dword [edi]
add esp, 0x14
push esi
mov ecx, edi
call dword [edx + 0x64]
mov eax, dword [esp + 0x40]
push ebp
push eax
push 0x19
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x17
jne 0x4f9519
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov ecx, dword [esi + 0x2bc]
push ebp
push 0x85dd14
push 0x85d234
push ebp
push ecx
call fcn.0071f44c
add esp, 0x14
cmp eax, ebp
je 0x4f9479
mov ecx, eax
call fcn.004748f0
mov dword [0x8fe048], ebp
mov edx, dword [esi + 0x2d4]
lea edi, [esi + 0x2d4]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
je 0x4f94a8
mov edi, edi
mov eax, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [eax + 0x12c]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
jne 0x4f9490
mov ebx, dword [esp + 0x3c]
cmp ebx, 0xffffffff
push esi
jne 0x4f94b9
push str.DEFS_Screens_PlayWnd_ElectionClaim.in2
jmp 0x4f94be
push str.DEFS_Screens_PlayWnd_Election.in2
call fcn.0042faf0
mov edi, eax
add esp, 8
mov ecx, edi
call fcn.004aa440
cmp byte [0x905658], 0
je 0x4f94f2
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x17
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
cmp edi, ebp
je 0x4fa65f
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push 1
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x18
jne 0x4f9566
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_Royal_family.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 8
push ecx
push edx
push 0x18
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x16
jne 0x4f95bd
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_pick_exotic.in2
call fcn.0042faf0
mov ebx, dword [esp + 0x44]
add esp, 8
mov edi, eax
push ebx
mov ecx, edi
call fcn.004e2580
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x16
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x15
jne 0x4f96d6
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov ebp, dword [esp + 0x3c]
test ebp, ebp
je 0x4fa65f
mov eax, dword [ebp + 4]
test eax, eax
je 0x4f95f2
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
jmp 0x4f95fa
mov dword [esp + 0x3c], 0
mov edx, dword [0x912e94]
mov ax, word [edx + 0x1ac]
push eax
call fcn.00659140
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
je 0x4fa65f
cmp dword [0x905bc0], 0
je 0x4f9648
mov ecx, dword [0x905bc4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f9648
mov edx, dword [ecx]
push 0
call dword [edx + 0xd4]
push eax
call fcn.00659110
add esp, 8
mov ebx, eax
jmp 0x4f964a
xor ebx, ebx
push 0xb8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x30], 8
je 0x4f9676
push 1
push 2
mov ecx, eax
call fcn.004e0460
mov edi, eax
jmp 0x4f9678
xor edi, edi
test ebx, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x4f968a
movzx eax, word [ebx + 0x20]
jmp 0x4f968c
xor eax, eax
mov cl, byte [ebp]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
push 0
push esi
mov ecx, edi
call dword [edx + 0x124]
mov ecx, dword [esp + 0x40]
push ebp
push ecx
push 0x15
push edi
mov ecx, esi
call fcn.004db250
push ebp
call fcn.0040fa80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x1a
jne 0x4f975f
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb4
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 9
je 0x4f971a
push ebx
push ebp
mov ecx, eax
call fcn.004ec1e0
mov edi, eax
jmp 0x4f971c
xor edi, edi
mov edx, dword [edi]
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x38], 0xffffffff
call dword [edx + 0x124]
mov eax, dword [esp + 0x3c]
push eax
mov dword [edi + 0x9c], eax
mov eax, dword [esp + 0x44]
push eax
push 0x1a
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x1b
jne 0x4f97ec
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xac
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 0xa
je 0x4f97a2
push ebx
mov ecx, eax
call fcn.004ed0d0
mov edi, eax
jmp 0x4f97a4
xor edi, edi
cmp edi, ebp
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
je 0x4f97c7
mov edx, dword [edi]
push ebp
push esi
mov ecx, edi
mov word [edi + 0xa0], bx
call dword [edx + 0x124]
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x1b
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x1d
jne 0x4f9896
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push 0xb8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebp
mov dword [esp + 0x30], 0xb
je 0x4f9830
push ebx
push ebp
mov ecx, eax
call fcn.004e0460
mov edi, eax
jmp 0x4f9832
xor edi, edi
cmp edi, ebp
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
je 0x4f9871
mov ecx, dword [0x912e94]
mov dx, word [ecx + 0x1ac]
mov eax, dword [edi]
push ebp
push ebx
push ebp
mov dword [esp + 0x48], eax
push edx
call fcn.00659140
add esp, 4
push eax
mov eax, dword [esp + 0x4c]
push 0
push esi
mov ecx, edi
call dword [eax + 0x124]
mov eax, dword [esp + 0x40]
push ebx
push eax
push 0x1d
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x14
jne 0x4f98e3
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_spy_newspy.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 8
push ecx
push edx
push 0x14
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x13
je 0x4fa65f
cmp eax, 0x12
je 0x4fa65f
cmp eax, 0x11
jne 0x4f9941
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov eax, dword [esi + 0x34]
push eax
push str.DEFS_Screens_PlayWnd_royalcourt_inn.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
push 0x11
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 5
je 0x4fa65f
cmp eax, 8
jne 0x4f9993
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_knights_info_dlg.in2
call fcn.0042faf0
mov edx, dword [esp + 0x48]
add esp, 8
push ebp
push edx
push 8
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 3
jne 0x4f9a53
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push ebp
push str.Defs_Misc_conv_layout.in2
call fcn.00404ed0
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x4fa65f
push 0x98
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x30], 0xc
je 0x4f99ed
mov ecx, eax
call fcn.005aad30
mov esi, eax
jmp 0x4f99ef
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.004043a0
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esi]
push edi
push ebx
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [0x894420]
push 7
push edi
push esi
push ebp
push ebp
push ebp
push str.msg_audience_caption
call fcn.00414e70
push eax
push ebp
push ebp
push 7
call fcn.006cc3c0
mov ecx, dword [0x9a3304]
add esp, 0x1c
push eax
call fcn.006c5910
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 4
je 0x4fa65f
cmp eax, 7
je 0x4fa65f
cmp eax, 9
jne 0x4f9ac0
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_choose_kingdom_dlg.in2
call fcn.0042faf0
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 8
cmp eax, ebp
jle 0x4f9a9b
push eax
mov ecx, edi
call fcn.004860a0
mov edx, dword [esp + 0x40]
push ebp
push edx
push 9
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0xa
jne 0x4f9b09
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_advantages.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
push 0xa
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0xb
jne 0x4f9bf1
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov edx, dword [0x912e94]
mov eax, dword [edx + 0xc]
cmp eax, ebp
je 0x4f9b6b
cmp dword [eax + 0xfc], ebp
je 0x4f9b6b
push esi
push str.DEFS_Screens_PlayWnd_polmap_wnd.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
push 0xb
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [0x905af8]
cmp eax, ebp
jne 0x4f9b7d
mov edx, dword [0x914218]
mov eax, dword [edx + 8]
push eax
push str.Defs_Screens_Dialogs_game_msg_small.in2
call fcn.0042faf0
mov esi, eax
mov eax, dword [esi]
add esp, 8
mov ecx, esi
call dword [eax + 0x128]
mov ecx, dword [0x894420]
push ebp
push ebp
push str.msg_msg_no_polit_map
call fcn.00414e70
mov ecx, dword [0x894420]
mov ebx, dword [esi]
push ebp
push ebp
push str.msg_msg_title_mylord
mov edi, eax
call fcn.00414e70
mov ecx, dword [0x894420]
push eax
push edi
push ebp
push ebp
push str.dialogs_dlg_mp_ok
call fcn.00414e70
push eax
mov ecx, esi
call dword [ebx + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x30
jne 0x4f9c9d
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
cmp eax, ebp
je 0x4f9c59
mov ecx, dword [esp + 0x3c]
cmp dword [0x8602b8], ecx
mov eax, dword [eax + 8]
je 0x4f9c36
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [esi]
push 0xffffffffffffffff
push 0x30
mov ecx, esi
call dword [eax + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
push esi
push str.DEFS_Screens_PlayWnd_kingdom_info.in2
call fcn.0042faf0
mov edi, eax
mov eax, dword [esp + 0x44]
mov edx, dword [edi]
add esp, 8
push eax
mov ecx, edi
call dword [edx + 0x124]
mov ecx, dword [esp + 0x40]
push ebp
push ecx
push 0x30
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x29
jne 0x4f9cfd
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_PlayWnd_ri.in2
call fcn.0042faf0
mov edx, dword [0x912e94]
mov edi, eax
mov ax, word [edx + 0x1ac]
add esp, 8
mov ecx, edi
push eax
call fcn.00512c20
mov ecx, dword [esp + 0x40]
push ebp
push ecx
push 0x29
push edi
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, ebx
jne 0x4f9d4e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x160]
push ebp
push ebx
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
push esi
push str.DEFS_Screens_TileWnd_LoseDlg.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
push ebx
push eax
mov ecx, esi
call fcn.004db250
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 2
jne 0x4f9d89
cmp dword [0x905af8], ebp
je 0x4f9d65
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x160]
mov eax, dword [esi]
push ebp
push 0xffffffffffffffff
push 0xd
mov ecx, esi
call dword [eax + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0xe
jne 0x4f9e2e
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
call fcn.00710410
test eax, eax
jne 0x4f9dbd
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push ebx
call dword [edx + 0x34]
push esi
push str.DEFS_Screens_Prefs_Prefs.in2
call fcn.0042faf0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x40]
push ebp
push eax
push 0xe
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
push ebx
call dword [eax]
call fcn.00710410
test eax, eax
jne 0x4f9e0a
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push ebp
call dword [edx + 0x34]
mov eax, dword [esi]
push ebp
push 0xffffffffffffffff
push 0xd
mov ecx, esi
call dword [eax + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0xf
jne 0x4f9f5b
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov edx, dword [esi + 0x2d4]
lea edi, [esi + 0x2d4]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
je 0x4f9e78
lea ecx, [ecx]
mov eax, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [eax + 0x12c]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
jne 0x4f9e60
call fcn.00710410
test eax, eax
jne 0x4f9e92
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
push 0xc8
push ebx
call dword [eax + 0x34]
push esi
push str.DEFS_Screens_PlayWnd_load_dlg.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
mov edi, eax
push 0xf
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
lea ecx, [edi + 8]
mov ebx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00710410
test eax, eax
jne 0x4f9ee1
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push ebp
call dword [edx + 0x34]
cmp ebx, 0x3ea
jne 0x4f9f23
cmp dword [esi + 0x2e8], ebp
je 0x4f9f02
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ecx]
push ebp
push ebp
push ebp
call dword [eax + 0x164]
push 0x9058f8
mov ecx, esi
call fcn.004f8970
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebx, 0xfffffffe
je 0x4fa65f
cmp dword [esp + 0x3c], 0xfffffffe
je 0x4fa65f
mov edx, dword [esi]
push ebp
push 0xffffffffffffffff
push 0xd
mov ecx, esi
call dword [edx + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0x10
jne 0x4fa065
mov eax, dword [0x912e94]
cmp dword [eax + 0x298], ebp
je 0x4fa65f
push ebp
push 0x10
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov edx, dword [esi + 0x2d4]
lea edi, [esi + 0x2d4]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
je 0x4f9fb8
lea esp, [esp]
mov eax, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [eax + 0x12c]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x48]
test eax, eax
jne 0x4f9fa0
call fcn.00710410
test eax, eax
jne 0x4f9fd2
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
push 0xc8
push ebx
call dword [eax + 0x34]
push esi
push str.DEFS_Screens_PlayWnd_save_dlg.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x48]
add esp, 8
push ebp
push ecx
mov edi, eax
push 0x10
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
lea ecx, [edi + 8]
mov ebx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00710410
test eax, eax
jne 0x4fa021
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push ebp
call dword [edx + 0x34]
cmp ebx, 0xfffffffe
je 0x4fa65f
cmp dword [esp + 0x3c], 0xfffffffe
je 0x4fa65f
cmp ebx, 0x3e9
je 0x4fa65f
mov eax, dword [esi]
push ebp
push 0xffffffffffffffff
push 0xd
mov ecx, esi
call dword [eax + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp eax, 0xd
jne 0x4fa65f
push ebp
push eax
mov ecx, esi
call fcn.004db2e0
test eax, eax
jne 0x4fa65f
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + 0xac], ebp
jne 0x4fa65f
mov eax, dword [0x912e94]
cmp dword [eax + 0x1b0], ebp
jne 0x4fa65f
cmp dword [esi + 0x2ac], ebp
jne 0x4fa0c4
cmp dword [esi + 0xa8], ebp
je 0x4fa0bc
cmp dword [eax + 0xc], ebp
je 0x4fa0bc
push esi
push str.DEFS_Screens_PlayWnd_menu_battle_dlg.in2
jmp 0x4fa0ca
push esi
push str.DEFS_Screens_PlayWnd_menu_dlg.in2
jmp 0x4fa0ca
push esi
push str.DEFS_Screens_PlayWnd_menu_edt_dlg.in2
call fcn.0042faf0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x4fa157
mov ecx, dword [0x912e94]
cmp ecx, ebp
je 0x4fa15d
cmp dword [ecx + 0x18c], ebp
jne 0x4fa0fa
cmp dword [ecx + 0x298], ebp
jne 0x4fa15d
mov edx, dword [edi]
push 0x3e9
mov ecx, edi
call dword [edx + 0x8c]
cmp eax, ebp
je 0x4fa119
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 0xb4]
mov eax, dword [edi]
push 0x3ea
mov ecx, edi
call dword [eax + 0x8c]
cmp eax, ebp
je 0x4fa138
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 0xb4]
mov eax, dword [edi]
push 0x3ef
mov ecx, edi
call dword [eax + 0x8c]
cmp eax, ebp
je 0x4fa157
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 0xb4]
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ebx, eax
call fcn.00710410
test eax, eax
jne 0x4fa17f
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push 1
call dword [edx + 0x34]
mov eax, dword [esp + 0x40]
push 0
push eax
push 0xd
push edi
mov ecx, esi
call fcn.004db250
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10c]
lea ecx, [edi + 8]
mov ebp, eax
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0x912e94]
test eax, eax
je 0x4fa65f
cmp dword [0x905af8], 0
je 0x4fa65f
test ebx, ebx
jne 0x4fa1e2
call fcn.00710410
test eax, eax
jne 0x4fa1dd
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xc8
push eax
call dword [edx + 0x34]
mov eax, dword [0x912e94]
cmp ebp, 0x3f0
jne 0x4fa218
mov eax, dword [esi]
push 0
push 0
push 0
push 0x755f8f67
lea ecx, [esi + 8]
push ecx
mov ecx, esi
call dword [eax + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3f5
jne 0x4fa245
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
push 0xe
mov ecx, esi
call dword [edx + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3ef
jne 0x4fa2b0
cmp word [esi + 0xac], 0
lea edi, [esi + 0xac]
je 0x4fa65f
mov eax, dword [eax + 0x1a4]
add eax, 0x1f8
push eax
lea ecx, [esp + 0x14]
call fcn.00413820
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x30], 0xd
je 0x4fa28c
cmp word [eax], 0
jne 0x4fa28e
xor eax, eax
mov ecx, dword [0x912e94]
mov dx, word [ecx + 0x1ac]
push eax
push 0
mov ecx, esi
push edx
push edi
call fcn.004f8520
lea ecx, [esp + 0x10]
jmp 0x4fa652
cmp ebp, 0x3ea
jne 0x4fa2dd
mov eax, dword [esi]
push 0
push 0xffffffffffffffff
push 0xf
mov ecx, esi
call dword [eax + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3e9
jne 0x4fa30a
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
push 0x10
mov ecx, esi
call dword [edx + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3ed
jne 0x4fa3b7
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4fa322
lea eax, [ecx + 0x10]
jmp 0x4fa328
mov eax, dword [eax + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x14]
call fcn.00413820
cmp dword [esi + 0x2e8], 0
mov dword [esp + 0x30], 0xe
je 0x4fa357
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ecx]
push 0
push 0
push 0
call dword [eax + 0x164]
mov edx, dword [esi]
mov edi, dword [esi + 0x2ac]
mov ecx, esi
call dword [edx + 0x140]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [eax]
test edi, edi
jne 0x4fa38a
call fcn.0040d640
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x54]
lea ecx, [esp + 0x10]
jmp 0x4fa652
mov eax, dword [0x914218]
mov ecx, dword [eax + 8]
push ecx
push str.DEFS_Screens_mapedit_mapedit.in2
call fcn.0042faf0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
push 0
mov ecx, eax
call fcn.00495770
lea ecx, [esp + 0x10]
jmp 0x4fa652
cmp ebp, 0x3ee
jne 0x4fa49d
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4fa3cf
lea eax, [ecx + 0x10]
jmp 0x4fa3d5
mov eax, dword [eax + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x14]
call fcn.00413820
cmp dword [esi + 0x2e8], 0
mov dword [esp + 0x30], 0xf
je 0x4fa404
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ecx]
push 0
push 0
push 0
call dword [eax + 0x164]
mov edx, dword [esi]
mov edi, dword [esi + 0x2ac]
mov ecx, esi
call dword [edx + 0x140]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [eax]
test edi, edi
jne 0x4fa46f
push 0x2a8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x30], 0x10
je 0x4fa447
push 1
mov ecx, eax
call fcn.004bae30
jmp 0x4fa449
xor eax, eax
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
push 0
push 0
push ecx
mov ecx, eax
mov byte [esp + 0x3c], 0xf
call dword [edx + 0x124]
lea ecx, [esp + 0x10]
jmp 0x4fa652
mov edx, dword [0x914218]
mov eax, dword [edx + 8]
push eax
push str.DEFS_Screens_mapedit_mapedit.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push 0
mov ecx, eax
call fcn.00495770
lea ecx, [esp + 0x10]
jmp 0x4fa652
cmp ebp, 0x3f1
jne 0x4fa539
cmp dword [esi + 0x2e8], 0
je 0x4fa4c6
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
push 0
push 0
push 0
call dword [edx + 0x164]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x140]
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [edx]
push 0x2a8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov dword [esp + 0x30], 0x11
je 0x4fa502
push 1
mov ecx, eax
call fcn.004bae30
jmp 0x4fa504
xor eax, eax
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
push 0
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x3c], 0xffffffff
call dword [edx + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3f2
jne 0x4fa578
cmp word [esi + 0xac], 0
lea eax, [esi + 0xac]
je 0x4fa65f
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.004f8520
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
cmp ebp, 0x3f3
jne 0x4fa65f
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4fa590
lea eax, [ecx + 0x10]
jmp 0x4fa596
mov eax, dword [eax + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x24]
call fcn.00413820
cmp dword [esi + 0x2e8], 0
mov dword [esp + 0x30], 0x12
je 0x4fa5c5
mov ecx, dword [esi + 0x2e8]
mov edx, dword [ecx]
push 0
push 0
push 0
call dword [edx + 0x164]
mov eax, dword [esi]
mov edi, dword [esi + 0x2ac]
mov ecx, esi
call dword [eax + 0x140]
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
push 1
call dword [edx]
test edi, edi
jne 0x4fa629
push 0x2a8
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov byte [esp + 0x30], 0x13
je 0x4fa608
push 1
mov ecx, eax
call fcn.004bae30
jmp 0x4fa60a
xor eax, eax
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
push 0
push 0
push ecx
mov ecx, eax
mov byte [esp + 0x3c], 0x12
call dword [edx + 0x124]
jmp 0x4fa64e
mov edx, dword [0x914218]
mov eax, dword [edx + 8]
push eax
push str.DEFS_Screens_mapedit_mapedit.in2
call fcn.0042faf0
mov ecx, dword [esp + 0x28]
add esp, 8
push ecx
push 0
mov ecx, eax
call fcn.00495770
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00412de0
pop edi
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc