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

Disassembly:
sub esp, 0x4dc
push ebx
push ebp
xor ebx, ebx
push esi
or ebp, 0xffffffff
push edi
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x8c], ebp
call fcn.00453830
push ebx
call fcn.00488e30
mov eax, dword [0x728a84]
mov ecx, dword [0x7283bc]
mov edx, dword [0x728820]
mov dword [eax*4 + 0x7288f4], ecx
mov al, byte [0x727d98]
mov esi, dword [0x728a84]
mov byte [edx + 0x728814], al
mov edx, dword [0x728820]
add esp, 4
inc esi
inc edx
cmp al, 1
mov dword [0x728a84], esi
mov dword [0x7283bc], 0x400
mov dword [0x728820], edx
je 0x457170
call fcn.004810a0
mov ecx, dword [0x85c164]
mov eax, ecx
shr eax, 2
and al, 1
and ecx, 0xfffffffb
lea esi, [esp + 0x198]
mov byte [0x727d98], 1
mov byte [0x8cbdf4], 1
mov byte [esp + 0x2f], al
mov dword [0x85c164], ecx
call fcn.00454440
mov dword [0x874bd0], ebp
xor ecx, ecx
mov eax, 0x862b70
test byte [eax], 8
jne 0x4571c3
add eax, 0x20
inc ecx
cmp eax, 0x8630f0
jl 0x4571b1
jmp 0x4571c9
mov dword [0x874bd0], ecx
push 0xc0
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x457231
mov edx, dword [0x729444]
mov ecx, dword [0x728380]
mov eax, dword [0x8ec008]
push 0x300
push 0x400
push ebx
push ebx
push ebp
inc edx
push ecx
mov dword [0x729444], edx
mov edx, dword [0x72837c]
push edx
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
push ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.pauseMenuBG.dds
mov ecx, esi
call fcn.004be370
jmp 0x457233
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x54], esi
je 0x45723e
inc dword [esi + 4]
mov eax, dword [esp + 0x1b4]
lea esi, [esp + 0x84]
call fcn.004568f0
push 0xc0
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4572b7
mov eax, dword [0x8ec008]
mov edx, dword [0x729444]
push 0x200
push 0x100
push ebx
push ebx
push ebp
push 0x200
push 0x100
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
push ebx
mov dword [esi + 0x64], ebx
inc edx
mov dword [esi + 0xbc], ebx
push eax
mov eax, dword [esp + 0xac]
xor ebx, ebx
mov ecx, esi
mov dword [0x729444], edx
call fcn.004be370
jmp 0x4572b9
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x70], esi
je 0x4572c4
inc dword [esi + 4]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
push 0xc0
mov dword [esp + 0xe0], eax
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x457368
mov eax, dword [0x8ec008]
mov edx, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push ebp
push 0x100
push 0x100
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
push ebx
mov dword [esi + 0x64], ebx
inc edx
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.marquis_256.dds
mov ecx, esi
mov dword [0x729444], edx
call fcn.004be370
jmp 0x45736a
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x80], esi
je 0x457378
inc dword [esi + 4]
push 0xc0
mov dword [esp + 0x70], ebx
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4573d0
mov eax, dword [0x8ec008]
mov edx, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push ebp
push ebx
push ebx
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
push ebx
mov dword [esi + 0x64], ebx
inc edx
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.button_continueExit.kfm
mov ecx, esi
mov dword [0x729444], edx
call fcn.004be370
jmp 0x4573d2
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x68], esi
je 0x4573dd
inc dword [esi + 4]
push 0xc0
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x457431
mov eax, dword [0x8ec008]
mov edx, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push ebp
push ebx
push ebx
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
push ebx
mov dword [esi + 0x64], ebx
inc edx
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.xMark.dds
mov ecx, esi
mov dword [0x729444], edx
call fcn.004be370
jmp 0x457433
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x50], esi
je 0x45743e
inc dword [esi + 4]
mov esi, dword [0x874bd0]
cmp esi, ebp
je 0x4574f8
push 0xc0
call fcn.005354b8
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4574c5
mov eax, esi
lea esi, [esp + 0x94]
mov dword [esp + 0x14], 1
call fcn.00457060
mov ecx, dword [0x8ec008]
mov eax, dword [eax]
mov esi, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push ebp
push 0x100
push 0x100
mov dword [edi + 4], ebx
push ebx
mov dword [edi], 0x6ff14c
mov dword [edi + 0x1c], ebx
push ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0xbc], ebx
push ecx
inc esi
xor ebx, ebx
mov ecx, edi
mov dword [0x729444], esi
call fcn.004be370
mov eax, dword [edi + 4]
inc eax
mov dword [esp + 0x6c], edi
mov dword [edi + 4], eax
test byte [esp + 0x14], 1
je 0x4574f8
mov eax, dword [esp + 0x94]
add eax, 0xfffffff8
cmp eax, ebx
je 0x4574ea
cmp eax, 0x8cccc8
je 0x4574ea
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebp, 0x8cccd0
mov dword [esp + 0x94], ebp
jmp 0x4574fd
mov ebp, 0x8cccd0
xor edi, edi
nop
mov eax, edi
call fcn.00456a80
mov ecx, dword [esp + edi*4 + 0xb8]
mov esi, eax
cmp ecx, esi
je 0x457531
cmp ecx, ebx
je 0x457523
dec dword [ecx + 4]
jne 0x457523
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, ebx
mov dword [esp + edi*4 + 0xb8], esi
je 0x457531
inc dword [esi + 4]
inc edi
cmp edi, 0xa
jl 0x457500
xor edi, edi
lea esp, [esp]
mov esi, dword [edi + 0x8cb568]
cmp esi, ebx
je 0x45755e
call fcn.00509910
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x8cb568], ebx
push 0x68
call fcn.005354b8
add esp, 4
cmp eax, ebx
je 0x4575da
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov dword [eax + 0x54], ebx
xor ecx, ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov edx, dword [0x8ccd20]
mov dword [eax + 0x60], edx
mov dword [0x8ccd20], eax
mov dword [eax], ebx
mov ecx, dword [0x71979c]
mov dword [eax + 0x14], ecx
mov edx, dword [0x7197a0]
mov dword [eax + 0x18], edx
mov ecx, dword [0x7197a4]
mov dword [eax + 0x1c], ecx
mov edx, dword [0x7197a8]
mov dword [eax + 0x20], edx
mov dword [eax + 0x64], ebx
jmp 0x4575dc
xor eax, eax
mov ecx, dword [edi + 0x7281f4]
push ecx
push eax
mov dword [edi + 0x8cb568], eax
call fcn.00509df0
mov ecx, dword [0x729b28]
mov edx, dword [ecx]
mov esi, dword [edi + 0x8cb568]
push ebx
push 2
call dword [edx + 4]
add edi, 4
cmp edi, 0xc
mov dword [esi + 0x64], eax
jl 0x457540
mov al, byte [0x8ccc27]
test al, al
mov esi, dword [esp + 0x54]
je 0x457624
mov byte [esp + 0x1f], 1
mov al, byte [0x8eaeff]
test al, al
jne 0x4576ba
sub esp, 0x64
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a8], ebx
mov dword [esp + 0x1ac], ebx
mov dword [esp + 0x1cc], ebx
lea eax, [esp + 0x194]
mov ebx, esp
mov dword [esp + 0x1f4], ebp
mov dword [esp + 0x194], 0x13
mov dword [esp + 0x19c], 7
mov dword [esp + 0x1a4], 0x64
mov dword [esp + 0x1b0], 1
mov dword [esp + 0x1b4], 4
mov dword [esp + 0x1bc], 0x3f800000
call fcn.00498530
mov edi, 0x8e87b4
call fcn.004a1410
mov dword [esp + 0x190], ebp
xor ebx, ebx
cmp esi, ebx
mov word [0x86e330], bx
je 0x4576ef
fild dword [esi + 0x38]
push ebx
push 0x42c80000
fmul dword [0x70de8c]
call fcn.005f275c
fild dword [esi + 0x34]
push eax
fmul dword [0x70de8c]
call fcn.005f275c
push eax
push esi
call fcn.004bc130
sub esp, 0x2c
mov ecx, 0xb
lea esi, [esp + 0x1c4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00456d30
add esp, 0x2c
push ebx
push 0x48
call fcn.00487950
mov eax, dword [0x85c268]
cdq
and edx, 0xf
add eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
mov eax, 0x2aaaaaab
imul edx
push ebx
push 0xffffffffffffffff
push 1
sar edx, 2
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x37
sar ecx, 4
add eax, edx
push ecx
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
mov ecx, dword [0x85c268]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0x20]
mov edx, dword [0x85c26c]
add edx, edx
mov eax, 0x55555556
imul edx
add esp, 0x28
push ebx
mov eax, edx
push 0x42480000
shr eax, 0x1f
push ecx
mov ecx, dword [esp + 0x7c]
add eax, edx
push eax
push ecx
call fcn.004bc130
xor ebp, ebp
xor edi, edi
push ebp
push str._QUAYLE
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c26c]
add ecx, ecx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push eax
call fcn.00487f30
mov eax, dword [esp + 0x1c4]
add esp, 0x10
push ebx
push 0xffffffffffffffff
push 4
cmp ebp, eax
mov eax, dword [0x85c268]
push 0xffffffffffffffff
push 0x4b
cdq
jne 0x457816
and edx, 0xf
add eax, edx
sar eax, 4
lea esi, [eax + edi - 6]
mov eax, dword [0x85c26c]
lea ecx, [eax + eax*2]
shl ecx, 1
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
push eax
mov eax, dword [0x8cb568]
jmp 0x457843
and edx, 0xf
add eax, edx
mov ecx, eax
mov eax, dword [0x85c26c]
lea esi, [eax + eax*2]
shl esi, 1
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
sar ecx, 4
mov eax, edx
add ecx, edi
shr eax, 0x1f
add eax, edx
push ecx
push eax
xor eax, eax
push 0x86bb48
call fcn.004b0b40
add esp, 0x20
add edi, 0xf
inc ebp
cmp edi, 0x11d
jl 0x457795
push str.Rank
mov esi, 0x8ebf58
call fcn.004f7660
mov eax, dword [0x85c268]
cdq
sub eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
add esp, 4
mov eax, 0x2aaaaaab
imul edx
push ebx
push 0xffffffffffffffff
push 1
sar edx, 2
push 0xffffffffffffffff
sar ecx, 1
mov eax, edx
shr eax, 0x1f
push 0x33
add ecx, 0x10
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Villain_Avenged
call fcn.004f7660
mov eax, dword [0x85c268]
cdq
add esp, 0x24
sub eax, edx
mov ecx, eax
mov eax, dword [0x85c26c]
push ebx
push 0xffffffffffffffff
cdq
push 1
sub eax, edx
push 0xffffffffffffffff
sar ecx, 1
sar eax, 1
push 0x33
add ecx, 0x10
sub eax, 0x40
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Relatives_Rescued
call fcn.004f7660
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
add esp, 0x24
mov eax, 0x2aaaaaab
imul edx
push ebx
push 0xffffffffffffffff
push 1
sar edx, 2
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x33
sar ecx, 2
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Pirates
call fcn.004f7660
add esp, 0x24
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
mov eax, 0x55555556
imul edx
push ebx
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x33
sar ecx, 2
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Treasures
call fcn.004f7660
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
add esp, 0x24
push ebx
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [0x85c26c]
push 0xffffffffffffffff
push 1
cdq
push 0xffffffffffffffff
sub eax, edx
push 0x33
sar ecx, 2
sar eax, 1
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Romance
call fcn.004f7660
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
add esp, 0x24
add edx, edx
mov eax, 0x55555556
imul edx
push ebx
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x33
sar ecx, 2
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Fame
call fcn.004f7660
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
add esp, 0x24
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [0x85c26c]
lea edx, [eax + eax*4]
mov eax, 0x2aaaaaab
imul edx
push ebx
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x33
sar ecx, 2
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
push str.Lost_Cities_Found
call fcn.004f7660
mov eax, dword [0x85c268]
imul eax, eax, 7
cdq
and edx, 7
add eax, edx
mov edx, dword [0x85c26c]
mov ecx, eax
add esp, 0x24
mov eax, 0x2aaaaaab
imul edx
push ebx
push 0xffffffffffffffff
push 1
sar edx, 2
push 0xffffffffffffffff
sar ecx, 3
mov eax, edx
shr eax, 0x1f
push 0x33
sub ecx, 8
add eax, edx
push ecx
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
call fcn.004b0b40
add esp, 0x20
nop
push ebx
push str._NATIONALITY
mov esi, 0x8ebf58
call fcn.004f7660
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
lea ebp, [eax + eax*4]
mov eax, dword [0x85c268]
cdq
sub eax, edx
shl ebp, 3
sar eax, 1
mov edi, ebx
and edi, 0x80000001
lea ecx, [eax + ebp + 0x38]
jns 0x457b0a
dec edi
or edi, 0xfffffffe
inc edi
mov edx, dword [0x85c26c]
imul edi, edi, 0x70
mov eax, 0x2aaaaaab
imul edx
push 0
push 0xffffffffffffffff
sar edx, 2
push 1
mov eax, edx
shr eax, 0x1f
push 0xffffffffffffffff
add eax, edx
push 0x37
add eax, edi
push ecx
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
mov al, byte [ebx*2 + 0x86ba88]
add esp, 0x28
cmp al, 1
jbe 0x457b8b
movzx ecx, al
mov eax, dword [0x85c268]
cdq
sub eax, edx
mov edx, dword [0x85c26c]
mov ecx, dword [esp + ecx*4 + 0xb8]
sar eax, 1
lea esi, [eax + ebp + 0x3d]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
push 0
mov eax, edx
shr eax, 0x1f
push 0x42700000
add eax, edx
push esi
lea eax, [eax + edi + 0x46]
push eax
push ecx
jmp 0x457bf7
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ebp + 0x35]
mov dword [esp + 0x28], edx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + edi + 0x3e]
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x24], edx
je 0x457c08
mov esi, eax
fild dword [esi + 0x38]
push 0
push 0x42a20000
fmul dword [0x7158f8]
fiadd dword [esp + 0x30]
call fcn.005f275c
fild dword [esi + 0x34]
push eax
fmul dword [0x7158f8]
fiadd dword [esp + 0x30]
call fcn.005f275c
push eax
push esi
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ebp, [eax + ebp + 0x2d]
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dx, word [0x86e330]
lea edi, [eax + edi + 0x36]
movsx eax, dx
shl eax, 1
mov word [eax + 0x86de80], bp
add ebp, 0x20
mov word [eax + 0x86e010], di
add edi, 0x20
inc dx
mov word [eax + 0x86e1a0], bx
inc ebx
cmp ebx, 3
mov word [eax + 0x86dcf0], di
mov word [eax + 0x86db60], bp
mov word [0x86e330], dx
jle 0x457ad0
test dword [0x85c164], 0x80000
je 0x457d0e
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
push 0
sar ecx, 1
sub eax, edx
push 0x41f00000
add ecx, 0x51
sar eax, 1
push ecx
mov ecx, dword [esp + 0x8c]
sub eax, 4
push eax
push ecx
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
mov bx, word [0x86e330]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sub eax, edx
movsx edx, bx
shl edx, 1
sar edi, 1
sar eax, 1
add edi, 0x2d
sub eax, 0x20
mov word [edx + 0x86e010], ax
mov word [edx + 0x86de80], di
add eax, 0x38
add edi, 0x48
inc bx
mov word [edx + 0x86e1a0], 4
mov word [edx + 0x86dcf0], ax
mov word [edx + 0x86db60], di
mov word [0x86e330], bx
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], 0x8d6358
lea esp, [esp]
movsx edx, word [0x86bb1c]
cmp dword [esp + 0x10], edx
jge 0x457dda
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
push 0
mov eax, edx
sar ecx, 2
shr eax, 0x1f
push 0x42700000
add ecx, 0x26
add eax, edx
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + ebp + 8]
push eax
push ecx
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov ebx, eax
mov eax, 0x2aaaaaab
imul esi
movsx eax, word [0x86e330]
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esp + 0x10]
shl eax, 1
sar ebx, 2
add ebx, 0x1e
add edi, ebp
add edx, 5
mov word [eax + 0x86e010], di
mov word [eax + 0x86de80], bx
add edi, 0x10
add ebx, 0x10
inc word [0x86e330]
mov word [eax + 0x86e1a0], dx
mov word [eax + 0x86dcf0], di
mov word [eax + 0x86db60], bx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 0xc0
add ebp, 0x20
cmp eax, 0x8d6598
mov dword [esp + 0x18], eax
jle 0x457d20
xor ebp, ebp
mov dword [esp + 0x14], ebp
xor ebx, ebx
movsx eax, word [0x86bb1e]
cmp ebp, eax
jge 0x457ebf
mov eax, ecx
imul eax, eax, 7
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
push 0
mov eax, edx
shr eax, 0x1f
sar ecx, 3
push 0x42480000
add ecx, 0x1e
add eax, edx
push ecx
lea eax, [eax + ebx + 8]
push eax
push 0x8d7258
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
mov eax, ecx
imul eax, eax, 7
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + ebx - 6]
movsx eax, word [0x86e330]
shl eax, 1
sar edi, 3
add edi, 0x12
add ebp, 0x1c
mov word [eax + 0x86e010], dx
mov word [eax + 0x86de80], di
add edx, 0x1c
add edi, 0x18
inc word [0x86e330]
mov word [eax + 0x86e1a0], bp
mov ebp, dword [esp + 0x14]
mov word [eax + 0x86dcf0], dx
mov word [eax + 0x86db60], di
inc ebp
add ebx, 0x20
cmp ebx, 0x80
mov dword [esp + 0x14], ebp
jl 0x457e01
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, 0x864018
mov ebp, 5
mov dword [esp + 0x10], 0x8d7798
mov dword [esp + 0x14], eax
mov edx, dword [eax - 4]
test edx, edx
jne 0x457fc1
mov eax, dword [esp + 0x18]
cdq
mov edi, 3
idiv edi
push 0
push 0x425c0000
mov edi, eax
lea eax, [ecx + ecx*2]
imul edi, edi, 0x1c
mov ebx, edx
cdq
imul ebx, ebx, 0x1c
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + edi + 0x26]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
push ecx
mov ecx, dword [esp + 0x1c]
add eax, edx
lea eax, [eax + ebx + 8]
push eax
add ecx, 0xffffef80
push ecx
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [eax + edi + 0x1a]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + ebx - 6]
movsx eax, word [0x86e330]
shl eax, 1
mov word [eax + 0x86e010], dx
mov word [eax + 0x86de80], di
add edx, 0x1c
add edi, 0x18
inc word [0x86e330]
lea ebx, [ebp + 4]
mov word [eax + 0x86e1a0], bx
mov word [eax + 0x86dcf0], dx
mov word [eax + 0x86db60], di
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test byte [eax], 1
je 0x458079
mov eax, dword [esp + 0x20]
cdq
mov edi, 3
idiv edi
push 0
push 0x42960000
mov edi, eax
mov ebx, edx
imul edi, edi, 0x1c
lea eax, [ecx + ecx*2]
imul ebx, ebx, 0x1c
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + edi + 0x26]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ebx + 8]
push eax
push ecx
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edi, [eax + edi + 0x1a]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ebx - 6]
movsx eax, word [0x86e330]
shl eax, 1
mov word [eax + 0x86e010], dx
mov word [eax + 0x86de80], di
add edx, 0x1c
add edi, 0x18
inc word [0x86e330]
lea ebx, [ebp + 0xd]
mov word [eax + 0x86e1a0], bx
mov word [eax + 0x86dcf0], dx
mov word [eax + 0x86db60], di
inc dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add eax, 0x1c
add edi, 0xc0
inc ebp
cmp eax, 0x8640f8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jle 0x457ef3
test dword [0x85c164], 0x200000
je 0x458158
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x458158
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov ecx, eax
add esi, esi
mov eax, 0x55555556
imul esi
push 0
sar ecx, 2
mov eax, edx
push 0x42480000
add ecx, 0x40
shr eax, 0x1f
push ecx
lea eax, [edx + eax + 0x20]
push eax
push edi
call fcn.004bc130
mov ecx, dword [0x85c268]
mov esi, dword [0x85c26c]
mov bx, word [0x86e330]
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov edi, eax
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax + 4]
movsx eax, bx
shl eax, 1
sar edi, 2
add edi, 0x1c
mov word [eax + 0x86e010], dx
mov word [eax + 0x86de80], di
add edx, 0x38
add edi, 0x48
inc bx
mov word [eax + 0x86e1a0], 0x1b
mov word [eax + 0x86dcf0], dx
mov word [eax + 0x86db60], di
mov word [0x86e330], bx
fild dword [0x8d5910]
lea eax, [ecx + ecx*2]
cdq
and edx, 3
fmul dword [0x715884]
add eax, edx
sar eax, 2
add eax, 0x20
mov dword [esp + 0x28], eax
lea esi, [esi + esi*4]
fiadd dword [esp + 0x28]
mov eax, 0x2aaaaaab
push 0
imul esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x28], ecx
push 0x42700000
call fcn.005f275c
push eax
fild dword [0x8d590c]
fmul dword [0x715884]
fiadd dword [esp + 0x30]
call fcn.005f275c
push eax
push 0x8d58d8
call fcn.004bc130
call fcn.0043fcd0
push eax
push str._NUM
mov esi, 0x8ebf58
call fcn.004f7660
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [0x85c26c]
lea edx, [eax + eax*4]
mov eax, 0x2aaaaaab
imul edx
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
mov eax, edx
sar ecx, 2
shr eax, 0x1f
push 0x44
add ecx, 0x20
lea edx, [edx + eax + 0x12]
push ecx
push edx
push 0x86bb48
xor eax, eax
call fcn.004b0b40
push 0
push 0
push 0
lea eax, [esp + 0x1f8]
call fcn.004dc670
mov eax, dword [0x72837c]
mov ecx, dword [0x85c26c]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [0x728380]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [0x85c268]
sar edx, 1
sub eax, edx
mov edx, dword [0x8ca494]
add esp, 0x34
sub ecx, 0x28
sub eax, 0x1c
push edx
mov edx, dword [esp + 0x80]
push edx
push 0x3c
lea edx, [esp + 0x1d0]
push edx
neg eax
push eax
push 0xfffffffffffffff6
push ecx
mov ecx, dword [esp + 0x84]
call fcn.004bc350
mov si, word [0x86e330]
mov ecx, dword [0x85c268]
mov edx, dword [0x85c26c]
movsx eax, si
shl eax, 1
add ecx, 0xffffffdc
add edx, 0xffffffc8
mov word [eax + 0x86e010], dx
mov word [eax + 0x86de80], cx
add edx, 0x26
add ecx, 0x1c
inc si
mov word [eax + 0x86dcf0], dx
mov edx, dword [0x8de310]
mov word [0x86e330], si
mov esi, dword [0x8de30c]
mov word [eax + 0x86e1a0], 0x20
mov word [eax + 0x86db60], cx
call fcn.0042c6c0
mov edi, eax
cmp edi, 0xffffffff
mov byte [0x86bb48], 0
mov dword [esp + 0x7c], 0
je 0x4586db
cmp dword [esp + 0x8c], edi
je 0x458325
push 0xffffffffffffffff
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x36
push 0x8ca278
call fcn.00488920
add esp, 0x1c
mov eax, dword [0x85c26c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x85c268]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
test edi, edi
mov ebp, 0x46
jl 0x4583d5
cmp edi, 3
setle dl
test dl, dl
je 0x4583d5
mov al, byte [edi*2 + 0x86ba88]
cmp al, 1
mov esi, 0x8ebf58
jbe 0x458379
movzx eax, al
push eax
push str._RANK
call fcn.004f7660
add esp, 8
jmp 0x458386
push str.No_Rank
call fcn.004f7660
add esp, 4
mov esi, edi
and esi, 0x80000001
jns 0x458395
dec esi
or esi, 0xfffffffe
inc esi
mov ecx, dword [0x85c26c]
imul esi, esi, 0x70
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
add esi, edx
mov ecx, edx
mov eax, edi
cdq
sub eax, edx
sar eax, 1
shr ecx, 0x1f
lea ecx, [ecx + esi + 0x46]
lea esi, [eax + eax*4]
mov eax, dword [0x85c268]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi*8 + 0x4c]
mov ebp, 0x33
jmp 0x4586be
cmp edi, 4
jne 0x45842e
mov eax, dword [0x8cd190]
mov ecx, dword [0x8cd194]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x8cd198]
mov dword [edx + 4], ecx
push str._EVILNAME
mov esi, 0x8ebf58
mov dword [edx + 8], eax
call fcn.004f7660
mov eax, dword [0x85c26c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [0x85c268]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add esp, 0x10
sub ecx, edi
add eax, 0x74
mov ebp, 0x33
jmp 0x4586be
cmp edi, 5
jl 0x45848f
cmp edi, 8
setle dl
test dl, dl
je 0x45848f
lea ebx, [edi - 5]
push ebx
push str._RELATIVE
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c26c]
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [0x85c268]
sar edx, 2
lea eax, [eax + eax*2]
shl ebx, 5
add ebx, edx
mov ecx, edx
cdq
and edx, 3
add eax, edx
shr ecx, 0x1f
sar eax, 2
add esp, 8
lea ecx, [ecx + ebx + 8]
add eax, 0x32
mov ebp, 0x33
jmp 0x4586be
cmp edi, 9
jl 0x45853e
cmp edi, 0x11
setle dl
test dl, dl
je 0x45853e
xor ebx, ebx
cmp edi, 9
jle 0x4584c1
mov eax, 0x864014
lea ecx, [edi - 9]
cmp dword [eax], 0
jne 0x4584bb
inc ebx
add eax, 0x1c
dec ecx
jne 0x4584b5
lea edx, [edi + edi*2 - 0x18]
lea eax, [edx*4 + 0x8cd100]
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
push str._TOP10
mov esi, 0x8ebf58
mov dword [ecx + 8], eax
call fcn.004f7660
mov eax, ebx
cdq
mov ecx, 3
idiv ecx
add esp, 0x10
mov ebp, 0x33
mov esi, eax
mov ecx, edx
mov edx, dword [0x85c26c]
imul ecx, ecx, 0x1c
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add ecx, edx
lea ecx, [eax + ecx + 8]
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
imul esi, esi, 0x1c
lea eax, [eax + esi + 0x32]
jmp 0x4586be
cmp edi, 0x12
jl 0x4585e3
cmp edi, 0x1a
setle dl
test dl, dl
je 0x4585e3
xor ebx, ebx
cmp edi, 0x12
jle 0x458570
mov eax, 0x864018
lea ecx, [edi - 0x12]
test byte [eax], 1
je 0x45856a
inc ebx
add eax, 0x1c
dec ecx
jne 0x458564
lea ecx, [edi + edi*2 - 0x33]
lea edx, [ecx*4 + 0x8cd100]
mov ecx, dword [edx]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
push str._TOP10
mov esi, 0x8ebf58
mov dword [eax + 8], edx
call fcn.004f7660
mov eax, ebx
cdq
mov ecx, 3
idiv ecx
add esp, 0x10
mov ebp, 0x33
mov esi, eax
mov eax, dword [0x85c26c]
mov ecx, edx
cdq
imul ecx, ecx, 0x1c
sub eax, edx
sar eax, 1
lea ecx, [ecx + eax + 8]
mov eax, dword [0x85c268]
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
imul esi, esi, 0x1c
lea eax, [eax + esi + 0x32]
jmp 0x4586be
cmp edi, 0x1c
jl 0x458644
cmp edi, 0x1f
setle dl
test dl, dl
je 0x458644
lea ebx, [edi - 0x1c]
push ebx
push str._LOSTCITY
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c26c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
shl ebx, 5
add ebx, edx
lea ecx, [eax + ebx + 8]
mov eax, dword [0x85c268]
imul eax, eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esp, 8
add eax, 0x2a
mov ebp, 0x33
jmp 0x4586be
cmp edi, 0x1b
jne 0x45868e
push str.Wedding
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c26c]
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov eax, dword [0x85c268]
mov ecx, edx
lea eax, [eax + eax*2]
shr ecx, 0x1f
lea ecx, [edx + ecx + 0x20]
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 4
add eax, 0x60
mov ebp, 0x33
jmp 0x4586be
cmp edi, 0x20
jne 0x4586be
push str.Exit
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c26c]
mov eax, dword [0x85c268]
add esp, 4
add ecx, 0xffffffd8
mov dword [esp + 0x7c], 7
add eax, 0xffffffd0
push 0
push 0xffffffffffffffff
push 4
push 0xffffcc00
push ebp
push eax
push ecx
push 0x86bb48
xor eax, eax
call fcn.004b0b40
add esp, 0x20
push 0
push 0
push 0
mov dword [esp + 0x98], edi
call fcn.004d1a40
add esp, 0xc
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Menu
call fcn.0042e1a0
mov esi, eax
mov eax, dword [0x86db5c]
add esp, 4
test eax, eax
je 0x458772
push esi
push str.Menu
lea edx, [esp + 0x3f0]
push str._s__03X
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov ecx, dword [0x86db5c]
mov eax, dword [ecx]
add esp, 0x10
lea edx, [esp + 0x3e8]
push edx
mov ebx, ecx
call dword [eax + 4]
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x458772
nop
mov eax, dword [edi + 4]
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x3ec]
push ecx
mov ecx, ebx
call dword [edx + 8]
test al, al
jne 0x45876f
mov edi, dword [edi]
test edi, edi
jne 0x458750
jmp 0x458772
mov esi, dword [edi + 8]
mov ecx, dword [0x85c164]
and ecx, 0xfffffffb
cmp esi, 0xffffffff
mov dword [0x85c164], ecx
je 0x4587af
cmp esi, 0x200
jle 0x4587af
cmp esi, 0x20
je 0x4587af
push 0xffffffffffffffff
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x35
push 0x8ca270
call fcn.00488920
add esp, 0x1c
cmp esi, 0x211
jg 0x459c89
cmp esi, 0x209
jge 0x4592b5
cmp esi, 0x204
jg 0x459267
je 0x458b6c
cmp esi, 0x1b
je case.0x459c9f.544
cmp esi, 0x1ff
jle case.default.0x459c9f
cmp esi, 0x203
jg case.default.0x459c9f
lea ebx, [esi - 0x200]
cmp byte [ebx*2 + 0x86ba88], 1
ja 0x458819
mov eax, 3
call fcn.0042e700
jmp case.default.0x459c9f
movsx eax, word [ebx*2 + 0x86ba98]
lea ebp, [ebx*2 + 0x86ba98]
shl eax, 5
movsx edx, byte [eax + 0x862b74]
lea eax, [eax + 0x862b74]
mov byte [eax], bl
mov al, byte [0x8ca27f]
test al, al
mov dword [esp + 0x28], edx
je 0x45885b
push 0x8ca288
call fcn.00489090
add esp, 4
mov byte [0x8ca27f], 0
mov al, byte [0x8ca27e]
test al, al
push 0
je 0x45886d
mov byte [0x8ca27e], 0
call fcn.00488e30
mov eax, dword [0x728a84]
mov ecx, dword [0x7283bc]
mov dword [eax*4 + 0x7288f4], ecx
mov eax, dword [0x728a84]
add esp, 4
inc eax
mov dword [0x728a84], eax
mov dword [0x7283bc], 0xfffffff
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x6f7896]
mov byte [eax + 0x8c0a80], cl
inc eax
test cl, cl
jne 0x4588a0
movsx edx, word [ebp]
push edx
push 1
mov dword [0x8c09f4], 1
call fcn.00482dc0
mov eax, 0x424
call fcn.00484110
movzx eax, byte [ebx*2 + 0x86ba88]
push eax
push ebx
push str.In_recognition_of_your_service_to_the__NATIONALITY_crown__I_am_pleased_to_promote_you_to_the_rank_of__RANK__Congratulations_
mov esi, 0x8ebf58
call fcn.004f7660
movsx eax, word [ebp]
add esp, 0x14
or edi, 0xffffffff
call fcn.00483ad0
movzx ecx, byte [ebx*2 + 0x86ba88]
push ebx
push ecx
push str.__RANKBONUS_in__NATIONALITY_ports__n
call fcn.004f7680
xor eax, eax
mov al, byte [ebx*2 + 0x86ba88]
mov dl, 1
add esp, 0xc
cmp dl, al
sbb eax, eax
and eax, 0x3c
add eax, 0x3f2
call fcn.00484110
push 0
push 0x30
call fcn.00487950
mov eax, dword [0x85c164]
mov dword [esp + 0x2c], eax
or eax, 0x100000
push 0
push 0x30
mov dword [0x85c164], eax
call fcn.00487950
mov eax, dword [0x8eed78]
add esp, 0x10
mov ecx, 0x8eed78
call dword [eax + 0x18]
test al, al
je 0x4589f6
mov al, byte [0x8ccc27]
test al, al
je 0x45897f
mov al, byte [0x8ccc26]
test al, al
je 0x4589f6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x458990
mov eax, dword [0x8eaec4]
sub eax, dword [0x8eaec8]
jns 0x4589a0
add eax, 0x64
test eax, eax
je 0x4589aa
push 0x28
call esi
jmp 0x458990
mov ecx, dword [0x8eaeec]
test ecx, ecx
je 0x4589c9
mov eax, dword [0x8eaef0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4589c9
sub dword [0x8eaef0], 4
mov ecx, dword [0x8ef2c8]
mov eax, dword [ecx]
push 0
push eax
mov edi, 0x8e87b0
call fcn.0049aec0
mov edx, dword [0x8eaef0]
mov eax, dword [edx - 4]
push 0xfffffffffffffffe
call fcn.004a0ac0
push eax
call fcn.0049ae20
jmp 0x4589fc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xd
mov eax, 0x8e87b0
call fcn.004987a0
push ebx
push 0x17
mov edi, 0x8e87b0
call fcn.0049ae20
push ebx
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x3f800000
push 1
push 7
call fcn.00488cf0
mov eax, dword [0x85c268]
mov ecx, dword [0x85c26c]
add esp, 0x24
push 0
push 0
push 0xffffffffffffffff
cdq
push 0
push fcn.00484b30
push 0xffffffffffffffff
and edx, 0xf
add eax, edx
sar eax, 4
push 0
push 0x6f7896
push eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00430160
push 0x8c9340
call fcn.00489090
add esp, 0x2c
push 0x3f800000
call fcn.00488e30
mov edx, dword [0x8eed78]
add esp, 4
mov ecx, 0x8eed78
call dword [edx + 0x18]
test al, al
je 0x458b23
mov al, byte [0x8ccc27]
test al, al
je 0x458ac0
mov al, byte [0x8ccc26]
test al, al
je 0x458b23
jmp 0x458ac0
mov eax, dword [0x8eaec4]
sub eax, dword [0x8eaec8]
jns 0x458ad0
add eax, 0x64
test eax, eax
je 0x458ada
push 0x28
call esi
jmp 0x458ac0
mov ecx, dword [0x8eaeec]
test ecx, ecx
je 0x458af9
mov eax, dword [0x8eaef0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x458af9
sub dword [0x8eaef0], 4
mov eax, dword [0x8ef2c8]
mov eax, dword [eax]
push 0
push eax
mov edi, 0x8e87b0
call fcn.0049aec0
mov ecx, dword [0x8eaef0]
mov eax, dword [ecx - 4]
push 0xfffffffffffffffe
call fcn.004a0ac0
push eax
call fcn.0049ae20
push 0xb
mov eax, 0x8e87b0
call fcn.004987a0
call fcn.00483c00
mov eax, dword [0x728a84]
mov cl, byte [esp + 0x28]
dec eax
mov dword [0x728a84], eax
mov edx, dword [eax*4 + 0x7288f4]
movsx eax, word [ebp]
mov dword [0x7283bc], edx
mov edx, dword [esp + 0x24]
shl eax, 5
mov byte [eax + 0x862b74], cl
mov dword [0x85c164], edx
jmp case.default.0x459c9f
push 0
push 1
push 1
call fcn.004a2250
mov edi, 0x8cccd0
add esp, 0xc
push str.You_are_a_master_tactician__sir._Truly_I_have_done_your_family_a_terrible_injustice.
mov esi, 0x8ebf58
mov dword [esp + 0x10c], edi
mov dword [esp + 0x110], edi
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], 0
mov dword [0x72eb4c], 6
mov dword [0x72ecc4], 0x259
mov dword [0x72eb44], 5
call fcn.004f7660
add esp, 4
push str.I_give_you_100_000_gold_pieces_which_are_rightfully_yours.
call fcn.004f7680
add esp, 4
push str.Among_my_crew_are_eight_specialists_of_extraordinary_skill__henceforth_they_will_serve_you.
call fcn.004f7680
add esp, 4
push str.I_myself_will_serve_as_your_cabin_steward._n
call fcn.004f7680
add esp, 4
mov ecx, 0x28
call fcn.00487df0
mov ebx, 0x86bb48
lea eax, [esp + 0x10c]
call fcn.00412f10
push str.Marquis_Montalban
call fcn.004f7660
add esp, 4
push 0
push 0x2a
lea eax, [esp + 0x90]
push 5
push eax
or eax, 0xffffffff
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x24], edi
call fcn.0041a300
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00412ec0
mov eax, dword [esp + 0x88]
add eax, 0xfffffff8
je 0x458c65
cmp eax, 0x8cccc8
je 0x458c65
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], ecx
push 0xc0
mov dword [esp + 0x8c], edi
mov dword [esp + 0x7c], ecx
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458cb2
mov edx, dword [esp + 0x14]
mov ecx, dword [0x8ebffc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push edx
push ecx
xor ebx, ebx
mov esi, eax
call fcn.004bb100
mov esi, eax
jmp 0x458cb4
xor esi, esi
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x458ce2
test eax, eax
je 0x458cd7
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x458cd7
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [esp + 0x78], esi
je 0x458ce2
inc dword [esi + 4]
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0xb8], eax
push eax
lea eax, [esp + 0x370]
lea edx, [esp + 0x1f0]
call fcn.0041a9f0
add esp, 8
push 0
mov edx, dword [0x8ebffc]
push 0
push 0
push 0
push 1
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0x86bb48
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, edx
test eax, eax
je 0x458d45
inc dword [eax + 4]
call fcn.004afb00
mov esi, eax
mov eax, dword [esp + 0xa4]
add esp, 0x30
cmp eax, esi
je 0x458d80
test eax, eax
je 0x458d75
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x458d75
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov dword [esp + 0x74], esi
je 0x458d80
inc dword [esi + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458f8a
mov ecx, dword [0x8ebffc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.uber_sword.kfm
push ecx
xor ebx, ebx
mov esi, eax
call fcn.004bb100
test eax, eax
mov dword [esp + 0x10], eax
je 0x458dc7
inc dword [eax + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458f97
mov ecx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38c]
push edx
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
mov dword [esp + 0x18], eax
je 0x458e14
inc dword [eax + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458fa4
mov ecx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20c]
push edx
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
mov dword [esp + 0x20], eax
je 0x458e61
inc dword [eax + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458fb1
mov edx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.ramparts_01.nif
push edx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov ebp, eax
test ebp, ebp
je 0x458ea9
inc dword [ebp + 4]
xor eax, eax
xor edx, edx
test eax, eax
mov ecx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x5c], edx
je 0x458ee7
mov eax, 4
mov esi, dword [eax]
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x458edd
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x40], eax
cmp ecx, eax
je 0x458f19
test ecx, ecx
je 0x458f08
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x458f04
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x40]
test eax, eax
mov ecx, eax
mov dword [esp + 0x3c], ecx
je 0x458f19
inc dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, ecx
je 0x458f4b
test eax, eax
je 0x458f40
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x458f3c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov dword [esp + 0x38], ecx
je 0x458f4b
inc dword [ecx + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x458fb8
mov ecx, dword [0x8ec000]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.duel_props.kfm
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov esi, eax
jmp 0x458fba
mov dword [esp + 0x10], 0
jmp 0x458dc7
mov dword [esp + 0x18], 0
jmp 0x458e14
mov dword [esp + 0x20], 0
jmp 0x458e61
xor ebp, ebp
jmp 0x458ea9
xor esi, esi
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x458fe8
test eax, eax
je 0x458fdd
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x458fdd
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [esp + 0x58], esi
je 0x458fe8
inc dword [esi + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459027
mov ecx, dword [0x8ec000]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.duel_props.kfm
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov esi, eax
jmp 0x459029
xor esi, esi
mov eax, dword [esp + 0x5c]
cmp eax, esi
je 0x45905d
test eax, eax
je 0x45904c
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x45904c
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov eax, esi
mov dword [esp + 0x5c], eax
je 0x45905d
inc dword [esi + 4]
mov eax, dword [esp + 0x5c]
call fcn.004bb170
mov eax, dword [0x728a84]
mov ecx, dword [0x7283bc]
mov ebx, dword [0x85c164]
mov esi, dword [0x8cbdec]
mov dword [eax*4 + 0x7288f4], ecx
mov eax, dword [0x728a84]
inc eax
push 0xc37a0000
mov dword [0x728a84], eax
mov dword [0x7283bc], 0xfffffff
and ebx, 0xfffffffb
mov dword [0x85c164], ebx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
add esi, 0x14
push 0
push 0
call dword [edx + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0
call dword [eax + 0xc]
mov ecx, dword [0x8cbdec]
push 0x41a00000
push ecx
call fcn.004da870
mov esi, dword [0x8ccbd4]
push 0x4b0
call fcn.004ae1f0
mov ebx, dword [esp + 0x24]
add esp, 4
lea edx, [esp + 0x108]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x84]
push eax
push 0
push ecx
push ebp
push ebx
call fcn.00425ad0
add esp, 0x24
push esi
call fcn.004ae1f0
mov esi, dword [0x8cbdec]
mov eax, dword [0x7275f8]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
add esp, 4
push eax
add esi, 0x14
push 0
push 0
call dword [edx + 0x10]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0
call dword [edx + 0xc]
mov eax, dword [0x8cbdec]
push 0x41a00000
push eax
call fcn.004da870
mov eax, dword [0x728a84]
dec eax
mov dword [0x728a84], eax
mov ecx, dword [eax*4 + 0x7288f4]
mov dword [0x7283bc], ecx
lea esi, [esp + 0x60]
mov edi, 2
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459189
dec dword [ecx + 4]
jne 0x459189
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x459174
lea esi, [esp + 0x44]
mov edi, 3
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x4591aa
dec dword [ecx + 4]
jne 0x4591aa
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x459195
test ebp, ebp
je 0x4591bf
dec dword [ebp + 4]
jne 0x4591bf
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
test ebx, ebx
je 0x4591d0
dec dword [ebx + 4]
jne 0x4591d0
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4591e3
dec dword [ecx + 4]
jne 0x4591e3
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4591f8
dec dword [eax + 4]
jne 0x4591f8
mov ecx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
lea esi, [esp + 0xb8]
mov edi, 3
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459219
dec dword [ecx + 4]
jne 0x459219
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x459204
lea esi, [esp + 0x7c]
mov edi, 2
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x45923a
dec dword [ecx + 4]
jne 0x45923a
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x459225
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
je 0x459256
cmp eax, 0x8cccc8
je 0x459256
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea esi, [esp + 0x108]
call fcn.0040a610
jmp case.default.0x459c9f
cmp esi, 0x205
jl case.default.0x459c9f
cmp esi, 0x208
jg case.default.0x459c9f
push 0
push 1
push 1
call fcn.004a2250
add esp, 0xc
lea edi, [esi - 0x205]
push edi
push str.You_have_rescued_your_long_lost__RELATIVE_
mov esi, 0x8ebf58
call fcn.004f7660
push 0
push 0xffffffffffffffff
push edi
call fcn.00451db0
add esp, 0x14
jmp case.default.0x459c9f
push 0
push 1
push 1
call fcn.004a2250
mov al, byte [0x727d98]
mov ecx, dword [0x728820]
mov byte [ecx + 0x728814], al
mov edx, dword [0x728820]
add esp, 0xc
mov ebp, 0x8cccd0
inc edx
test al, al
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebp
mov dword [0x728820], edx
je 0x459336
mov ecx, dword [0x8cb7c0]
mov edx, dword [0x8cb7c4]
mov byte [ecx + 0xb4], 0
mov byte [edx + 0xb4], 0
mov eax, dword [0x8ebfe8]
push eax
call fcn.00537020
mov ecx, dword [0x8ebfe8]
push ecx
mov ecx, dword [0x8cb7c4]
call fcn.00537020
mov eax, dword [0x7283bc]
mov edx, dword [0x728a84]
push 0x2d
mov dword [edx*4 + 0x7288f4], eax
mov edi, dword [0x728a84]
push 0
push 0
inc edi
mov dword [0x728a84], edi
push 0
push 0
xor eax, eax
xor edi, edi
xor ecx, ecx
mov byte [0x727d98], 0
mov byte [0x8cbdf4], 1
mov dword [0x7283bc], 0xfffffff
call fcn.004892c0
add esp, 0x14
mov ebx, 0x6f7896
lea eax, [esp + 0xe4]
mov dword [esp + 0xec], edi
call fcn.00412f10
lea eax, [esi - 0x208]
mov dword [esp + 0x10], eax
mov dword [esp + 0x104], eax
imul eax, eax, 0x1c
mov eax, dword [eax + 0x863ffc]
test al, 0x10
mov dword [0x72eb4c], edi
mov dword [0x72eb44], 5
mov dword [0x72ecc4], 0x12c
je 0x4593e2
mov dword [esp + 0x100], 3
jmp 0x4593f2
movsx ecx, al
and ecx, 8
shr ecx, 2
mov dword [esp + 0x100], ecx
mov edx, dword [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x98]
push 5
push eax
or eax, 0xffffffff
mov ecx, 4
or edx, 0xffffffff
mov dword [esp + 0x28], ebp
call fcn.0041a300
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.00412ec0
mov eax, dword [esp + 0x90]
add eax, 0xfffffff8
je 0x45943f
cmp eax, 0x8cccc8
je 0x45943f
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
push 0xa
push str.blackbeard
push esi
mov dword [esp + 0x9c], ebp
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
xor ecx, ecx
mov dword [esp + 0x30], ecx
inc bl
push 0xc0
mov byte [esp + 0x22], bl
mov dword [esp + 0x38], ecx
call fcn.005354b8
add esp, 4
test eax, eax
je 0x4594b0
mov edx, dword [0x8ebffc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push esi
push edx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov bl, byte [esp + 0x1e]
mov esi, eax
jmp 0x4594b2
xor esi, esi
mov eax, dword [esp + 0x34]
cmp eax, esi
je 0x4594e0
test eax, eax
je 0x4594d5
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x4594d5
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov dword [esp + 0x34], esi
je 0x4594e0
inc dword [esi + 4]
xor ebp, ebp
xor edi, edi
test bl, bl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], edi
je 0x4595af
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459535
mov ecx, dword [0x8ec000]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
push edi
push edi
push edi
push str.fx_blackbeard_fire.nif
push ecx
xor ebx, ebx
mov esi, eax
call fcn.004bb100
test eax, eax
je 0x459535
mov ecx, dword [eax + 4]
mov ebp, eax
inc ecx
mov dword [esp + 0x20], ebp
mov dword [eax + 4], ecx
mov ecx, ebp
call fcn.004c1010
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459585
mov edx, dword [0x8ec000]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.fx_blackbeard_smoke.nif
push edx
xor ebx, ebx
mov esi, eax
call fcn.004bb100
test eax, eax
je 0x459585
mov ecx, dword [eax + 4]
mov edi, eax
inc ecx
mov dword [esp + 0x14], edi
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push 0x64
push str.fx_blackbeard_fire
push eax
mov ebx, ebp
call fcn.004c1750
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push 0x64
push str.fx_blackbeard_fire
push ecx
mov ebx, edi
call fcn.004c1750
xor edx, edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0xa4], edx
push 4
lea eax, [esp + 0x270]
lea edx, [esp + 0x2f0]
call fcn.0041a9f0
add esp, 8
push 0
push 0
push 0
push 0
push 1
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0x86bb48
push ecx
mov ecx, dword [0x8ebffc]
mov eax, esp
mov dword [eax], ecx
mov eax, ecx
test eax, eax
je 0x459613
inc dword [eax + 4]
call fcn.004afb00
mov esi, dword [esp + 0x60]
mov ebx, eax
add esp, 0x30
cmp esi, ebx
je 0x459650
test esi, esi
je 0x45963f
lea eax, [esi + 4]
mov ecx, esi
mov esi, dword [eax]
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x45963f
mov edx, dword [ecx]
push 1
call dword [edx]
test ebx, ebx
mov esi, ebx
mov dword [esp + 0x30], esi
je 0x459650
inc dword [ebx + 4]
mov esi, dword [esp + 0x30]
call fcn.00419ac0
mov esi, dword [esp + 0x98]
call fcn.00419ac0
mov esi, dword [esp + 0x9c]
call fcn.00419ac0
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459788
mov edx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28c]
push ecx
push edx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
mov dword [esp + 0x28], eax
je 0x4596ba
inc dword [eax + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459795
mov edx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30c]
push ecx
push edx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
mov dword [esp + 0x24], eax
je 0x459707
inc dword [eax + 4]
mov eax, dword [0x8ccbd4]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x10]
imul eax, eax, 0x1c
mov eax, dword [eax + 0x863ffc]
xor ebp, ebp
test al, al
push 0xc0
jns 0x4597a2
call fcn.005354b8
add esp, 4
test eax, eax
je 0x45976a
mov ecx, dword [0x8ebfec]
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
push ebp
push ebp
push ebp
push str.Ship_Deck_01n.nif
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
je 0x45976a
mov ecx, dword [eax + 4]
inc ecx
mov ebp, eax
mov dword [eax + 4], ecx
mov eax, dword [0x8cbdec]
push 0x3f266666
push str.skydome_night.nif
call fcn.004da420
push 0x8fc
jmp 0x45984c
mov dword [esp + 0x28], 0
jmp 0x4596ba
mov dword [esp + 0x24], 0
jmp 0x459707
test al, 0x40
je 0x459804
call fcn.005354b8
add esp, 4
test eax, eax
je 0x4597e9
mov edx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.Ship_Deck_01s.nif
push edx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
je 0x4597e9
mov ecx, dword [eax + 4]
inc ecx
mov ebp, eax
mov dword [eax + 4], ecx
mov eax, dword [0x8cbdec]
push 0x3f266666
push str.skydome_lateday.nif
call fcn.004da420
push 0x78a
jmp 0x45984c
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459847
mov ecx, dword [0x8ebfec]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.Ship_Deck_01.nif
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
test eax, eax
je 0x459847
mov ecx, dword [eax + 4]
inc ecx
mov ebp, eax
mov dword [eax + 4], ecx
push 0x4b0
call fcn.004ae1f0
xor eax, eax
xor edx, edx
add esp, 4
test eax, eax
mov ecx, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], edx
je 0x459892
mov eax, 4
mov esi, dword [eax]
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x459888
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x4c], eax
cmp ecx, eax
je 0x4598c4
test ecx, ecx
je 0x4598b3
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x4598af
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x4c]
test eax, eax
mov ecx, eax
mov dword [esp + 0x48], ecx
je 0x4598c4
inc dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
cmp eax, ecx
je 0x4598f6
test eax, eax
je 0x4598eb
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x4598e7
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov dword [esp + 0x44], ecx
je 0x4598f6
inc dword [ecx + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x459935
mov ecx, dword [0x8ec000]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.duel_props.kfm
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov esi, eax
jmp 0x459937
xor esi, esi
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x459965
test eax, eax
je 0x45995a
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x45995a
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [esp + 0x60], esi
je 0x459965
inc dword [esi + 4]
push 0xc0
call fcn.005354b8
add esp, 4
test eax, eax
je 0x4599a4
mov ecx, dword [0x8ec000]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push str.duel_props.kfm
push ecx
mov ebx, 1
mov esi, eax
call fcn.004bb100
mov esi, eax
jmp 0x4599a6
xor esi, esi
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x4599da
test eax, eax
je 0x4599c9
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x4599c9
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov eax, esi
mov dword [esp + 0x64], eax
je 0x4599da
inc dword [esi + 4]
mov eax, dword [esp + 0x64]
call fcn.004bb170
mov esi, dword [0x72ed74]
fld dword [esi + 0x2c]
call fcn.005f275c
push 0x64
mov ecx, esi
mov edi, eax
call fcn.004e5e80
lea eax, [esp + 0xa4]
push eax
push 4
push str.fWaterTexScale
mov dword [esp + 0xb0], 0x40200000
call fcn.005bf910
mov ecx, dword [0x85c164]
mov esi, dword [0x8cbdec]
add esp, 0xc
and ecx, 0xfffffffb
push 0xc37a0000
mov dword [0x85c164], ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
add esi, 0x14
push 0
push 0
call dword [edx + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0
call dword [eax + 0xc]
mov ecx, dword [0x8cbdec]
push 0x41a00000
push ecx
call fcn.004da870
push ebp
call fcn.00427f80
mov ebx, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push ebp
push ebx
call fcn.00425ad0
add esp, 0x24
mov eax, ebp
call fcn.00428140
mov eax, dword [0x8cbdec]
push 0x3f266666
push str.skydome006.nif
call fcn.004da420
mov esi, dword [0x8cbdec]
mov eax, dword [0x7275f8]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
add esi, 0x14
push 0
push 0
call dword [edx + 0x10]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0
call dword [edx + 0xc]
mov ecx, dword [0x72ed74]
push edi
call fcn.004e5e80
mov esi, dword [0x8cbdec]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov edx, dword [0x7275f8]
add esi, 0x14
push edx
push 0
push 0
call dword [eax + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0
call dword [eax + 0xc]
mov ecx, dword [0x8cbdec]
push 0x41a00000
push ecx
call fcn.004da870
mov al, byte [esp + 0x1e]
test al, al
je 0x459b46
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push str.fx_blackbeard_fire
push edx
call fcn.004c1820
mov eax, dword [esp + 0x34]
push str.fx_blackbeard_fire
push eax
mov eax, dword [esp + 0x1c]
call fcn.004c1820
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004ae1f0
add esp, 4
call fcn.004810e0
mov eax, dword [0x728a84]
dec eax
mov dword [0x728a84], eax
mov edx, dword [eax*4 + 0x7288f4]
mov dword [0x7283bc], edx
lea esi, [esp + 0x68]
mov edi, 2
lea esp, [esp]
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459b95
dec dword [ecx + 4]
jne 0x459b95
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x459b80
lea esi, [esp + 0x50]
mov edi, 3
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459bb6
dec dword [ecx + 4]
jne 0x459bb6
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x459ba1
test ebp, ebp
je 0x459bcb
dec dword [ebp + 4]
jne 0x459bcb
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
test ebx, ebx
je 0x459bdc
dec dword [ebx + 4]
jne 0x459bdc
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x459bef
dec dword [ecx + 4]
jne 0x459bef
mov eax, dword [ecx]
push 1
call dword [eax]
lea esi, [esp + 0xa4]
mov edi, 3
jmp 0x459c00
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459c15
dec dword [ecx + 4]
jne 0x459c15
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x459c00
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x459c2b
dec dword [ecx + 4]
jne 0x459c2b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x459c3e
dec dword [ecx + 4]
jne 0x459c3e
mov edx, dword [ecx]
push 1
call dword [edx]
lea esi, [esp + 0x38]
mov edi, 2
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459c5c
dec dword [ecx + 4]
jne 0x459c5c
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x459c47
mov eax, dword [esp + 0x18]
add eax, 0xfffffff8
je 0x459c78
cmp eax, 0x8cccc8
je 0x459c78
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea esi, [esp + 0xe0]
call fcn.0040a610
jmp case.default.0x459c9f
lea eax, [esi - 0x212]
cmp eax, 0xe
ja case.default.0x459c9f
movzx ecx, byte [eax + 0x459ed0]
jmp dword [ecx*4 + 0x459ec0]
push 0
push 1
push 1
call fcn.004a2250
mov edx, 0x21c
sub edx, esi
imul edx, edx, 0x3e8
add esp, 0xc
push edx
lea eax, [esi + esi*2 - 0x633]
lea ecx, [eax*4 + 0x8cd100]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
push str.A_few_hours_of_digging_uncovers__TOP10s_buried_treasure_worth__NUM_gold_pieces__n
mov esi, 0x8ebf58
mov dword [edx + 8], ecx
call fcn.004f7660
add esp, 0x14
mov ecx, 0x2c
call fcn.00487df0
call fcn.004527f0
jmp case.default.0x459c9f
push 0
push 1
push 1
call fcn.004a2250
add esp, 0xc
push str.I_now_pronounce_you_man_and_wife___you_may_kiss_the_bride._n
mov esi, 0x8ebf58
call fcn.004f7660
add esp, 4
mov ecx, 0x28
call fcn.00487df0
mov eax, dword [0x874bd0]
push 0
push 0
call fcn.0044f0b0
add esp, 8
jmp case.default.0x459c9f
push 0
push 1
push 1
call fcn.004a2250
add esp, 0xc
add esi, 0xfffffde4
push esi
push str.A_thorough_search_of_the_legendary_lost_city_of_the__LOSTCITY_reveals_treasure_worth_over_50_000_gold_pieces__n
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, 0x20
call fcn.00487df0
push 0
call fcn.0044f9a0
add esp, 0xc
mov al, byte [esp + 0x1f]
test al, al
jne 0x459d9e
mov ebp, 0x8cccd0
xor ebx, ebx
jmp 0x457612
mov eax, 3
call fcn.0042e700
lea edx, [esp + 0x198]
push 0x728638
push edx
call fcn.00454730
mov al, byte [esp + 0x37]
mov edi, dword [0x85c164]
neg al
mov word [0x86e330], 0
sbb eax, eax
and eax, 4
or edi, eax
mov dword [0x85c164], edi
call fcn.004b2860
call fcn.004810e0
mov eax, dword [0x728a84]
dec eax
mov dword [0x728a84], eax
mov eax, dword [eax*4 + 0x7288f4]
push 0
mov dword [0x7283bc], eax
call fcn.00488e30
mov ecx, dword [esp + 0x5c]
add esp, 0xc
test ecx, ecx
je 0x459e10
dec dword [ecx + 4]
jne 0x459e10
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x459e23
dec dword [ecx + 4]
jne 0x459e23
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x459e36
dec dword [ecx + 4]
jne 0x459e36
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x459e4c
dec dword [ecx + 4]
jne 0x459e4c
mov eax, dword [ecx]
push 1
call dword [eax]
lea esi, [esp + 0xe0]
mov edi, 0xa
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x459e6d
dec dword [ecx + 4]
jne 0x459e6d
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x459e58
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x459e83
dec dword [ecx + 4]
jne 0x459e83
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x84]
add eax, 0xfffffff8
je 0x459e9f
cmp eax, 0x8cccc8
je 0x459e9f
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x459eb2
dec dword [ecx + 4]
jne 0x459eb2
mov edx, dword [ecx]
push 1
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4dc
ret