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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x75aba0
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
or ebx, 0xffffffff
test byte [0x9aa350], 1
push edi
mov ebp, 2
mov edi, 1
jne 0x708b17
or dword [0x9aa350], edi
push 0x258
push str.reinforce_radius
push 0
mov dword [esp + 0x7c], 0
call fcn.00702230
push 0x2bc
push str.reinforce_radius
push edi
mov dword [0x9aa344], eax
call fcn.00702230
push 0x320
push str.reinforce_radius
push ebp
mov dword [0x9aa348], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa34c], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 2
jne 0x708b71
or dword [0x9aa350], ebp
push 0xc8
push str.reinforce_weight_losing
push 0
mov dword [esp + 0x7c], edi
call fcn.00702230
push 0xc8
push str.reinforce_weight_losing
push edi
mov dword [0x9aa338], eax
call fcn.00702230
push 0xc8
push str.reinforce_weight_losing
push ebp
mov dword [0x9aa33c], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa340], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 4
jne 0x708bcc
or dword [0x9aa350], 4
push 0x190
push str.reinforce_weight_balanced
push 0
mov dword [esp + 0x7c], ebp
call fcn.00702230
push 0x190
push str.reinforce_weight_balanced
push edi
mov dword [0x9aa32c], eax
call fcn.00702230
push 0x190
push str.reinforce_weight_balanced
push ebp
mov dword [0x9aa330], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa334], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 8
mov esi, 8
jne 0x708c2f
or dword [0x9aa350], esi
push 0xc8
push str.reinforce_weight_winning
push 0
mov dword [esp + 0x7c], 3
call fcn.00702230
push 0xc8
push str.reinforce_weight_winning
push edi
mov dword [0x9aa320], eax
call fcn.00702230
push 0xc8
push str.reinforce_weight_winning
push ebp
mov dword [0x9aa324], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa328], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 0x10
jne 0x708c85
or dword [0x9aa350], 0x10
push 0xffffffffffffffab
push str.reinforce_losing_threshold
push 0
mov dword [esp + 0x7c], 4
call fcn.00702230
push 0xffffffffffffffab
push str.reinforce_losing_threshold
push edi
mov dword [0x9aa314], eax
call fcn.00702230
push 0xffffffffffffffab
push str.reinforce_losing_threshold
push ebp
mov dword [0x9aa318], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa31c], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 0x20
jne 0x708cdb
or dword [0x9aa350], 0x20
push 0xffffffffffffffce
push str.reinforce_losing_point
push 0
mov dword [esp + 0x7c], 5
call fcn.00702230
push 0xffffffffffffffce
push str.reinforce_losing_point
push edi
mov dword [0x9aa308], eax
call fcn.00702230
push 0xffffffffffffffce
push str.reinforce_losing_point
push ebp
mov dword [0x9aa30c], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa310], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 0x40
jne 0x708d31
or dword [0x9aa350], 0x40
push 0x32
push str.reinforce_winning_point
push 0
mov dword [esp + 0x7c], 6
call fcn.00702230
push 0x32
push str.reinforce_winning_point
push edi
mov dword [0x9aa2fc], eax
call fcn.00702230
push 0x32
push str.reinforce_winning_point
push ebp
mov dword [0x9aa300], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa304], eax
mov dword [esp + 0x70], ebx
test byte [0x9aa350], 0x80
jne 0x708d87
or byte [0x9aa350], 0x80
push 0x55
push str.reinforce_winning_threshold
push 0
mov dword [esp + 0x7c], 7
call fcn.00702230
push 0x55
push str.reinforce_winning_threshold
push edi
mov dword [0x9aa2f0], eax
call fcn.00702230
push 0x55
push str.reinforce_winning_threshold
push ebp
mov dword [0x9aa2f4], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2f8], eax
mov dword [esp + 0x70], ebx
mov eax, 0x100
test dword [0x9aa350], eax
jne 0x708ddc
or dword [0x9aa350], eax
push 0x64
push str.reinforce_bonus_castle
push 0
mov dword [esp + 0x7c], esi
call fcn.00702230
push 0x64
push str.reinforce_bonus_castle
push edi
mov dword [0x9aa2e4], eax
call fcn.00702230
push 0x64
push str.reinforce_bonus_castle
push ebp
mov dword [0x9aa2e8], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2ec], eax
mov dword [esp + 0x70], ebx
mov eax, 0x200
test dword [0x9aa350], eax
jne 0x708e35
or dword [0x9aa350], eax
push 0x64
push str.join_plunder_weight
push 0
mov dword [esp + 0x7c], 9
call fcn.00702230
push 0x64
push str.join_plunder_weight
push edi
mov dword [0x9aa2d8], eax
call fcn.00702230
push 0x64
push str.join_plunder_weight
push ebp
mov dword [0x9aa2dc], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2e0], eax
mov dword [esp + 0x70], ebx
mov eax, 0x400
test dword [0x9aa350], eax
jne 0x708e97
or dword [0x9aa350], eax
push 0xc8
push str.join_plunder_weight_hungry
push 0
mov dword [esp + 0x7c], 0xa
call fcn.00702230
push 0xc8
push str.join_plunder_weight_hungry
push edi
mov dword [0x9aa2cc], eax
call fcn.00702230
push 0xc8
push str.join_plunder_weight_hungry
push ebp
mov dword [0x9aa2d0], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2d4], eax
mov dword [esp + 0x70], ebx
mov eax, 0x800
test dword [0x9aa350], eax
jne 0x708ef0
or dword [0x9aa350], eax
push 0x1e
push str.plunder_weight
push 0
mov dword [esp + 0x7c], 0xb
call fcn.00702230
push 0x1e
push str.plunder_weight
push edi
mov dword [0x9aa2c0], eax
call fcn.00702230
push 0x1e
push str.plunder_weight
push ebp
mov dword [0x9aa2c4], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2c8], eax
mov dword [esp + 0x70], ebx
mov eax, 0x1000
test dword [0x9aa350], eax
jne 0x708f52
or dword [0x9aa350], eax
push 0x96
push str.plunder_weight_hungry
push 0
mov dword [esp + 0x7c], 0xc
call fcn.00702230
push 0x96
push str.plunder_weight_hungry
push edi
mov dword [0x9aa2b4], eax
call fcn.00702230
push 0x96
push str.plunder_weight_hungry
push ebp
mov dword [0x9aa2b8], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2bc], eax
mov dword [esp + 0x70], ebx
mov eax, 0x2000
test dword [0x9aa350], eax
jne 0x708fab
or dword [0x9aa350], eax
push 0x1e
push str.army_low_food_treshold
push 0
mov dword [esp + 0x7c], 0xd
call fcn.00702230
push 0x1e
push str.army_low_food_treshold
push edi
mov dword [0x9aa2a8], eax
call fcn.00702230
push 0x1e
push str.army_low_food_treshold
push ebp
mov dword [0x9aa2ac], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2b0], eax
mov dword [esp + 0x70], ebx
mov eax, 0x4000
test dword [0x9aa350], eax
jne 0x709004
or dword [0x9aa350], eax
push 0x64
push str.camp_weight
push 0
mov dword [esp + 0x7c], 0xe
call fcn.00702230
push 0x64
push str.camp_weight
push edi
mov dword [0x9aa29c], eax
call fcn.00702230
push 0x64
push str.camp_weight
push ebp
mov dword [0x9aa2a0], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa2a4], eax
mov dword [esp + 0x70], ebx
mov eax, 0x8000
test dword [0x9aa350], eax
jne 0x70905d
or dword [0x9aa350], eax
push 0x64
push str.fortify_weight
push 0
mov dword [esp + 0x7c], 0xf
call fcn.00702230
push 0x64
push str.fortify_weight
push edi
mov dword [0x9aa290], eax
call fcn.00702230
push 0x64
push str.fortify_weight
push ebp
mov dword [0x9aa294], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa298], eax
mov dword [esp + 0x70], ebx
mov eax, 0x10000
test dword [0x9aa350], eax
jne 0x7090b6
or dword [0x9aa350], eax
push 0x64
push str.fight_enemy_weight
push 0
mov dword [esp + 0x7c], 0x10
call fcn.00702230
push 0x64
push str.fight_enemy_weight
push edi
mov dword [0x9aa284], eax
call fcn.00702230
push 0x64
push str.fight_enemy_weight
push ebp
mov dword [0x9aa288], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa28c], eax
mov dword [esp + 0x70], ebx
mov eax, 0x20000
test dword [0x9aa350], eax
jne 0x70910f
or dword [0x9aa350], eax
push 0x64
push str.fight_rebel_weight
push 0
mov dword [esp + 0x7c], 0x11
call fcn.00702230
push 0x64
push str.fight_rebel_weight
push edi
mov dword [0x9aa278], eax
call fcn.00702230
push 0x64
push str.fight_rebel_weight
push ebp
mov dword [0x9aa27c], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa280], eax
mov dword [esp + 0x70], ebx
mov eax, 0x40000
test dword [0x9aa350], eax
jne 0x709168
or dword [0x9aa350], eax
push 0x32
push str.avoid_enemy_weight
push 0
mov dword [esp + 0x7c], 0x12
call fcn.00702230
push 0x32
push str.avoid_enemy_weight
push edi
mov dword [0x9aa26c], eax
call fcn.00702230
push 0x32
push str.avoid_enemy_weight
push ebp
mov dword [0x9aa270], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa274], eax
mov dword [esp + 0x70], ebx
mov eax, 0x80000
test dword [0x9aa350], eax
jne 0x7091c1
or dword [0x9aa350], eax
push 0x64
push str.recruit_weight
push 0
mov dword [esp + 0x7c], 0x13
call fcn.00702230
push 0x64
push str.recruit_weight
push edi
mov dword [0x9aa260], eax
call fcn.00702230
push 0x64
push str.recruit_weight
push ebp
mov dword [0x9aa264], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa268], eax
mov dword [esp + 0x70], ebx
mov eax, 0x100000
test dword [0x9aa350], eax
jne 0x709223
or dword [0x9aa350], eax
push 0x3e8
push str.recruit_weight_deployed
push 0
mov dword [esp + 0x7c], 0x14
call fcn.00702230
push 0x3e8
push str.recruit_weight_deployed
push edi
mov dword [0x9aa254], eax
call fcn.00702230
push 0x3e8
push str.recruit_weight_deployed
push ebp
mov dword [0x9aa258], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa25c], eax
mov dword [esp + 0x70], ebx
mov eax, 0x200000
test dword [0x9aa350], eax
jne 0x70927c
or dword [0x9aa350], eax
push 0xa
push str.recruit_weight_per_slot
push 0
mov dword [esp + 0x7c], 0x15
call fcn.00702230
push 0xa
push str.recruit_weight_per_slot
push edi
mov dword [0x9aa248], eax
call fcn.00702230
push 0xa
push str.recruit_weight_per_slot
push ebp
mov dword [0x9aa24c], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa250], eax
mov dword [esp + 0x70], ebx
mov eax, 0x400000
test dword [0x9aa350], eax
jne 0x7092d5
or dword [0x9aa350], eax
push 0x64
push str.buy_food_weight
push 0
mov dword [esp + 0x7c], 0x16
call fcn.00702230
push 0x64
push str.buy_food_weight
push edi
mov dword [0x9aa23c], eax
call fcn.00702230
push 0x64
push str.buy_food_weight
push ebp
mov dword [0x9aa240], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa244], eax
mov dword [esp + 0x70], ebx
mov eax, 0x800000
test dword [0x9aa350], eax
jne 0x70932e
or dword [0x9aa350], eax
push 0xa
push str.enter_realm_weight
push 0
mov dword [esp + 0x7c], 0x17
call fcn.00702230
push 0xa
push str.enter_realm_weight
push edi
mov dword [0x9aa230], eax
call fcn.00702230
push 0xa
push str.enter_realm_weight
push ebp
mov dword [0x9aa234], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa238], eax
mov dword [esp + 0x70], ebx
mov eax, 0x1000000
test dword [0x9aa350], eax
jne 0x709387
or dword [0x9aa350], eax
push 0x64
push str.enter_realm_weight_recruit
push 0
mov dword [esp + 0x7c], 0x18
call fcn.00702230
push 0x64
push str.enter_realm_weight_recruit
push edi
mov dword [0x9aa224], eax
call fcn.00702230
push 0x64
push str.enter_realm_weight_recruit
push ebp
mov dword [0x9aa228], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa22c], eax
mov dword [esp + 0x70], ebx
mov eax, 0x2000000
test dword [0x9aa350], eax
jne 0x7093e9
or dword [0x9aa350], eax
push 0x1f4
push str.enter_realm_weight_no_rec
push 0
mov dword [esp + 0x7c], 0x19
call fcn.00702230
push 0x1f4
push str.enter_realm_weight_no_rec
push edi
mov dword [0x9aa218], eax
call fcn.00702230
push 0x1f4
push str.enter_realm_weight_no_rec
push ebp
mov dword [0x9aa21c], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa220], eax
mov dword [esp + 0x70], ebx
mov eax, 0x4000000
test dword [0x9aa350], eax
jne 0x709442
or dword [0x9aa350], eax
push 0x64
push str.primary_target_weight
push 0
mov dword [esp + 0x7c], 0x1a
call fcn.00702230
push 0x64
push str.primary_target_weight
push edi
mov dword [0x9aa20c], eax
call fcn.00702230
push 0x64
push str.primary_target_weight
push ebp
mov dword [0x9aa210], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa214], eax
mov dword [esp + 0x70], ebx
mov eax, 0x8000000
test dword [0x9aa350], eax
jne 0x70949b
or dword [0x9aa350], eax
push 0x64
push str.attack_castle_weight
push 0
mov dword [esp + 0x7c], 0x1b
call fcn.00702230
push 0x64
push str.attack_castle_weight
push edi
mov dword [0x9aa200], eax
call fcn.00702230
push 0x64
push str.attack_castle_weight
push ebp
mov dword [0x9aa204], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa208], eax
mov dword [esp + 0x70], ebx
mov eax, 0x10000000
test dword [0x9aa350], eax
jne 0x7094fd
or dword [0x9aa350], eax
push 0x3e8
push str.empty_castle_weight
push 0
mov dword [esp + 0x7c], 0x1c
call fcn.00702230
push 0x3e8
push str.empty_castle_weight
push edi
mov dword [0x9aa1f4], eax
call fcn.00702230
push 0x3e8
push str.empty_castle_weight
push ebp
mov dword [0x9aa1f8], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa1fc], eax
mov dword [esp + 0x70], ebx
mov eax, 0x20000000
test dword [0x9aa350], eax
jne 0x709556
or dword [0x9aa350], eax
push 0x14
push str.conquer_last_realm
push 0
mov dword [esp + 0x7c], 0x1d
call fcn.00702230
push 0x46
push str.conquer_last_realm
push edi
mov dword [0x9aa1e8], eax
call fcn.00702230
push 0x5a
push str.conquer_last_realm
push ebp
mov dword [0x9aa1ec], eax
call fcn.00702230
add esp, 0x24
mov dword [0x9aa1f0], eax
mov dword [esp + 0x70], ebx
mov ebp, dword [esp + 0x78]
mov cx, word [ebp + 0xfc]
mov ax, word [ebp + 0x13c]
push edi
mov word [esp + 0x28], ax
push ecx
call fcn.00659110
mov edx, dword [ebp]
mov esi, eax
add esp, 8
mov ecx, ebp
mov dword [esp + 0x14], esi
call dword [edx + 0xdc]
test esi, esi
mov dword [esp + 0x1c], eax
je 0x70959b
mov cx, word [esi + 0x2a]
mov word [esp + 0x20], cx
jmp 0x7095a3
mov dword [esp + 0x20], 0
mov di, word [ebp + 0x13c]
push eax
mov dword [esp + 0x44], edi
call fcn.00659140
push edi
mov dword [esp + 0x44], eax
call fcn.00659140
add esp, 8
test esi, esi
mov dword [esp + 0x48], eax
je 0x7095ee
mov edx, dword [esi + 0x64]
mov ecx, dword [0x912e94]
push edx
call fcn.004668b0
test eax, eax
je 0x7095ee
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x7095ee
mov eax, dword [ecx]
call dword [eax + 0x50]
mov dword [esp + 0x78], eax
jmp 0x7095f6
mov dword [esp + 0x78], 0
mov ecx, ebp
call fcn.0055a1d0
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, ebp
call fcn.005597d0
mov ecx, eax
mov eax, dword [ebp + 0x128]
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
cdq
idiv ecx
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
xor ecx, ecx
cmp eax, dword [edx*4 + 0x9aa2a8]
mov ax, word [esp + 0x24]
setl cl
xor edx, edx
cmp word [ebp + 0xfc], ax
mov eax, dword [esp + 0x20]
sete dl
mov esi, ecx
xor ecx, ecx
cmp ax, di
sete cl
mov dword [esp + 0x18], edx
xor edx, edx
cmp ax, word [esp + 0x1c]
mov dword [esp + 0x10], esi
sete dl
mov edi, ecx
mov ecx, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], edx
call fcn.00559ff0
test eax, eax
jne 0x70968e
mov ecx, ebp
call fcn.0055a060
test eax, eax
je 0x709698
mov dword [esp + 0x28], 2
jmp 0x7096ab
mov eax, dword [ebp + 0xcc]
push eax
call fcn.00704a30
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0xb0]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x7096ec
cmp dword [ebp + 0x138], 2
jne 0x7096e2
test edi, edi
je 0x7096e2
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0x874
push 0x8028c4
push 1
push 0
call dword [edx + 0x40]
test eax, eax
jne 0x7096ec
mov dword [esp + 0x34], 0
jmp 0x7096f4
mov dword [esp + 0x34], 1
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
mov dword [esp + 0x54], vtable.CBArray_struct_TAIAttractor_.0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], edi
cmp esi, edi
mov dword [esp + 0x70], 0x1e
je 0x709747
mov ecx, ebp
call fcn.0055a0a0
test eax, eax
je 0x709747
mov ecx, ebp
call fcn.005597d0
xor esi, esi
mov dword [ebp + 0x128], eax
mov dword [esp + 0x10], esi
cmp word [ebp + 0xe0], 0x11
mov ecx, ebp
jne 0x7097b7
call fcn.0055a160
cmp eax, edi
je 0x7097a1
push ebp
call fcn.007088b0
add esp, 4
mov ecx, ebp
call fcn.0055a8e0
mov eax, dword [esp + 0x58]
cmp eax, edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x54], vtable.CBArray_struct_TAIAttractor_.0
je 0x709789
push eax
call fcn.0040fa80
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, ebp
call fcn.0055a8e0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], ebx
cmp eax, edi
jmp 0x70a583
push edi
call fcn.00566420
test eax, eax
jne 0x7097d0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], ebx
cmp eax, edi
jmp 0x70a583
push ebp
call fcn.00705390
add esp, 4
test eax, eax
jne 0x7097fe
and byte [ebp + 0xe2], 0x6f
push edi
push edi
sub esp, 8
mov ecx, esp
push edi
push ecx
call fcn.004693c0
add esp, 8
push 0x27
mov ecx, ebp
call fcn.0056af00
test byte [ebp + 0xe2], 0x80
je 0x709832
sub esp, 8
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], edi
mov dword [eax + 4], edi
mov dx, word [ebp + 0xfe]
push edi
push edi
push edi
push edx
call fcn.00659110
add esp, 8
push eax
push ebp
call fcn.00706b20
add esp, 0x18
mov eax, dword [esp + 0x28]
cmp eax, 4
ja case.default.0x70983f
jmp dword [eax*4 + 0x70a748]
push ebp
call fcn.00706e80
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x38], ebx
je 0x7098f1
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
mov ecx, dword [0x912e94]
mov edi, eax
mov eax, dword [ebx + 0x64]
push eax
call fcn.004668b0
test eax, eax
je 0x709892
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x709892
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ebx, eax
jmp 0x709894
xor ebx, ebx
mov edx, dword [ebp]
mov esi, dword [ebx]
push 0
lea eax, [edi + 0xc]
push eax
push 0x7c1f14
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call dword [edx + 0x148]
push eax
mov ecx, ebx
call dword [esi + 0x160]
mov dword [edi], 0xa
mov ecx, dword [ebp + 0x138]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc8
add ecx, 0x39
mov dword [edi + 4], ecx
cmp dword [ebp + 0x138], 1
jne 0x7098e8
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x64]
jmp 0x7098ea
xor eax, eax
mov esi, dword [esp + 0x10]
mov dword [edi + 8], eax
test esi, esi
je 0x70995f
cmp dword [esp + 0x30], 0
je 0x70995f
cmp dword [esp + 0x18], 0
jne 0x70990c
cmp dword [ebp + 0x138], 5
je 0x70995f
mov esi, dword [esp + 0x78]
test esi, esi
je 0x709963
mov eax, dword [esi + 0x1c]
push eax
call fcn.0055b4a0
add esp, 4
test eax, eax
jne 0x709963
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c4]
test eax, eax
je 0x709963
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
mov eax, esi
mov edi, dword [eax + 0x1c]
push ecx
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
xor ecx, ecx
mov dword [eax], 8
mov dword [eax + 4], 0x3a
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], edi
mov esi, dword [esp + 0x78]
cmp dword [ebp + 0x138], 1
je 0x709977
mov ecx, ebp
call fcn.00566490
test eax, eax
jne 0x7099e8
test byte [ebp + 0x140], 0x80
jne 0x7099e8
cmp dword [esp + 0x30], 0
je 0x7099e8
cmp dword [esp + 0x18], 0
jne 0x709997
cmp dword [ebp + 0x138], 5
je 0x7099e8
test esi, esi
je 0x7099e8
mov eax, dword [esi + 0x1c]
push eax
call fcn.0055b4a0
add esp, 4
test eax, eax
jne 0x7099e8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c4]
test eax, eax
je 0x7099e8
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
mov edi, dword [eax + 0x1c]
push ecx
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
xor ecx, ecx
mov dword [eax], 7
mov dword [eax + 4], 0x39
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], edi
cmp dword [ebp + 0x138], 1
je 0x709a16
mov eax, dword [ebp + 0x9c]
lea ecx, [ebp + 0x9c]
call dword [eax + 0x48]
mov ecx, ebp
mov esi, eax
call fcn.0055ee70
cmp esi, eax
jae case.0x70983f.1
test byte [ebp + 0x140], 0x80
jne case.0x70983f.1
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.007060b0
add esp, 8
test byte [ebp + 0x140], 0x10
jne 0x709a66
cmp dword [esp + 0x34], 0
je 0x709a66
mov ecx, ebp
call fcn.0055a110
test eax, eax
jne 0x709a66
mov edx, dword [ebp + 0x9c]
lea ecx, [ebp + 0x9c]
call dword [edx + 0x48]
cmp eax, 1
jbe 0x709a66
push 0x12c
lea eax, [esp + 0x58]
push eax
push ebp
call fcn.00706320
add esp, 0xc
test byte [ebp + 0x140], 0x20
mov dword [esp + 0x38], 0
jne case.0x70983f.2
mov ecx, ebp
call fcn.0055a110
test eax, eax
jne case.0x70983f.2
cmp dword [esp + 0x18], eax
jne 0x709a91
cmp dword [ebp + 0x138], 5
je case.0x70983f.2
mov edx, dword [ebp + 0x9c]
lea ecx, [ebp + 0x9c]
call dword [edx + 0x48]
cmp eax, 1
jbe case.0x70983f.2
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
call dword [edx + 0x148]
push eax
push 0x30
mov ecx, ebp
call fcn.005620a0
cmp eax, 2
jge case.0x70983f.2
push 0x12c
lea ecx, [esp + 0x58]
push ecx
push ebp
call fcn.00706410
add esp, 0xc
cmp dword [ebp + 0x138], 2
jne case.0x70983f.3
cmp dword [esp + 0x14], 0
je case.0x70983f.3
cmp dword [esp + 0x44], 0
je case.0x70983f.3
test byte [ebp + 0x140], 1
jne 0x709b8e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x64]
push eax
mov ecx, ebp
call fcn.00569990
test eax, eax
je 0x709b8e
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0xe4]
mov ecx, dword [0x912e94]
push edx
call fcn.004668b0
test eax, eax
je 0x709b59
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x709b59
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x709b59
push 1
push ebp
mov ecx, eax
call fcn.00574ec0
test eax, eax
je 0x709b8e
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x64]
mov ebx, dword [esp + 0x64]
push edi
mov ecx, ebp
call fcn.00569990
mov edx, dword [esp + 0x54]
push ebx
lea ecx, [esp + 0x58]
mov esi, eax
call dword [edx + 0x14]
xor ecx, ecx
mov dword [eax], 0xb
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], edi
test byte [ebp + 0x140], 2
jne case.0x70983f.3
push ebp
call fcn.00705520
mov edi, eax
xor esi, esi
add esp, 4
cmp edi, esi
je case.0x70983f.3
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
mov dword [eax], 0xb
mov dword [eax + 4], 0x21
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 8], edi
test byte [ebp + 0x140], 8
mov eax, dword [ebp + 0x138]
jne 0x709c15
cmp eax, 4
je 0x709c0c
cmp eax, 5
jne 0x709bf5
mov ax, word [ebp + 0xfc]
cmp ax, word [esp + 0x24]
je 0x709c0c
push 4
push 0x12c
lea ecx, [esp + 0x5c]
push ecx
push ebp
call fcn.007083c0
add esp, 0x10
jmp 0x709c2f
push 4
lea edx, [esp + 0x58]
push edx
jmp 0x709c26
cmp eax, 2
je 0x709c1f
cmp eax, 1
jne 0x709c2f
push 6
lea eax, [esp + 0x58]
push eax
push ebp
call fcn.00705e60
add esp, 0xc
test byte [ebp + 0x140], 4
jne case.0x70983f.4
cmp dword [ebp + 0x138], 3
jne 0x709c5c
mov eax, dword [esp + 0x1c]
cmp word [esp + 0x20], ax
je 0x709c8f
mov ecx, dword [esp + 0x14]
push 1
push eax
call fcn.00669720
test eax, eax
jne 0x709c8f
mov eax, dword [ebp + 0x138]
cmp eax, 4
je 0x709c8f
cmp eax, 5
jne 0x709c7a
mov cx, word [esp + 0x24]
cmp word [ebp + 0xfc], cx
je 0x709c8f
push 0x12c
lea edx, [esp + 0x58]
push edx
push ebp
call fcn.00708510
add esp, 0xc
jmp case.0x70983f.4
lea eax, [esp + 0x54]
push eax
push ebp
call fcn.00705f80
add esp, 8
cmp dword [ebp + 0x138], 5
jne 0x709cbd
cmp dword [esp + 0x18], 0
je 0x709cbd
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.00705cc0
add esp, 8
jmp case.default.0x70983f
test byte [ebp + 0x140], 0x40
jne case.default.0x70983f
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov ecx, dword [eax*4 + 0x9aa344]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
call fcn.007082b0
add esp, 0xc
mov eax, dword [esp + 0x64]
test eax, eax
je 0x70a575
add eax, eax
add eax, eax
push eax
call fcn.0040fa60
mov ecx, dword [esp + 0x68]
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
add esp, 4
test eax, eax
mov dword [esp + 0x18], ebx
jbe 0x70a554
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
mov edi, eax
mov eax, dword [edi]
cmp eax, 0xb
mov dword [esp + 0x44], edi
ja case.0x709d43.9
jmp dword [eax*4 + 0x70a75c]
mov ecx, dword [edi + 8]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je case.0x709d43.9
lea ecx, [eax - 0x18]
test ecx, ecx
je case.0x709d43.9
mov edx, dword [ecx]
call dword [edx + 0x28]
mov esi, eax
test esi, esi
mov dword [esp + 0x44], esi
je case.0x709d43.9
cmp dword [esi + 0x40], 1
jne 0x709d9c
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00574a00
test al, 2
je 0x709d9c
mov dword [edi + 4], 0x34
cmp dword [esi + 0x40], 2
jne 0x709e26
mov ecx, dword [esi + 0xac]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x709dd8
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x709dd8
mov edx, dword [ecx]
call dword [edx + 0x38]
test eax, eax
je 0x709dd8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x280]
jmp 0x709dda
xor eax, eax
cmp dword [esp + 0x10], 0
je 0x709e06
cmp ax, 2
jne 0x709e06
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
mov edx, dword [ecx*4 + 0x9aa2cc]
mov eax, dword [esp + 0x78]
mov dword [ebx + eax*4], edx
jmp 0x709f89
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov eax, dword [edx*4 + 0x9aa2d8]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp 0x709f89
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov esi, dword [edi + 0xa0]
push edx
mov ecx, edi
call fcn.00574a00
cmp eax, 1
je 0x709e43
neg esi
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
add ecx, ecx
add ecx, ecx
cmp esi, dword [ecx + 0x9aa314]
jl 0x709f3c
cmp esi, dword [ecx + 0x9aa308]
jge 0x709ea3
movzx eax, byte [eax + 0x360]
add eax, eax
mov ecx, dword [eax + eax + 0x9aa338]
mov edx, dword [eax + eax + 0x9aa308]
add eax, eax
mov eax, dword [eax + 0x9aa314]
push ecx
push 0
push edx
push eax
push esi
call fcn.0046f240
mov esi, dword [esp + 0x8c]
add esp, 0x14
mov dword [ebx + esi*4], eax
jmp 0x709f47
test esi, esi
jge 0x709ecc
movzx eax, byte [eax + 0x360]
add eax, eax
mov ecx, dword [eax + eax + 0x9aa32c]
mov edx, dword [eax + eax + 0x9aa338]
add eax, eax
mov eax, dword [eax + 0x9aa308]
push ecx
push edx
push 0
jmp 0x709e8a
cmp esi, dword [ecx + 0x9aa2fc]
jge 0x709f0d
movzx eax, byte [eax + 0x360]
add eax, eax
mov ecx, dword [eax + eax + 0x9aa320]
mov edx, dword [eax + eax + 0x9aa32c]
add eax, eax
mov eax, dword [eax + 0x9aa2fc]
push ecx
push edx
push eax
push 0
push esi
call fcn.0046f240
mov esi, dword [esp + 0x8c]
add esp, 0x14
mov dword [ebx + esi*4], eax
jmp 0x709f47
cmp esi, dword [ecx + 0x9aa2f0]
jge 0x709f3c
movzx eax, byte [eax + 0x360]
add eax, eax
mov ecx, dword [eax + eax + 0x9aa320]
mov edx, dword [eax + eax + 0x9aa2f0]
add eax, eax
mov eax, dword [eax + 0x9aa2fc]
push 0
push ecx
jmp 0x709e89
mov esi, dword [esp + 0x78]
mov dword [ebx + esi*4], 0
cmp dword [ebx + esi*4], 0
je 0x709f89
mov ecx, dword [edi + 0xac]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x709f89
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x709f89
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
je 0x709f89
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
mov edx, dword [ecx*4 + 0x9aa2e4]
add dword [ebx + esi*4], edx
push 0
mov ecx, ebp
call fcn.0055a390
test eax, eax
jne case.0x709d43.9
mov eax, dword [esp + 0x78]
mov dword [ebx + eax*4], 0
jmp case.0x709d43.9
cmp dword [esp + 0x10], 0
jne 0x70a00e
mov ecx, ebp
call fcn.00559ea0
test eax, eax
jne 0x70a00e
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov eax, dword [edx*4 + 0x9aa29c]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
cmp dword [esp + 0x10], 0
jne 0x70a00e
mov ecx, ebp
call fcn.00559ea0
test eax, eax
jne 0x70a00e
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov eax, dword [eax*4 + 0x9aa290]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
push 0
mov ecx, ebp
call fcn.0055a390
test eax, eax
mov dword [esp + 0x34], eax
je case.0x709d43.0
mov edx, dword [edi + 8]
mov ecx, dword [0x912e94]
push edx
call fcn.004668b0
test eax, eax
je 0x70a052
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x70a052
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x70a054
xor eax, eax
push 0
mov ecx, eax
call fcn.0055a390
cmp eax, 1
mov esi, eax
jg 0x70a069
mov esi, 1
cmp dword [ebp + 0x138], 1
jne 0x70a090
mov edx, dword [esp + 0x34]
lea ecx, [esi + esi*2]
lea eax, [edx + edx]
cmp ecx, eax
jle 0x70a090
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], 0
jmp case.0x709d43.9
cmp dword [edi], 4
jne 0x70a0ab
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov ecx, dword [eax*4 + 0x9aa284]
jmp 0x70a0bf
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov ecx, dword [edx*4 + 0x9aa278]
mov eax, ecx
imul eax, dword [esp + 0x34]
cdq
idiv esi
mov edx, dword [esp + 0x78]
cmp eax, ecx
mov dword [ebx + edx*4], eax
jge case.0x709d43.9
add eax, eax
sub eax, ecx
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and eax, ecx
mov dword [ebx + edx*4], eax
jmp case.0x709d43.9
mov ecx, ebp
call fcn.0055a0a0
test eax, eax
jne case.0x709d43.0
cmp dword [ebp + 0x138], 2
jne 0x70a118
mov cx, word [esp + 0x20]
cmp cx, word [esp + 0x40]
jne case.0x709d43.0
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov ecx, dword [eax*4 + 0x9aa26c]
mov edx, dword [esp + 0x78]
mov dword [ebx + edx*4], ecx
jmp case.0x709d43.9
test byte [ebp + 0xe2], 0x10
je 0x70a16a
cmp dword [ebp + 0x138], 1
je 0x70a173
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov eax, dword [edx*4 + 0x9aa254]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
cmp dword [ebp + 0x138], 1
jne 0x70a193
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov ecx, dword [eax*4 + 0x9aa260]
mov edx, dword [esp + 0x78]
mov dword [ebx + edx*4], ecx
jmp case.0x709d43.9
mov ecx, ebp
call fcn.0055a2d0
mov ecx, ebp
movzx esi, ax
call fcn.0055ee70
sub eax, esi
cmp eax, 1
jg 0x70a1b0
mov eax, 1
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov ecx, dword [edx*4 + 0x9aa248]
mov edx, dword [esp + 0x78]
imul ecx, eax
mov dword [ebx + edx*4], ecx
jmp case.0x709d43.9
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
add ecx, ecx
mov esi, dword [ecx + ecx + 0x9aa23c]
add ecx, ecx
mov eax, 1
sub eax, esi
imul eax, dword [ebp + 0x128]
cdq
idiv dword [ecx + 0x9aa2a8]
mov ecx, dword [esp + 0x78]
add eax, esi
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
cmp dword [ebp + 0x138], 1
jne 0x70a2a1
mov ecx, ebp
call fcn.0055a440
mov dx, word [ebp + 0xfc]
mov esi, dword [eax + 0x3c]
push esi
push edx
call fcn.00702700
add esp, 8
push esi
mov edi, eax
mov eax, dword [esp + 0x48]
push 0
add eax, 0xc
push 0
push eax
call fcn.0065f120
add esp, 0xc
push eax
call fcn.00702700
add esp, 8
test edi, edi
mov ecx, eax
je 0x70a281
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov eax, dword [eax*4 + 0x9aa224]
imul eax, ecx
cdq
idiv edi
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov eax, dword [edx*4 + 0x9aa218]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
mov edx, dword [0x914138]
movzx eax, byte [edx + 0x360]
mov ecx, dword [eax*4 + 0x9aa230]
mov edx, dword [esp + 0x78]
mov dword [ebx + edx*4], ecx
jmp case.0x709d43.9
mov eax, dword [edi + 4]
cmp eax, 0x2e
je 0x70a364
cmp eax, 0x33
je 0x70a364
cmp eax, 0x21
jne 0x70a354
cmp dword [esp + 0x10], 0
je 0x70a334
mov eax, dword [edi + 8]
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
test eax, eax
je 0x70a303
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x70a303
mov edx, dword [ecx]
call dword [edx + 0x38]
jmp 0x70a305
xor eax, eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x280]
cmp ax, 2
jne 0x70a334
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
mov edx, dword [ecx*4 + 0x9aa2b4]
mov eax, dword [esp + 0x78]
mov dword [ebx + eax*4], edx
jmp case.0x709d43.9
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
mov eax, dword [edx*4 + 0x9aa2c0]
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
jmp case.0x709d43.9
mov edx, dword [esp + 0x78]
mov dword [ebx + edx*4], 0x64
jmp case.0x709d43.9
mov eax, dword [edi + 8]
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
test eax, eax
je 0x70a387
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x70a387
mov edx, dword [ecx]
call dword [edx + 0x50]
mov edi, eax
jmp 0x70a389
xor edi, edi
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x34], edi
call dword [eax + 0x28c]
mov edx, dword [edi]
mov ecx, edi
movzx esi, al
call dword [edx + 0x298]
add esi, eax
mov eax, dword [edi + 0x158]
add edi, 0x158
mov ecx, edi
lea esi, [esi + esi*2]
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x28], eax
je 0x70a402
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov ecx, dword [eax]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x70a3fb
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x70a3fb
mov edx, dword [ecx]
call dword [edx + 0x24]
test eax, eax
je 0x70a3fb
push 0
mov ecx, eax
call fcn.0055a390
add esi, eax
cmp dword [esp + 0x28], 0
jne 0x70a3c2
test esi, esi
jne 0x70a425
mov eax, dword [0x914138]
movzx ecx, byte [eax + 0x360]
mov edx, dword [ecx*4 + 0x9aa1f4]
mov eax, dword [esp + 0x78]
mov dword [ebx + eax*4], edx
jmp 0x70a4c8
push 0
mov ecx, ebp
call fcn.0055a390
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
imul eax, dword [edx*4 + 0x9aa200]
cdq
idiv esi
mov ecx, dword [esp + 0x78]
mov dword [ebx + ecx*4], eax
mov ecx, ebp
call fcn.0055a0a0
test eax, eax
jne 0x70a4c8
mov esi, dword [esp + 0x48]
mov edx, dword [esi + 0x24]
add esi, 0x24
mov ecx, esi
xor bl, bl
call dword [edx + 0x2c]
test eax, eax
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
je 0x70a496
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov ax, word [eax]
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0x5c]
or bl, byte [eax + 0x30]
cmp dword [esp + 0x38], 0
jne 0x70a475
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov esi, dword [edi]
call dword [edx + 0xd4]
mov ecx, edi
push eax
call dword [esi + 0x5c]
mov al, byte [eax + 0x30]
mov cl, bl
call fcn.007048c0
cmp eax, 2
jge 0x70a4c8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword [eax + ecx*4], 0
cmp dword [ebp + 0x138], 2
jne case.0x709d43.9
mov edx, dword [0x914138]
mov ax, word [edx + 0x1ac]
cmp word [esp + 0x40], ax
jne case.0x709d43.9
push eax
call fcn.00659140
lea ecx, [eax + 0x24]
mov eax, dword [ecx]
add esp, 4
call dword [eax + 0x48]
cmp eax, 1
jne case.0x709d43.9
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0x9b4
push 0x8028c4
push 0x64
push 0
call dword [edx + 0x40]
mov ecx, dword [0x914138]
movzx edx, byte [ecx + 0x360]
cmp eax, dword [edx*4 + 0x9aa1e8]
jge case.0x709d43.9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword [eax + ecx*4], 0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x18]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x78], ecx
jb 0x709d22
mov edx, dword [ebp + 0xcc]
mov ecx, dword [ebp + 0x1c]
push edx
push ecx
push eax
push ebx
call fcn.00701ea0
push ebx
mov esi, eax
call fcn.0040fa80
add esp, 0x14
test esi, esi
jge 0x70a5ab
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], 0xffffffff
test eax, eax
mov dword [esp + 0x54], vtable.CBArray_struct_TAIAttractor_.0
je 0x70a596
push eax
call fcn.0040fa80
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edx, dword [esp + 0x54]
push esi
lea ecx, [esp + 0x58]
call dword [edx + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x34]
test eax, eax
je case.0x70a5e4.2
cmp dword [eax + 0x3c], 0
jne case.0x70a5e4.2
mov eax, dword [esi + 4]
add eax, 0xffffffff
cmp eax, 0x39
ja case.0x70a5e4.2
movzx eax, byte [eax + 0x70a7b4]
jmp dword [eax*4 + 0x70a78c]
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_reinforce
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_camp
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_fortify
jmp 0x70a6c7
cmp dword [esi], 5
mov ecx, dword [0x894420]
mov edi, dword [ebp]
push 0
push 0xffff
push 0
push 0
push 0
jne 0x70a655
push str.ai_orders_sub_fight_rebel
jmp 0x70a6d0
push str.ai_orders_sub_fight_enemy
jmp 0x70a6d0
cmp dword [esi], 6
jne case.0x70a5e4.2
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_retreat
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_recruit
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_buy_food
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_siege
jmp 0x70a6c7
push 0
push 0xffff
push 0
push 0
push 0
push str.ai_orders_sub_plunder
mov ecx, dword [0x894420]
mov edi, dword [ebp]
call fcn.00414e70
mov ecx, ebp
push eax
call dword [edi + 0x128]
mov ecx, dword [esi + 0xc]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 4], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x80], esp
push eax
push ecx
mov ecx, esi
call fcn.00704d50
push eax
push ebp
call fcn.00706b20
mov esi, eax
mov eax, dword [esp + 0x70]
add esp, 0x18
test eax, eax
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x54], vtable.CBArray_struct_TAIAttractor_.0
je 0x70a731
push eax
call fcn.0040fa80
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret