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

Disassembly:
mov eax, 0x72cc
call fcn.005f2710
mov eax, dword [esp + 0x72d0]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x43cd8f
mov eax, dword [esp + 0x72f0]
mov ecx, dword [esp + 0x72ec]
mov edx, dword [esp + 0x72e8]
push eax
mov eax, dword [esp + 0x72e8]
push ecx
push edx
push eax
push ebx
call fcn.0043c980
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x72cc
ret
mov byte [esp + 0x37], 0
lea eax, [esp + 0x24c0]
mov ecx, 0x3e8
mov esi, 0x8cccd0
or edx, 0xffffffff
mov dword [eax - 8], esi
mov dword [eax - 4], ebx
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0x14
dec ecx
jne 0x43cda8
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], edx
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov ecx, dword [0x85c0fc]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
xor eax, eax
mov dword [esp + 0x98], edx
mov dword [0x72753c], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + eax + 0x60]
xor ebp, ebp
mov dword [esp + 0x38], ecx
cmp ebp, ebx
mov dword [esp + 0x2c], 0x8cccd0
je 0x43ce68
cmp ebp, 1
mov ecx, str.right
jne 0x43ce6d
mov ecx, str.left
cmp ebp, ebx
je 0x43ce7b
cmp ebp, 2
mov eax, 0x70202c
jne 0x43ce80
mov eax, str.treaty
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [edx + 0x727694]
push ecx
push eax
push str.flag__s__s__s.dds
lea edx, [esp + 0x3c]
call fcn.004f3ce0
push 0xc0
call fcn.005354b8
mov edi, dword [esp + 0x40]
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x43cef1
mov eax, dword [0x8ec008]
mov ecx, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push ebx
mov dword [esi + 4], ebx
push ebx
mov dword [esi], 0x6ff14c
mov dword [esi + 0x1c], ebx
inc ecx
push ebx
mov dword [esi + 0x64], ebx
mov dword [0x729444], ecx
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, edi
mov ecx, esi
call fcn.004be370
jmp 0x43cef3
xor esi, esi
mov edx, dword [esp + 0x38]
mov ecx, dword [edx]
cmp ecx, esi
je 0x43cf19
cmp ecx, ebx
je 0x43cf0c
dec dword [ecx + 4]
jne 0x43cf0c
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
mov ecx, dword [esp + 0x38]
mov dword [ecx], esi
je 0x43cf19
inc dword [esi + 4]
lea eax, [edi - 8]
cmp eax, ebx
je 0x43cf30
cmp eax, 0x8cccc8
je 0x43cf30
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x38]
inc ebp
add ecx, 0x10
cmp ebp, 4
mov dword [esp + 0x38], ecx
jl 0x43ce52
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0xc
mov dword [esp + 0x18], eax
jle 0x43ce44
push 0xc0
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43cfae
mov eax, dword [0x8ec008]
mov edi, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
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 edi
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.war_icon.dds
mov ecx, esi
mov dword [0x729444], edi
call fcn.004be370
jmp 0x43cfb0
xor esi, esi
mov ecx, dword [esp + 0x44]
cmp ecx, esi
je 0x43cfd2
cmp ecx, ebx
je 0x43cfc7
dec dword [ecx + 4]
jne 0x43cfc7
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, ebx
mov dword [esp + 0x44], esi
je 0x43cfd2
inc dword [esi + 4]
push 0xc0
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43d027
mov eax, dword [0x8ec008]
mov edi, dword [0x729444]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
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 edi
mov dword [esi + 0xbc], ebx
push eax
xor ebx, ebx
mov eax, str.treaty.dds
mov ecx, esi
mov dword [0x729444], edi
call fcn.004be370
jmp 0x43d029
xor esi, esi
mov ecx, dword [esp + 0x48]
cmp ecx, esi
je 0x43d04b
cmp ecx, ebx
je 0x43d040
dec dword [ecx + 4]
jne 0x43d040
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
mov dword [esp + 0x48], esi
je 0x43d04b
inc dword [esi + 4]
xor eax, eax
mov ecx, 0x900
lea edi, [esp + 0xb8]
rep stosd dword es:[edi], eax
mov eax, dword [0x85c100]
xor esi, esi
cmp eax, ebx
mov dword [0x85c0fc], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
jle 0x43d378
lea ebp, [esp + 0x24b8]
mov edx, 0x864d10
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], edx
mov ecx, ebx
mov edi, edi
mov al, byte [edx]
mov ebx, dword [esp + 0x72ec]
movsx edi, al
test edi, ebx
je 0x43d0a4
and al, 0x7f
mov byte [edx], al
mov al, byte [edx]
test al, al
js 0x43d358
mov edi, dword [esp + 0x72e8]
movsx eax, al
test eax, edi
je 0x43d358
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 0xc]
push eax
mov eax, dword [edx + 8]
push eax
mov eax, dword [edx + 4]
call fcn.0043b840
add esp, 0xc
push 8
push 0x4c
call fcn.00487950
mov ebx, eax
mov eax, 0x86bb48
add esp, 8
dec ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d0f0
sub eax, edx
mov esi, eax
js 0x43d13f
mov eax, dword [ebp]
cmp eax, 0x86bb48
je 0x43d13f
test esi, esi
je 0x43d12e
mov edi, ebp
call fcn.004f4a30
mov edi, dword [ebp]
push esi
push 0x86bb48
push edi
call dword [sym.imp.MSVCR71.dll_memmove]
mov ecx, dword [edi - 4]
add esp, 0xc
mov byte [edi + ecx], 0
jmp 0x43d13f
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x43d13f
mov byte [eax], 0
mov dword [eax - 4], 0
test ebx, ebx
mov dword [0x85c11c], 0x43
jle 0x43d475
mov esi, 0x8cccd0
mov eax, 0x86bb48
mov dword [esp + 0x18], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d162
sub eax, edx
mov ebx, eax
js 0x43d1c2
mov edx, 0x86bb48
cmp edx, 0x8cccd0
je 0x43d1c2
test ebx, ebx
je 0x43d1a8
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.004f4a30
mov esi, dword [esp + 0x18]
push ebx
push 0x86bb48
push esi
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [esi - 4]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x43d1c2
mov eax, dword [0x8ccccc]
test eax, eax
je 0x43d1c2
mov byte [0x8cccd0], 0
mov dword [0x8ccccc], 0
mov eax, dword [esi - 4]
lea edi, [eax - 1]
cmp edi, eax
jge 0x43d1ee
test edi, edi
jl 0x43d1ee
mov bl, byte [edi + esi]
push 0xa
push esi
mov byte [edi + esi], 0
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
mov byte [edi + esi], bl
je 0x43d1ee
sub eax, esi
jmp 0x43d1f1
or eax, 0xffffffff
mov edx, dword [esi - 4]
mov ecx, edx
sub ecx, eax
sub edx, ecx
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x18]
call fcn.004f2f20
mov ebp, dword [esp + 0x2c]
mov ebx, dword [ebp - 4]
test ebx, ebx
jl 0x43d24f
cmp ebp, esi
je 0x43d24f
test ebx, ebx
je 0x43d23e
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.004f4a30
mov esi, dword [esp + 0x18]
push ebx
push ebp
push esi
call dword [sym.imp.MSVCR71.dll_memmove]
mov ecx, dword [esi - 4]
add esp, 0xc
mov byte [esi + ecx], 0
jmp 0x43d24f
mov eax, dword [esi - 4]
test eax, eax
je 0x43d24f
mov byte [esi], 0
mov dword [esi - 4], 0
add ebp, 0xfffffff8
je 0x43d265
cmp ebp, 0x8cccc8
je 0x43d265
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [0x85c11c]
imul eax, dword [0x8ccc18]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push 0
mov dword [esp + 0x24], eax
mov eax, dword [0x8cbdd8]
push esi
push eax
mov dword [esp + 0x38], 0x8cccd0
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x20]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
add esi, 0xfffffff8
mov edx, dword [esp + 0x28]
mov dword [edx + 0x10], eax
je 0x43d2d8
cmp esi, 0x8cccc8
je 0x43d2d8
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ebp, dword [esp + 0x28]
mov eax, dword [0x85c11c]
imul eax, dword [0x8ccc18]
mov edi, dword [0x8cbdd8]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov ecx, 0x86bb48
mov dword [esp + 0x20], eax
mov dword [0x8cbde0], edi
call fcn.0050ae30
fimul dword [0x728380]
fidiv dword [0x8ccc1c]
fadd dword [0x715588]
fimul dword [esp + 0x20]
fmul dword [0x715584]
call fcn.005f275c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [0x85c0fc]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [0x85c100]
inc ecx
add edx, 0x1c
add ebp, 0x14
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebp
jl 0x43d090
mov ecx, dword [0x85c268]
mov ebp, dword [esp + 0x38]
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebp, 0x30
lea ecx, [eax - 0x14]
cmp ebp, ecx
mov dword [esp + 0x38], ebp
jle 0x43d59d
mov edx, ebp
sub edx, eax
push 0x2a0
mov dword [0x72753c], edx
call fcn.005354b8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43d4cb
mov ecx, dword [0x85c268]
lea edx, [ecx + ecx]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov eax, ecx
fild dword [esp + 0x20]
cdq
sub eax, edx
fmul dword [0x715660]
sar eax, 1
push 1
mov dword [esp + 0x24], eax
mov eax, dword [0x85c26c]
push 0
imul eax, eax, 0xf
push 0xbf800000
push 0x41800000
push ecx
cdq
fstp dword [esp]
push 0xc1200000
fild dword [esp + 0x38]
sub esp, 8
and edx, 0xf
add eax, edx
fmul dword [0x715660]
sar eax, 4
mov dword [esp + 0x40], eax
fstp dword [esp + 4]
fild dword [esp + 0x40]
fmul dword [0x715660]
fstp dword [esp]
push str.ScrollBarDOWN.nif
push str.ScrollBarUP.nif
push str.ScrollBarThumb.nif
push str.ScrollBarTile.tga
push str.LogScroller
call fcn.005049f0
test eax, eax
mov ebx, 1
je 0x43d4d0
mov ecx, dword [eax + 4]
mov edi, eax
inc ecx
mov dword [esp + 0x3c], edi
mov dword [eax + 4], ecx
jmp 0x43d4d4
mov eax, dword [0x8ccc18]
imul eax, eax, 0x43
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push 0
mov dword [esp + 0x24], eax
mov eax, dword [0x8cbdd8]
push 0x86bb48
push eax
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x20]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
mov dword [ebp + 0x10], eax
jmp 0x43d2dc
mov ebx, 1
mov edi, dword [esp + 0x3c]
mov ecx, dword [0x8ccbe8]
mov esi, dword [ecx + 0x10]
push edi
mov ecx, esi
call fcn.005056f0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push ebx
push edi
call dword [edx + 0x70]
mov ecx, edi
call fcn.00535990
push ebx
push 0
mov ecx, edi
call fcn.00535550
mov ecx, dword [0x85c268]
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ebp
sub eax, ecx
mov cl, byte [edi + 0x29c]
test cl, cl
mov ecx, dword [edi + 0x298]
je 0x43d53c
test eax, eax
mov dword [ecx + 0x294], eax
mov dword [ecx + 0x290], ebx
jne 0x43d55c
jmp 0x43d556
test eax, eax
mov dword [ecx + 0x290], eax
mov dword [ecx + 0x294], 0
jne 0x43d556
mov dword [ecx + 0x290], ebx
mov dword [ecx + 0x294], ebx
mov cl, byte [edi + 0x29c]
test cl, cl
mov esi, dword [edi + 0x298]
push eax
je 0x43d585
call fcn.0050dd80
mov edi, dword [0x72753c]
mov esi, dword [0x85c0fc]
mov al, byte [0x8cc988]
jmp 0x43d5b5
call fcn.0050dd00
mov edi, dword [0x72753c]
mov esi, dword [0x85c0fc]
mov al, byte [0x8cc988]
jmp 0x43d5b5
mov al, byte [0x8cc988]
mov edi, 0xffffffe0
mov dword [0x72753c], edi
jmp 0x43d5b5
mov esi, dword [0x85c0fc]
mov cl, byte [0x8ccc27]
test cl, cl
je 0x43d5c4
mov byte [esp + 0x37], 1
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
cmp ebp, ebx
mov word [0x86e330], bx
je 0x43d73c
cmp esi, ebx
jg 0x43d5df
jge 0x43d5ec
shl esi, 4
add edi, esi
mov dword [0x72753c], edi
mov al, 1
test al, al
mov dword [0x85c0fc], ebx
jne 0x43d6e6
mov bl, byte [ebp + 0x29c]
test bl, bl
mov esi, dword [ebp + 0x298]
je 0x43d61e
fld dword [esi + 0x2a4]
fdiv dword [esi + 0x2ac]
fimul dword [esi + 0x294]
jmp 0x43d630
fld dword [esi + 0x2a0]
fdiv dword [esi + 0x2a8]
fimul dword [esi + 0x290]
fadd dword [0x70de8c]
call fcn.005f275c
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x20
jge 0x43d6a9
mov al, byte [esi + 0xf2]
test al, al
jne 0x43d6a9
test bl, bl
je 0x43d669
fld dword [esi + 0x2a4]
fdiv dword [esi + 0x2ac]
fimul dword [esi + 0x294]
jmp 0x43d67b
fld dword [esi + 0x2a0]
fdiv dword [esi + 0x2a8]
fimul dword [esi + 0x290]
fadd dword [0x70de8c]
call fcn.005f275c
sub eax, edi
test eax, eax
jle 0x43d698
mov eax, 1
shl eax, 5
add edi, eax
jmp 0x43d6e0
xor edx, edx
test eax, eax
setge dl
dec edx
mov eax, edx
shl eax, 5
add edi, eax
jmp 0x43d6e0
test bl, bl
je 0x43d6c1
fld dword [esi + 0x2a4]
fdiv dword [esi + 0x2ac]
fimul dword [esi + 0x294]
jmp 0x43d6d3
fld dword [esi + 0x2a0]
fdiv dword [esi + 0x2a8]
fimul dword [esi + 0x290]
fadd dword [0x70de8c]
call fcn.005f275c
mov edi, eax
mov dword [0x72753c], edi
xor ebx, ebx
cmp edi, ebx
jge 0x43d6f0
xor edi, edi
jmp 0x43d712
mov ecx, dword [0x85c268]
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x38]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
cmp edi, eax
jle 0x43d718
mov edi, eax
mov dword [0x72753c], edi
mov al, byte [ebp + 0x29c]
test al, al
mov esi, dword [ebp + 0x298]
mov byte [0x8cc988], 0
push edi
je 0x43d737
call fcn.0050dd80
jmp 0x43d73c
call fcn.0050dd00
mov edx, dword [0x8ccbe8]
push ebx
push edx
call fcn.004b2b90
mov eax, dword [0x85c100]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], ebx
jle 0x43dc0f
xor ebx, ebx
mov dword [esp + 0x2c], ebx
jmp 0x43d770
mov eax, dword [0x72753c]
add eax, 0xffffffe4
cmp ebp, eax
jl 0x43dbe8
mov ecx, dword [0x85c268]
mov esi, dword [0x72753c]
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
cmp ebp, ecx
setle al
test al, al
je 0x43dbe8
mov eax, dword [0x85c268]
cdq
push 0
and edx, 7
add eax, edx
sar eax, 3
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
mov ecx, esi
sub eax, ecx
lea edx, [eax + ebp + 0x1c]
mov eax, dword [0x85c26c]
push 0x43
push edx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, 0x18
push eax
mov eax, dword [esp + ebx + 0x24d4]
push eax
xor eax, eax
call fcn.004b0b40
mov ecx, dword [esp + ebx + 0x24dc]
xor eax, eax
add esp, 0x20
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x43d944
mov ecx, dword [esp + ebx + 0x24c4]
push eax
mov eax, dword [0x85c268]
cdq
and edx, 7
add eax, edx
mov edx, dword [0x72753c]
sar eax, 3
sub eax, edx
add eax, ecx
add eax, ebp
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
push 0x42700000
fild dword [0x8da050]
fmul dword [0x715884]
faddp st(1)
call fcn.005f275c
mov ecx, dword [esp + ebx + 0x24d0]
push eax
mov eax, dword [0x85c26c]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edx, [eax + ecx - 0x1c]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fild dword [0x8da04c]
fmul dword [0x715884]
faddp st(1)
call fcn.005f275c
push eax
push 0x8da018
call fcn.004bc130
mov eax, dword [0x85c26c]
cdq
mov ecx, dword [0x72753c]
and edx, 3
add eax, edx
sar eax, 2
add ax, word [esp + ebx + 0x24c8]
lea esi, [eax - 0x1c]
mov eax, dword [0x85c268]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub eax, ecx
add eax, ebp
add ax, word [esp + ebx + 0x24c4]
lea ecx, [edi + edi*2]
shl ecx, 1
movsx edx, ax
mov word [esp + ecx + 0xba], ax
movsx eax, word [0x86e330]
shl eax, 1
mov dword [esp + 0x1c], esi
movsx esi, si
add edx, 0xe
add esi, 0xc
mov word [eax + 0x86e010], si
mov word [eax + 0x86de80], dx
add edi, 6
mov word [eax + 0x86e1a0], di
mov edi, dword [esp + 0x24]
add esi, 0xe
add edx, 0xe
inc word [0x86e330]
mov word [eax + 0x86dcf0], si
mov word [eax + 0x86db60], dx
mov eax, dword [esp + 0x1c]
add eax, 0x10
mov word [esp + ecx + 0xb8], ax
mov eax, 1
inc edi
mov word [esp + ecx + 0xbc], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov edx, dword [esp + ebx + 0x24c0]
imul edx, edx, 0x1c
xor ecx, ecx
lea edx, [edx + 0x864d11]
shl eax, 4
lea esi, [edi + edi*2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
lea esi, [esp + esi*2 + 0xb8]
nop
mov edx, dword [esp + 0x54]
movsx edx, byte [edx]
mov eax, 1
shl eax, cl
test edx, eax
je 0x43dbda
mov eax, dword [0x85c26c]
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x28]
shl eax, 4
add ax, word [esp + ebx + 0x24c8]
sar edi, 2
lea ecx, [eax + edi - 0xf]
mov eax, dword [0x85c268]
cdq
and edx, 7
add eax, edx
mov word [esi], cx
xor edx, edx
mov dx, word [esp + ebx + 0x24c4]
sub dx, word [0x72753c]
lea ecx, [esp + ebx + 0x24c4]
mov dword [esp + 0x1c], ecx
sar eax, 3
add edx, ebp
lea ecx, [edx + eax + 0x11]
mov edx, dword [esp + 0x54]
mov word [esi + 2], cx
cmp byte [edx], 0
mov ecx, dword [esp + 0x18]
jns 0x43dace
lea edx, [ecx + ecx*2]
shl edx, 6
add edx, 0x8d9ad8
mov dword [esp + 0x40], edx
je 0x43da6f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
sub edx, dword [0x72753c]
mov ecx, dword [esp + 0x40]
add edx, ebp
lea eax, [edx + eax + 0xc]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fild dword [ecx + 0x38]
push 0
push 0x42480000
fmul dword [0x715574]
faddp st(1)
call fcn.005f275c
mov edx, dword [esp + ebx + 0x24d0]
push eax
add edx, dword [esp + 0x3c]
lea eax, [edx + edi - 0x10]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fild dword [edi + 0x34]
fmul dword [0x715574]
faddp st(1)
call fcn.005f275c
push eax
push edi
call fcn.004bc130
mov ecx, dword [esp + 0x18]
movsx eax, word [0x86e330]
mov di, word [esi]
mov dx, word [esi + 2]
add ecx, 6
mov word [esi + 4], cx
mov ecx, dword [esp + 0x24]
add ecx, 6
shl eax, 1
mov word [eax + 0x86e1a0], cx
movsx ecx, di
mov word [eax + 0x86e010], cx
movsx ecx, dx
mov word [eax + 0x86de80], cx
movsx ecx, di
add ecx, 0xe
mov word [eax + 0x86dcf0], cx
movsx ecx, dx
add ecx, 0xe
inc word [0x86e330]
mov word [eax + 0x86db60], cx
jmp 0x43dba7
lea ebx, [ecx + ecx*2]
shl ebx, 6
add ebx, 0x8d9ad8
je 0x43db46
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
sub ecx, dword [0x72753c]
add ecx, ebp
lea edx, [ecx + eax + 0xf]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fild dword [ebx + 0x38]
push 0
push 0x42200000
fmul dword [0x715824]
faddp st(1)
call fcn.005f275c
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + eax + 0x24d4]
add ecx, edx
lea edx, [ecx + edi - 0x10]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fild dword [ebx + 0x34]
fmul dword [0x715824]
faddp st(1)
call fcn.005f275c
push eax
push ebx
call fcn.004bc130
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov di, word [esi]
mov dx, word [esi + 2]
inc ecx
mov word [esi + 4], cx
mov cx, word [0x86e330]
add ebx, 6
movsx eax, cx
shl eax, 1
mov word [eax + 0x86e1a0], bx
movsx ebx, di
mov word [eax + 0x86e010], bx
movsx ebx, dx
mov word [eax + 0x86de80], bx
movsx ebx, di
add ebx, 0xa
mov word [eax + 0x86dcf0], bx
movsx ebx, dx
add ebx, 0xa
inc cx
mov word [eax + 0x86db60], bx
mov ebx, dword [esp + 0x2c]
mov word [0x86e330], cx
mov ecx, dword [esp + 0x24]
add edi, 2
add edx, 0xfffffff0
mov word [esi], di
mov edi, dword [esp + 0x28]
mov word [esi + 2], dx
mov edx, dword [esp + 0x30]
inc edi
add edx, 0x10
inc ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ecx
mov edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
add esi, 6
inc ecx
cmp ecx, 4
mov dword [esp + 0x18], ecx
jle 0x43d970
mov eax, dword [esp + ebx + 0x24c4]
mov ecx, dword [0x85c100]
add ebp, eax
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
jl 0x43d770
mov esi, dword [0x85c268]
mov edi, dword [0x85c26c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.PediaAlpha2.dds
mov dword [esp + 0x28], 0x300
mov dword [esp + 0x30], 0x400
call fcn.004ceb00
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add esp, 0x14
push 0
push 0xffffffffffffffff
push esi
push edi
push 0
push 0
push edx
push ecx
push 0
push 0
push eax
call fcn.004af500
add esp, 0x2c
push 4
push str._PAUSEMENU
mov esi, 0x8ebf58
call fcn.004f7660
mov eax, dword [0x85c26c]
push 0
push 0xffffffffffffffff
push 4
cdq
push 0xffffffffffffffff
sub eax, edx
push 0x64
sar eax, 1
push 0xc
push eax
mov eax, dword [0x8cb56c]
push 0x86bb48
mov dword [0x85c11c], 0x64
call fcn.004b0b40
mov esi, dword [0x85c268]
mov ebp, dword [0x85c26c]
add esp, 0x28
xor edi, edi
xor eax, eax
mov dword [esp + 0x24], eax
nop
lea edx, [eax + 1]
cmp edx, 3
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], edx
jg 0x43e017
lea ecx, [esp + edi + 0xa5]
lea ecx, [ecx + edi*2]
mov dword [esp + 0x2c], ecx
lea ecx, [edx + eax*8]
lea ecx, [ecx*4 + 0x85c168]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 1
mov dword [esp + 0x30], ecx
je 0x43dd08
cmp ecx, 0xffffffff
jne 0x43dffa
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp ecx, 1
sete dl
lea eax, [eax + edx*4]
mov ebx, dword [esp + eax*4 + 0x60]
test ebx, ebx
je 0x43dd95
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar ecx, 3
imul ecx, edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
mov dword [esp + 0x14], eax
push 0
fild dword [esp + 0x18]
push 0x425c0000
fild dword [ebx + 0x38]
fmul dword [0x7158cc]
faddp st(1)
call fcn.005f275c
fild dword [ebx + 0x34]
push eax
mov eax, ebp
fmul dword [0x7158cc]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [esp + 0x20], eax
fiadd dword [esp + 0x20]
call fcn.005f275c
push eax
push ebx
call fcn.004bc130
mov esi, dword [0x85c268]
mov ebp, dword [0x85c26c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
dec ecx
neg ecx
sbb ecx, ecx
add ecx, 3
lea eax, [edx + ecx*4]
mov ebx, dword [esp + eax*4 + 0x60]
test ebx, ebx
je 0x43de43
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar ecx, 3
imul ecx, edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
mov dword [esp + 0x14], eax
push 0
fild dword [esp + 0x18]
push 0x425c0000
fild dword [ebx + 0x38]
fmul dword [0x7158cc]
faddp st(1)
call fcn.005f275c
push eax
mov eax, ebp
cdq
and edx, 0x3f
add eax, edx
mov ecx, eax
mov eax, 0x66666667
imul ebp
sar edx, 3
sar ecx, 6
mov eax, edx
shr eax, 0x1f
add ecx, edx
lea ecx, [eax + ecx + 4]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fild dword [ebx + 0x34]
fmul dword [0x7158cc]
faddp st(1)
call fcn.005f275c
push eax
push ebx
call fcn.004bc130
mov esi, dword [0x85c268]
mov ebp, dword [0x85c26c]
cmp dword [esp + 0x30], 1
jne 0x43debb
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x43df42
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar ecx, 3
imul ecx, edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add ecx, edx
lea ecx, [eax + ecx + 0x26]
mov dword [esp + 0x14], ecx
push 0
fild dword [esp + 0x18]
push 0x425c0000
fild dword [ebx + 0x38]
fmul dword [0x7158cc]
faddp st(1)
call fcn.005f275c
fild dword [ebx + 0x34]
push eax
mov eax, ebp
fmul dword [0x7158cc]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 0xa
mov dword [esp + 0x20], eax
fiadd dword [esp + 0x20]
jmp 0x43df2a
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x43df42
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar ecx, 3
imul ecx, edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add ecx, edx
lea ecx, [eax + ecx + 0x1c]
mov dword [esp + 0x14], ecx
push 0
fild dword [esp + 0x18]
push 0x425c0000
fild dword [ebx + 0x38]
fmul dword [0x7158cc]
faddp st(1)
call fcn.005f275c
fild dword [ebx + 0x34]
push eax
mov eax, ebp
fmul dword [0x7158cc]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 0x26
mov dword [esp + 0x20], eax
fiadd dword [esp + 0x20]
call fcn.005f275c
push eax
push ebx
call fcn.004bc130
mov esi, dword [0x85c268]
mov ebp, dword [0x85c26c]
mov eax, dword [esp + 0x2c]
mov dl, byte [esp + 0x24]
mov cl, byte [esp + 0x28]
mov byte [eax - 1], dl
mov dl, byte [esp + 0x30]
mov byte [eax + 1], dl
mov byte [eax], cl
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x1c], eax
mov ecx, edi
imul ecx, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
add ecx, edx
mov eax, edx
shr eax, 0x1f
lea ecx, [eax + ecx + 0xc]
mov eax, ebp
cdq
and edx, 0x3f
add eax, edx
mov ebx, eax
mov dword [esp + 0x14], ecx
movsx ecx, word [0x86e330]
mov dx, word [esp + 0x14]
shl ecx, 1
mov word [ecx + 0x86de80], dx
mov eax, ebp
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x14]
sar eax, 3
sar ebx, 6
inc word [0x86e330]
lea eax, [eax + ebx + 0x18]
mov word [ecx + 0x86dcf0], ax
mov eax, dword [esp + 0x1c]
lea edx, [edx + eax - 4]
mov eax, dword [esp + 0x2c]
mov word [ecx + 0x86e1a0], di
inc edi
add eax, 3
mov word [ecx + 0x86db60], dx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov word [ecx + 0x86e010], bx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
inc ecx
add ebx, 4
cmp ecx, 3
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
jle 0x43dcf0
mov eax, edx
cmp eax, 3
mov dword [esp + 0x24], eax
jle 0x43dcc0
push str.International_Relations
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c268]
mov eax, 0x2aaaaaab
imul ecx
add esp, 4
push 0
push 0xffffffffffffffff
push 1
sar edx, 1
push 0xffffffffffffffff
mov eax, edx
shr eax, 0x1f
push 0x4b
lea ecx, [edx + eax - 0x14]
mov eax, dword [0x8cb568]
push ecx
push 0x10
push 0x86bb48
mov dword [0x85c11c], 0x4b
call fcn.004b0b40
mov esi, dword [0x8de30c]
mov eax, dword [esp + 0x78]
mov edx, dword [0x8de310]
add esp, 0x20
cmp eax, esi
jne 0x43e093
cmp dword [esp + 0x50], edx
je 0x43e0d3
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], edx
call fcn.0042c6c0
mov edi, eax
cmp edi, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
je 0x43e0cd
cmp edi, 0xffffffff
je 0x43e0cd
push 0xffffffffffffffff
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x36
push 0x8ca278
call fcn.00488920
add esp, 0x1c
mov dword [esp + 0x4c], edi
jmp 0x43e0d7
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x20], 0xffffffff
je 0x43e322
test edi, edi
jl 0x43e1f8
cmp edi, 5
setle al
test al, al
je 0x43e1f8
lea ebx, [edi + edi*2]
movsx edx, byte [esp + ebx + 0xa5]
movsx eax, byte [esp + ebx + 0xa4]
push edx
push eax
push str._NATIONALITY_and__NATIONALITY_n
mov esi, 0x8ebf58
call fcn.004f7660
mov al, byte [esp + ebx + 0xb2]
add esp, 0xc
cmp al, 1
jne 0x43e131
push 0x701f4c
jmp 0x43e136
push str.Treaty
call fcn.004f7680
add esp, 4
push 0
push 0x18
call fcn.00487950
mov ecx, dword [0x85c268]
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [0x85c26c]
sar esi, 3
push 0
imul esi, edi
push 0xffffffffffffffff
sar edx, 1
push 4
mov ecx, edx
push 0xff000000
add esi, edx
shr ecx, 0x1f
push 0x3c
lea edx, [ecx + esi + 0x19]
push edx
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 0x39
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
mov ecx, dword [0x85c268]
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, 0x2aaaaaab
imul ecx
sar esi, 3
imul esi, edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add esi, edx
lea ecx, [eax + esi + 0x18]
mov eax, dword [0x85c26c]
push 0
cdq
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
and edx, 0x3f
add eax, edx
push 0x3c
sar eax, 6
push ecx
add eax, 0x38
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
add esp, 0x48
jmp 0x43e322
mov esi, dword [0x85c268]
mov eax, esi
cdq
and edx, 7
lea ebp, [edi + edi*2 - 0x12]
shl ebp, 1
movsx ebx, word [esp + ebp + 0xba]
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ebx, ecx
jl 0x43e322
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ecx - 0x18]
cmp ebx, ecx
setle al
test al, al
je 0x43e322
cmp dword [esp + 0x20], edi
je 0x43e265
push 0xffffffffffffffff
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x36
push 0x8ca278
call fcn.00488920
add esp, 0x1c
mov ax, word [esp + ebp + 0xbc]
test ax, ax
jne 0x43e286
push str.Gained_Fame
mov esi, 0x8ebf58
call fcn.004f7660
add esp, 4
jmp 0x43e2db
cmp ax, 1
jl 0x43e2b5
cmp ax, 5
setle cl
test cl, cl
je 0x43e2b5
movsx eax, ax
dec eax
cmp eax, 4
mov esi, 0x8ebf58
jne 0x43e2ad
push eax
push str.Pirates_Happy
jmp 0x43e2d3
push eax
push str._NATIONALITY_Happy
jmp 0x43e2d3
movsx eax, ax
add eax, 0xfffffffa
cmp eax, 4
mov esi, 0x8ebf58
jne 0x43e2cd
push eax
push str.Pirates_Very_Happy
jmp 0x43e2d3
push eax
push str._NATIONALITY_Very_Happy
call fcn.004f7660
add esp, 8
movsx esi, word [esp + ebp + 0xb8]
push 0
push 0xffffffffffffffff
push 4
push 0xff000000
push 0x3c
lea edx, [ebx + 1]
push edx
lea eax, [esi + 1]
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
push 0
push 0xffffffffffffffff
push 4
push 0xffffcc00
push 0x3c
push ebx
push esi
push 0x86bb48
xor eax, eax
call fcn.004b0b40
add esp, 0x40
mov edi, dword [0x8ccbe8]
push 0
call fcn.004b2e50
cmp eax, 0x126
jg 0x43e37d
je 0x43e35d
dec eax
je 0x43e3a4
sub eax, 0x1a
je 0x43e3a4
mov esi, dword [esp + 0x3c]
mov edi, dword [0x72753c]
mov al, byte [0x8cc988]
mov cl, byte [esp + 0x37]
test cl, cl
je 0x43d5af
jmp 0x43e3a8
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x43e344
mov edi, dword [0x72753c]
sub edi, 0x20
mov al, 1
mov dword [0x72753c], edi
mov byte [0x8cc988], al
jmp 0x43e34f
cmp eax, 0x128
jne 0x43e340
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x43e344
mov edi, dword [0x72753c]
add edi, 0x20
mov al, 1
mov dword [0x72753c], edi
mov byte [0x8cc988], al
jmp 0x43e34f
mov esi, dword [esp + 0x3c]
test esi, esi
mov dword [0x72753c], 0xffffffff
je 0x43e401
mov ecx, dword [0x8ccbe8]
mov ecx, dword [ecx + 0x10]
push esi
call fcn.005057b0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push esi
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x74]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43e3f2
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x43e3f2
mov edx, dword [ecx]
push 1
call dword [edx]
dec dword [esi + 4]
jne 0x43e3ff
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
test esi, esi
mov ecx, dword [esp + 0x5c]
mov dword [0x85c0fc], ecx
je 0x43e41c
dec dword [esi + 4]
jne 0x43e41c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea esi, [esp + 0x4c]
mov edi, 2
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x43e43a
dec dword [ecx + 4]
jne 0x43e43a
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x43e425
lea esi, [esp + 0xa0]
mov edi, 0x10
lea esp, [esp]
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x43e465
dec dword [ecx + 4]
jne 0x43e465
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x43e450
lea esi, [esp + 0x72d8]
mov edi, 0x3e8
mov eax, dword [esi - 0x14]
sub esi, 0x14
sub eax, 8
je 0x43e48f
cmp eax, 0x8cccc8
je 0x43e48f
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
dec edi
mov dword [esi], 0x8cccd0
jne 0x43e474
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x72cc
ret