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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
mov eax, dword [0xa255a0]
mov edx, dword [0xa1e0c4]
push ebx
push ebp
mov ecx, dword [eax + 0x2250]
lea eax, [edx + 0x24]
push esi
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x18]
xor esi, esi
mov ebx, vtable.CCFileClass.0
mov dword [esp + 0xa4], eax
mov dword [esp + 0x108], esi
mov ebp, vtable.CDFileClass.0
mov edx, dword [esi + 0x7c111c]
lea ecx, [esp + 0x2a8]
push edx
call fcn.00468b70
lea ecx, [esp + 0x2a8]
call fcn.00468d70
push eax
call fcn.0076d5a7
add esp, 4
lea ecx, [esp + 0x2a8]
mov edi, eax
call fcn.00468d70
lea ecx, [esp + 0x2a8]
push eax
push edi
call fcn.00468c80
lea ecx, [esp + 0x2fc]
mov dword [esp + esi + 0x290], edi
mov dword [esp + 0x2a8], ebx
mov dword [esp + 0x308], 0
call fcn.00438290
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x2a8], ebp
call fcn.0042f250
add esi, 4
cmp esi, 0x10
jl 0x4a6798
mov ecx, str.LOADOUT.SHP
call fcn.00592370
mov ecx, str.PILOTLIT.SHP
mov dword [esp + 0x14c], eax
call fcn.00592370
mov ecx, str.XXICON.SHP
mov dword [esp + 0x130], eax
call fcn.00592370
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax*4 + 0x7c110c]
push ecx
lea ecx, [esp + 0x310]
call fcn.00468b70
lea ecx, [esp + 0x30c]
call fcn.00468d70
push eax
call fcn.0076d5a7
mov edi, eax
add esp, 4
lea ecx, [esp + 0x30c]
mov dword [esp + 0x12c], edi
call fcn.00468d70
lea ecx, [esp + 0x30c]
push eax
push edi
call fcn.00468c80
push 0x20
call fcn.0076d5a7
mov esi, eax
xor ecx, ecx
add esp, 4
cmp esi, ecx
je 0x4a6917
cmp word [edi + 6], cx
jbe 0x4a68d1
lea eax, [edi + 8]
cmp eax, ecx
je 0x4a68d1
mov eax, dword [eax + 0x14]
cmp eax, ecx
je 0x4a68d1
add eax, edi
mov dword [esp + 0x4c], eax
jmp 0x4a68d5
mov dword [esp + 0x4c], ecx
movsx ebp, word [edi + 4]
movsx ebx, word [edi + 2]
push ebp
push ebx
mov ecx, esi
call fcn.0049e970
imul ebx, ebp
mov edx, dword [esp + 0x4c]
push ebx
push edx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], 0
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 1
call fcn.00438140
mov dword [esi], vtable.BSurface.0
mov dword [esp + 0x44], esi
jmp 0x4a691b
mov dword [esp + 0x44], ecx
mov ecx, dword [0x821c74]
movsx esi, word [edi + 4]
mov eax, dword [ecx]
movsx edi, word [edi + 2]
call dword [eax + 0x80]
mov ecx, dword [0x821c74]
sub eax, esi
cdq
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
mov dword [esp + 0x24], eax
call dword [edx + 0x7c]
sub eax, edi
lea esi, [esp + 0x370]
cdq
sub eax, edx
mov edi, 0x100
sar eax, 1
mov dword [esp + 0x5c], eax
mov ecx, esi
call fcn.004a96b0
add esi, 3
dec edi
jne 0x4a695e
push 0x300
mov ecx, str.DROPSHIP.PAL
call fcn.00592370
push eax
lea eax, [esp + 0x378]
push eax
call fcn.0076e820
add esp, 0xc
xor esi, esi
mov eax, esi
and eax, 0x800000ff
jns 0x4a699d
dec eax
or eax, 0xffffff00
inc eax
lea eax, [eax + eax*2]
mov dl, byte [esp + eax + 0x370]
lea ecx, [esp + eax + 0x370]
shl dl, 2
mov byte [esp + 0x28], dl
mov dl, byte [esp + eax + 0x371]
mov al, byte [esp + eax + 0x372]
shl dl, 2
mov byte [esp + 0x29], dl
mov dx, word [esp + 0x28]
shl al, 2
inc esi
mov word [ecx], dx
cmp esi, 0x100
mov byte [ecx + 2], al
jl 0x4a698d
push 0x188
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x4a6a15
mov ecx, dword [0x821c70]
push 0
push 0x35
push ecx
lea edx, [esp + 0x37c]
push 0x820130
push edx
mov ecx, eax
call fcn.00483430
mov ebp, eax
jmp 0x4a6a17
xor ebp, ebp
push 0x188
mov dword [esp + 0x38], ebp
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x4a6a4f
mov ecx, dword [0x821c70]
push 0
push 1
push ecx
lea edx, [esp + 0x37c]
push 0x820130
push edx
mov ecx, eax
call fcn.00483430
mov edi, eax
jmp 0x4a6a51
xor edi, edi
push 0x300
mov ecx, str.CAMEO.PAL
mov dword [esp + 0x108], edi
call fcn.00592370
push eax
lea eax, [esp + 0x378]
push eax
call fcn.0076e820
add esp, 0xc
xor esi, esi
mov eax, esi
and eax, 0x800000ff
jns 0x4a6a8a
dec eax
or eax, 0xffffff00
inc eax
lea eax, [eax + eax*2]
mov dl, byte [esp + eax + 0x370]
lea ecx, [esp + eax + 0x370]
shl dl, 2
mov byte [esp + 0x28], dl
mov dl, byte [esp + eax + 0x371]
mov al, byte [esp + eax + 0x372]
shl dl, 2
mov byte [esp + 0x29], dl
mov dx, word [esp + 0x28]
shl al, 2
inc esi
mov word [ecx], dx
cmp esi, 0x100
mov byte [ecx + 2], al
jl 0x4a6a7a
push 0x188
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x4a6b02
mov ecx, dword [0x821c70]
push 0
push 1
push ecx
lea edx, [esp + 0x37c]
push 0x820130
push edx
mov ecx, eax
call fcn.00483430
mov esi, eax
jmp 0x4a6b04
xor esi, esi
push 0
mov ecx, ebp
mov dword [esp + 0xf8], esi
call fcn.00485880
mov ecx, esi
push 0x40
mov dword [esp + 0xf0], eax
call fcn.00485880
mov ecx, edi
push 0x40
mov dword [esp + 0xf4], eax
call fcn.00485880
mov ecx, dword [0x821c74]
mov dword [esp + 0x110], eax
push 0
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esp + 0x74]
push 0
push 0
call fcn.0046d7d0
mov ecx, dword [0xa1e068]
mov edx, dword [0xa27f90]
mov eax, dword [0xa1e028]
or ebx, 0xffffffff
lea ebp, [ecx + edx]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x74], vtable.DynamicVectorClass_class_TechnoTypeClass__.0
mov dword [esp + 0x88], 0xa
mov dword [esp + 0x84], 0
jle 0x4a6bab
mov edx, dword [0xa1e0c4]
mov esi, dword [edx + 0x34]
mov edx, dword [0xa1e01c]
cmp dword [edx], esi
je 0x4a6bad
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4a6b9f
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [0xa255a0]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x2264]
test eax, eax
jle 0x4a6c68
xor edi, edi
test eax, eax
jle 0x4a6d43
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x2258]
mov esi, dword [edx + edi*4]
test dword [esi + 0x5e8], ebx
je 0x4a6c54
mov edx, dword [ecx + 0x2274]
cmp dword [edx + edi*4], 0
je 0x4a6c54
cmp dword [esp + 0x84], eax
jl 0x4a6c32
mov dl, byte [esp + 0x81]
test dl, dl
jne 0x4a6c13
test eax, eax
jne 0x4a6c54
mov edx, dword [esp + 0x88]
test edx, edx
jle 0x4a6c54
add eax, edx
push 0
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
call dword [eax + 8]
test al, al
je 0x4a6c4a
mov ecx, dword [esp + 0x84]
mov eax, ecx
inc ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
mov dword [ecx + eax*4], esi
mov ecx, dword [0xa255a0]
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx + 0x2264]
inc edi
cmp edi, edx
jl 0x4a6bde
jmp 0x4a6d43
xor edi, edi
test ebp, ebp
jle 0x4a6d43
mov eax, dword [0xa27f90]
cmp edi, eax
jge 0x4a6c86
mov edx, dword [0xa27f84]
mov esi, dword [edx + edi*4]
jmp 0x4a6c93
mov edx, dword [0xa1e05c]
mov ecx, edi
sub ecx, eax
mov esi, dword [edx + ecx*4]
mov ecx, dword [0xa1e0c4]
mov eax, dword [esi + 0x55c]
cmp eax, dword [ecx + 0x11c]
jg 0x4a6d3a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
cmp eax, 0x10
jne 0x4a6cc0
cmp dword [esi + 0x38c], 1
je 0x4a6d3a
cmp dword [esi + 0x55c], ebx
je 0x4a6d3a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xac]
cmp eax, 0xa
jle 0x4a6d3a
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x5e8]
test ecx, eax
je 0x4a6d3a
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
cmp ecx, eax
jl 0x4a6d22
mov cl, byte [esp + 0x81]
test cl, cl
jne 0x4a6d03
test eax, eax
jne 0x4a6d3a
mov ecx, dword [esp + 0x88]
test ecx, ecx
jle 0x4a6d3a
mov edx, dword [esp + 0x74]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x7c]
call dword [edx + 8]
test al, al
je 0x4a6d3a
mov ecx, dword [esp + 0x84]
mov eax, ecx
inc ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x78]
mov dword [ecx + eax*4], esi
inc edi
cmp edi, ebp
jl 0x4a6c72
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x84]
xor edi, edi
cmp ebx, 8
lea eax, [eax + eax*4 + 0xa]
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2e], 0
mov dword [esp + 0x4c], eax
lea edx, [eax*4]
push edx
setg byte [esp + 0x33]
call fcn.0076d5a7
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x70], edi
mov esi, 1
push 0x60
call fcn.0076d5a7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a6e03
cmp edi, dword [esp + 0x84]
jge 0x4a6db4
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
call dword [edx + 0x98]
mov ecx, eax
jmp 0x4a6dbb
mov ecx, dword [esp + 0x134]
mov eax, edi
push 1
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
push 0
push 0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 + 0x19]
push eax
mov eax, edi
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4a6de5
dec eax
or eax, 0xfffffffe
inc eax
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x6c]
lea edx, [eax + edx*4 + 0x1eb]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.0066a890
jmp 0x4a6e05
xor eax, eax
mov ecx, dword [0x81a6d0]
mov dword [eax + 0x50], ecx
mov dword [ebp + edi*4], eax
test edi, edi
jne 0x4a6e1f
mov edx, dword [ebp]
mov dword [esp + 0x70], edx
jmp 0x4a6e2b
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
inc esi
inc edi
cmp edi, 8
jl 0x4a6d88
push 0x60
call fcn.0076d5a7
mov edi, eax
add esp, 4
test edi, edi
je 0x4a6e76
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
push 0
push 0
add edx, 0xe5
push 0
add eax, 0x20f
push edx
push eax
mov ecx, str.DROPUP.SHP
call fcn.00592370
mov ecx, edi
push eax
push esi
call fcn.0066a890
jmp 0x4a6e78
xor eax, eax
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x50], ebx
mov byte [eax + 0x1d], 1
mov dword [ebp + 0x20], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
inc esi
push 0x60
call fcn.0076d5a7
mov edi, eax
add esp, 4
test edi, edi
je 0x4a6ed3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
push 0
push 0
add edx, 0xe5
push 0
add eax, 0x22d
push edx
push eax
mov ecx, str.DROPDOWN.SHP
call fcn.00592370
mov ecx, edi
push eax
push esi
call fcn.0066a890
jmp 0x4a6ed5
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x50], ebx
mov byte [eax + 0x1d], 1
mov dword [ecx + 0x24], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
xor ebp, ebp
inc esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jle 0x4a6fbe
mov edx, dword [esp + 0x28]
xor ebx, ebx
xor edi, edi
lea eax, [edx + esi*4 - 4]
mov dword [esp + 0x6c], eax
push 0x60
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x4a6f72
cmp edi, 0x84
mov ecx, edi
jl 0x4a6f30
lea ecx, [edi - 0x84]
mov edx, dword [esp + 0x64]
push 0
push 0
push 0
lea edx, [ebp + edx*2]
mov ebp, dword [esp + 0x70]
lea edx, [edx + ebp - 3]
lea ebp, [ebx + edx*4]
add edx, ebp
mov ebp, dword [esp + 0x30]
mov edx, dword [edx*4 + 0x78ba34]
add edx, ebp
push edx
mov edx, dword [esp + 0x6c]
lea ecx, [ecx + edx + 0x35]
push ecx
push 0
push esi
mov ecx, eax
call fcn.0066a890
mov ebp, dword [esp + 0x14]
jmp 0x4a6f74
xor eax, eax
mov edx, dword [0x81a6d0]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x50], edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
inc esi
add edi, 0x42
mov eax, dword [esp + 0x6c]
add eax, 4
inc ebx
cmp edi, 0x14a
mov dword [esp + 0x6c], eax
jl 0x4a6f12
mov eax, dword [esp + 0x64]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ebp
jl 0x4a6f02
xor ebp, ebp
mov ecx, dword [esp + 0x70]
call fcn.006e02d0
or esi, 0xffffffff
lea ecx, [esp + 0xac]
push ebp
push ebp
mov byte [esp + 0x49], 1
mov byte [esp + 0x4a], 0
mov byte [esp + 0x2b], 0
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], esi
mov dword [esp + 0x148], esi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x190], ebp
mov dword [esp + 0x194], ebp
mov dword [esp + 0x198], ebp
mov dword [esp + 0x19c], ebp
mov byte [esp + 0x23], 0
call fcn.004a9dd0
mov edi, 0xa
mov dword [esp + 0xac], 0x78bb84
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [esp + 0xe0]
mov dword [esp + 0x148], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x124], ebp
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x6c], esi
call fcn.0068f980
lea ecx, [esp + 0x8c]
mov dword [esp + 0xdc], eax
push ebp
push ebp
mov dword [esp + 0xec], 5
mov dword [esp + 0x108], ebp
call fcn.004a9e20
lea ecx, [esp + 0xc4]
mov dword [esp + 0x8c], 0x78bb64
push ebp
push ebp
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebp
mov byte [esp + 0x4b], 0
mov dword [esp + 0x130], ebp
mov dword [esp + 0xb0], esi
mov dword [esp + 0x70], ebp
call fcn.0046d7d0
mov edx, dword [0x8198d4]
mov dword [esp + 0xc4], vtable.DynamicVectorClass_class_TechnoTypeClass__.0
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebp
mov eax, dword [edx]
mov dword [esp + 0x114], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x118], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x11c], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x120], ecx
mov ecx, dword [0x821f88]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, dword [0x8198d4]
cmp esi, ebp
je 0x4a7144
mov ecx, esi
call fcn.00410bd0
push esi
call fcn.0076d2d5
add esp, 4
push 0x30
mov dword [0x8198d4], ebp
call fcn.0076d5a7
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4a7195
mov ecx, dword [0x821c74]
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [0x821c74]
mov esi, eax
xor edi, edi
mov edx, dword [ecx]
call dword [edx + 0x7c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov ecx, ebx
call fcn.00410a60
mov dword [0x8198d4], eax
jmp 0x4a719b
mov dword [0x8198d4], ebp
mov ecx, dword [0x821f88]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, dword [0x821c74]
mov ecx, dword [0x81a788]
mov dword [0x821c7c], eax
call fcn.00530b00
mov al, byte [0x83a6ec]
mov byte [esp + 0x13], 0
test al, al
je 0x4a71d2
mov byte [0x83a6ec], 0
jmp 0x4a71de
mov al, byte [esp + 0x41]
test al, al
je 0x4a7394
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x12c]
push edx
push ecx
movsx esi, word [eax + 2]
push ebp
push ebp
push 0x3e8
push ebp
push ebp
push ebp
lea ecx, [esp + 0x290]
mov dword [esp + 0x298], esi
movsx esi, word [eax + 4]
push ebp
lea edx, [esp + 0x1dc]
push ecx
mov ecx, dword [0x821c74]
push edx
mov edx, dword [esp + 0x60]
push ebp
push eax
mov byte [esp + 0x75], 0
mov byte [esp + 0x47], 1
mov dword [esp + 0x2b0], esi
mov dword [esp + 0x1ec], ebp
mov dword [esp + 0x1f0], ebp
call fcn.0049ea80
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jle 0x4a7394
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
lea ecx, [eax*4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x84]
add edx, ebp
or eax, 0xffffffff
cmp edx, ecx
mov ecx, dword [0xa255a0]
jge 0x4a72d9
mov ebx, dword [ecx + 0x2264]
test ebx, ebx
je 0x4a72d6
xor eax, eax
test ebx, ebx
jle 0x4a72d6
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x1c]
mov edx, dword [ecx + 0x2258]
mov esi, dword [esi + ebp]
cmp dword [edx + eax*4], esi
jne 0x4a72cd
mov ebp, dword [ecx + 0x2274]
cmp dword [ebp + eax*4], 0xffffffff
jne 0x4a732b
inc eax
cmp eax, ebx
jl 0x4a72bb
mov ebp, dword [esp + 0x14]
or eax, 0xffffffff
cmp ebp, 8
jge 0x4a7331
cmp eax, 0xffffffff
je 0x4a7331
mov edx, dword [ecx + 0x2290]
mov ecx, dword [ecx + 0x2274]
mov edx, dword [edx + eax*4]
mov esi, dword [ecx + eax*4]
cmp edx, esi
jl 0x4a7331
mov ecx, dword [edi]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
add eax, esi
add ecx, edx
sub esp, 0x10
mov edx, 0x40
mov ebx, esp
mov esi, 0x30
push 0x3f
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
jmp 0x4a7361
mov ebp, dword [esp + 0x14]
jmp 0x4a72d9
mov ecx, dword [edi]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
add eax, esi
add ecx, edx
sub esp, 0x10
mov edx, 0x40
mov ebx, esp
mov esi, 0x30
push 0x7f
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov ecx, dword [0x8198d4]
call fcn.00411090
mov ecx, dword [edi]
push 0
mov eax, dword [ecx]
call dword [eax + 0x6c]
inc ebp
add edi, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
add edx, 4
cmp ebp, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edx
jl 0x4a7280
call fcn.004821e0
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov esi, eax
mov al, byte [esp + 0x23]
test al, al
jne 0x4a7fc6
test esi, 0x8000
je 0x4a7fc6
and esi, 0xffff7fff
mov dword [esp + 0x14], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x64]
cmp esi, 8
jg 0x4a7865
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*4]
cmp edx, ecx
jge 0x4a7865
mov edx, dword [esp + 0x3c]
lea eax, [esi + edx]
lea ecx, [eax - 1]
test ecx, ecx
mov dword [esp + 0x30], ecx
jl 0x4a7fd0
cmp ecx, dword [esp + 0x84]
jge 0x4a7fd0
mov ecx, dword [esp + 0x78]
mov edx, dword [0xa255a0]
mov ebx, dword [ecx + eax*4 - 4]
mov ecx, dword [edx + 0x2264]
test ecx, ecx
mov dword [esp + 0x48], ebx
je 0x4a7454
xor eax, eax
test ecx, ecx
jle 0x4a7454
mov esi, dword [edx + 0x2258]
cmp dword [esi + eax*4], ebx
jne 0x4a744f
mov edi, dword [edx + 0x2274]
cmp dword [edi + eax*4], 0xffffffff
jne 0x4a74fc
inc eax
cmp eax, ecx
jl 0x4a743a
or esi, 0xffffffff
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x1c], esi
call dword [edx + 0xac]
mov ecx, dword [esp + 0xa4]
sub ecx, eax
js 0x4a7fd0
cmp esi, 0xffffffff
je 0x4a7498
mov eax, dword [0xa255a0]
mov edx, dword [eax + 0x2290]
mov eax, dword [eax + 0x2274]
mov ecx, dword [edx + esi*4]
mov edx, dword [eax + esi*4]
cmp ecx, edx
jge 0x4a7fd0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x68]
mov eax, dword [ebx]
push 0
mov edx, dword [edi + esi*4 + 0x28]
push 0
mov ecx, ebx
mov ebp, dword [edx]
call dword [eax + 0x98]
mov ecx, dword [edi + esi*4 + 0x28]
push eax
call dword [ebp + 0x88]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x98]
mov edi, dword [edi + esi*4 + 0x28]
mov ebp, eax
push 0x20
call fcn.0076d5a7
mov esi, eax
add esp, 4
test esi, esi
je 0x4a7557
cmp word [ebp + 6], 0
jbe 0x4a7503
lea eax, [ebp + 8]
test eax, eax
je 0x4a7503
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4a7503
add eax, ebp
mov dword [esp + 0x38], eax
jmp 0x4a750b
mov esi, eax
jmp 0x4a7457
mov dword [esp + 0x38], 0
movsx eax, word [ebp + 4]
movsx ebx, word [ebp + 2]
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.0049e970
mov dword [esi + 0xc], 0
mov dword [esi], vtable.XSurface.0
imul ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
push ebx
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], 1
call fcn.00438140
mov dword [esi], vtable.BSurface.0
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x38], esi
jmp 0x4a755f
mov dword [esp + 0x38], 0
push 0x4c
call fcn.0076d5a7
mov esi, eax
add esp, 4
test esi, esi
je 0x4a7639
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
movsx ecx, word [ebp + 2]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x50], eax
movsx eax, word [ebp + 4]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x178], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x17c], eax
mov edi, dword [edi + 0x18]
mov eax, edx
sub eax, ecx
mov ecx, ebx
sub ecx, ebp
mov ebp, esi
mov dword [esp + 0x174], 0
mov dword [esi + 0x38], 0
mov dword [ebp], eax
mov eax, dword [esp + 0x50]
mov dword [ebp + 4], ecx
lea ecx, [esi + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
mov ebp, ecx
xor ecx, ecx
mov dword [ebp], ecx
mov ecx, dword [esp + 0x174]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x178]
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x17c]
mov dword [ebp + 0xc], ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x30], edx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x34], eax
mov dword [ecx + 0xc], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0x48]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov byte [esi + 0x48], 0
jmp 0x4a763b
xor esi, esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
cmp ecx, eax
jl 0x4a7681
mov cl, byte [esp + 0x99]
test cl, cl
jne 0x4a765c
test eax, eax
jne 0x4a769c
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jle 0x4a769c
add eax, ecx
push 0
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x94]
call dword [eax + 8]
test al, al
je 0x4a769c
mov ecx, dword [esp + 0x9c]
mov eax, ecx
inc ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x90]
mov dword [ecx + eax*4], esi
mov ebp, dword [esp + 0x1c]
cmp ebp, 0xffffffff
je 0x4a76ba
mov edx, dword [0xa255a0]
mov eax, dword [edx + 0x2290]
mov ecx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd4]
cmp ecx, eax
jl 0x4a7700
mov cl, byte [esp + 0xd1]
test cl, cl
jne 0x4a76db
test eax, eax
jne 0x4a771b
mov ecx, dword [esp + 0xd8]
test ecx, ecx
jle 0x4a771b
mov edx, dword [esp + 0xc4]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0xcc]
call dword [edx + 8]
test al, al
je 0x4a771b
mov ecx, dword [esp + 0xd4]
mov eax, ecx
inc ecx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0xc8]
mov dword [ecx + eax*4], ebx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x68]
inc edi
mov byte [esp + 0x13], 1
lea eax, [edx - 1]
mov dword [esp + 0x68], edi
cdq
sub eax, edx
mov byte [esp + 0x23], 1
mov esi, eax
sar esi, 1
cmp dword [esp + esi*4 + 0x138], 0xffffffff
jne 0x4a775e
mov dword [esp + esi*4 + 0x138], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + esi*4 + 0x188], eax
mov ecx, dword [esp + 0xbc]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x1b], 1
jle 0x4a7790
mov edx, dword [esp + 0xb0]
mov edi, dword [esp + 0x30]
mov esi, dword [edx]
cmp dword [esi + 4], edi
je 0x4a784f
inc eax
add edx, 4
cmp eax, ecx
jl 0x4a777b
jmp 0x4a7794
mov edi, dword [esp + 0x30]
push 0x14
call fcn.0076d5a7
mov esi, eax
add esp, 4
test esi, esi
je 0x4a77c3
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x42fe0000
mov dword [esi + 0xc], 0xbf800000
mov byte [esi + 0x10], 0
jmp 0x4a77c5
xor esi, esi
cmp ebp, 0xffffffff
je 0x4a77ee
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x2290]
mov edx, dword [eax + 0x2274]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [edx + ebp*4]
cmp eax, ecx
jl 0x4a77ee
mov byte [esp + 0x43], 1
mov byte [esi + 0x10], 1
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xbc]
cmp ecx, eax
jl 0x4a7834
mov cl, byte [esp + 0xb9]
test cl, cl
jne 0x4a780f
test eax, eax
jne 0x4a784f
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jle 0x4a784f
mov edx, dword [esp + 0xac]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0xb4]
call dword [edx + 8]
test al, al
je 0x4a784f
mov ecx, dword [esp + 0xbc]
mov eax, ecx
inc ecx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xb0]
mov dword [ecx + eax*4], esi
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xac]
sub dword [esp + 0xa4], eax
jmp 0x4a7fd0
cmp esi, 9
jne 0x4a7877
mov al, byte [esp + 0x2e]
test al, al
jne 0x4a78ce
jmp 0x4a7fd0
cmp esi, 0xa
jne 0x4a7a1e
mov al, byte [esp + 0x2f]
test al, al
je 0x4a7fd0
mov eax, dword [esp + 0x3c]
add eax, 2
mov esi, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
lea ebx, [edi*4]
mov dword [esp + 0x38], 8
mov dword [esp + 0x48], ebx
cmp edi, dword [esp + 0x84]
jge 0x4a78d7
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx + eax]
mov edx, dword [ecx]
call dword [edx + 0x98]
jmp 0x4a78de
mov eax, dword [esp + 0x3c]
sub eax, 2
jmp 0x4a7893
mov eax, dword [esp + 0x134]
mov ecx, dword [esi]
push 0
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x88]
cmp edi, dword [esp + 0x84]
jge 0x4a7933
mov ecx, dword [0xa255a0]
mov ebp, dword [ecx + 0x2264]
test ebp, ebp
je 0x4a7933
xor eax, eax
test ebp, ebp
jle 0x4a7933
mov edi, dword [esp + 0x78]
mov edx, dword [ecx + 0x2258]
mov edi, dword [ebx + edi]
cmp dword [edx + eax*4], edi
jne 0x4a792e
mov ebx, dword [ecx + 0x2274]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x4a79d2
inc eax
cmp eax, ebp
jl 0x4a7919
mov eax, dword [esi]
sub esp, 0x10
mov ebx, esp
mov edx, 0x40
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebx], ecx
mov edi, 0x30
push 0x7f
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
mov ecx, dword [0x8198d4]
call fcn.00411090
mov ecx, dword [esi]
push 1
mov eax, dword [ecx]
call dword [eax + 0x6c]
add esi, 4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
inc edi
add ebx, 4
dec eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], eax
jne 0x4a78b4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 1
mov edx, dword [eax + ecx*4 - 4]
mov byte [edx + 0x2c], 0
mov ecx, dword [eax + ecx*4 - 4]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x84]
test eax, eax
setne byte [esp + 0x2e]
add ecx, 0xfffffff8
mov byte [esp + 0x13], 1
cmp eax, ecx
setl byte [esp + 0x2f]
jmp 0x4a7fd0
cmp eax, 0xffffffff
je 0x4a7933
mov edx, dword [ecx + 0x2290]
mov ecx, dword [ecx + 0x2274]
mov edx, dword [edx + eax*4]
mov edi, dword [ecx + eax*4]
cmp edx, edi
jl 0x4a7933
mov eax, dword [esi]
sub esp, 0x10
mov ebx, esp
mov edx, 0x40
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebx], ecx
mov edi, 0x30
push 0x3f
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
jmp 0x4a7957
cmp esi, 0xb
jl 0x4a7fd0
lea edx, [eax + eax*4 + 0xb]
cmp esi, edx
jge 0x4a7fd0
mov eax, dword [esp + 0xd4]
lea ebx, [esi - 0xb]
cmp ebx, eax
jge 0x4a7fd0
mov edx, dword [0xa255a0]
mov ecx, dword [edx + 0x2264]
test ecx, ecx
je 0x4a7b8c
xor ebp, ebp
test ecx, ecx
jle 0x4a7b8c
mov esi, dword [esp + 0xc8]
mov eax, dword [edx + 0x2258]
mov esi, dword [esi + ebx*4]
cmp dword [eax + ebp*4], esi
jne 0x4a7a84
mov edi, dword [edx + 0x2274]
cmp dword [edi + ebp*4], 0xffffffff
jne 0x4a7a8e
inc ebp
cmp ebp, ecx
jl 0x4a7a73
jmp 0x4a7b8c
cmp ebp, 0xffffffff
je 0x4a7b8c
mov eax, dword [edx + 0x2290]
mov ecx, dword [edx + 0x2274]
mov eax, dword [eax + ebp*4]
mov edi, dword [ecx + ebp*4]
cmp eax, edi
jl 0x4a7b7d
mov ecx, dword [esp + 0x84]
xor edi, edi
test ecx, ecx
jle 0x4a7b7d
mov eax, dword [esp + 0x78]
cmp dword [eax], esi
je 0x4a7ad7
inc edi
add eax, 4
cmp edi, ecx
jl 0x4a7ac6
jmp 0x4a7b7d
push 0x14
call fcn.0076d5a7
mov esi, eax
add esp, 4
test esi, esi
je 0x4a7b06
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x42fe0000
mov dword [esi + 0xc], 0xbf800000
mov byte [esi + 0x10], 0
jmp 0x4a7b08
xor esi, esi
mov dword [esi + 0xc], 0x3f800000
mov dword [esi + 8], 0x427c0000
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xbc]
cmp ecx, eax
jl 0x4a7b5c
mov cl, byte [esp + 0xb9]
test cl, cl
jne 0x4a7b37
test eax, eax
jne 0x4a7b77
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jle 0x4a7b77
mov edx, dword [esp + 0xac]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0xb4]
call dword [edx + 8]
test al, al
je 0x4a7b77
mov ecx, dword [esp + 0xbc]
mov eax, ecx
inc ecx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xb0]
mov dword [ecx + eax*4], esi
mov edx, dword [0xa255a0]
mov edx, dword [edx + 0x2290]
mov ecx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
dec ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
call dword [edx + 0xac]
mov ecx, dword [esp + 0xa4]
add ecx, eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xd4]
cmp ebx, ecx
jge 0x4a7be1
dec ecx
mov eax, ebx
cmp ebx, ecx
mov dword [esp + 0xd4], ecx
jge 0x4a7be1
mov ecx, dword [esp + 0xc8]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0xd4]
cmp eax, ecx
jl 0x4a7bc7
mov eax, dword [esp + 0x68]
mov byte [esp + 0x13], 1
sub eax, ebx
dec eax
test eax, eax
jle 0x4a7e07
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea ecx, [ecx + edx*4]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
push 0x20
xor ebx, ebx
mov edi, dword [edx - 4]
mov ebp, dword [edi + 0x58]
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a7c88
cmp word [ebp + 6], bx
jbe 0x4a7c40
lea eax, [ebp + 8]
cmp eax, ebx
je 0x4a7c40
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4a7c40
add eax, ebp
mov dword [esp + 0x30], eax
jmp 0x4a7c44
mov dword [esp + 0x30], ebx
movsx ebx, word [ebp + 4]
movsx ebp, word [ebp + 2]
push ebx
push ebp
mov ecx, esi
call fcn.0049e970
imul ebp, ebx
mov eax, dword [esp + 0x30]
push ebp
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], 0
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 1
call fcn.00438140
mov dword [esi], vtable.BSurface.0
xor ebx, ebx
mov dword [esp + 0x30], esi
jmp 0x4a7c8c
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push ebx
push ebx
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov ecx, edi
push eax
call dword [edx + 0x88]
mov ebp, dword [edi + 0x58]
push 0x20
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a7d07
cmp word [ebp + 6], bx
jbe 0x4a7cce
lea eax, [ebp + 8]
cmp eax, ebx
je 0x4a7cce
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4a7cce
lea edx, [eax + ebp]
jmp 0x4a7cd0
xor edx, edx
movsx eax, word [ebp + 2]
movsx ecx, word [ebp + 4]
mov dword [esi + 4], eax
imul eax, ecx
mov dword [esi + 8], ecx
push eax
push edx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 1
call fcn.00438140
mov dword [esi], vtable.BSurface.0
mov dword [esp + 0x48], esi
jmp 0x4a7d0b
mov dword [esp + 0x48], ebx
push 0x4c
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a7d8a
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov edi, dword [edi + 0x18]
mov ebp, esi
xor ebx, ebx
mov dword [esi + 0x38], 0
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
mov ebp, ebx
xor ebx, ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
lea ebx, [esi + 0x20]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov dword [esi + 0x30], ecx
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x48]
mov dword [ebp + 0xc], edi
mov dword [esi + 0x34], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0xf0]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], 0
jmp 0x4a7d8c
xor esi, esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
cmp ecx, eax
jl 0x4a7dd2
mov cl, byte [esp + 0x99]
test cl, cl
jne 0x4a7dad
test eax, eax
jne 0x4a7ded
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jle 0x4a7ded
add eax, ecx
push 0
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x94]
call dword [eax + 8]
test al, al
je 0x4a7ded
mov ecx, dword [esp + 0x9c]
mov eax, ecx
inc ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x90]
mov dword [ecx + eax*4], esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], eax
jne 0x4a7c08
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
push 0x20
mov edi, dword [edx + eax*4 + 0x24]
mov ebp, dword [edi + 0x58]
call fcn.0076d5a7
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x4a7e79
cmp word [ebp + 6], bx
jbe 0x4a7e40
lea eax, [ebp + 8]
cmp eax, ebx
je 0x4a7e40
mov edx, dword [eax + 0x14]
cmp edx, ebx
je 0x4a7e40
add edx, ebp
jmp 0x4a7e42
xor edx, edx
movsx eax, word [ebp + 2]
movsx ecx, word [ebp + 4]
mov dword [esi + 4], eax
imul eax, ecx
mov dword [esi + 8], ecx
push eax
push edx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 1
call fcn.00438140
mov dword [esi], vtable.BSurface.0
mov dword [esp + 0x30], esi
jmp 0x4a7e7d
mov dword [esp + 0x30], ebx
push 0x4c
call fcn.0076d5a7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a7f4d
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0xc]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x48], eax
mov eax, edx
sub eax, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
sub ecx, ebx
movsx ebx, word [ebp + 2]
mov dword [esp + 0x288], ebx
movsx ebx, word [ebp + 4]
mov dword [esp + 0x28c], ebx
mov ebp, esi
xor ebx, ebx
mov dword [esi + 0x38], 0
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x288]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x28c]
mov dword [ebp + 0xc], ebx
lea ebx, [esi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
lea ebx, [esi + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x38]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x30], eax
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x34], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xf0]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x110]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], 0
jmp 0x4a7f4f
xor esi, esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
cmp ecx, eax
jl 0x4a7f95
mov cl, byte [esp + 0x99]
test cl, cl
jne 0x4a7f70
test eax, eax
jne 0x4a7fb0
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jle 0x4a7fb0
mov edx, dword [esp + 0x8c]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x94]
call dword [edx + 8]
test al, al
je 0x4a7fb0
mov ecx, dword [esp + 0x9c]
mov eax, ecx
inc ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x90]
mov dword [ecx + eax*4], esi
mov edx, dword [edi]
push 0
push 0
push 0
mov ecx, edi
call dword [edx + 0x88]
dec dword [esp + 0x68]
jmp 0x4a7fd0
cmp esi, 0x20
jne 0x4a7fd0
mov byte [esp + 0x42], 1
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov al, byte [ecx + 0x2c]
test al, al
je 0x4a7ffa
mov al, byte [esp + 0x2e]
test al, al
je 0x4a7ffa
mov al, byte [esp + 0x23]
test al, al
jne 0x4a7ffa
mov eax, dword [ecx]
push 0
call dword [eax + 0x6c]
mov byte [esp + 0x13], 1
mov ecx, dword [esi + 0x24]
mov al, byte [ecx + 0x2c]
test al, al
je 0x4a8020
mov al, byte [esp + 0x2f]
test al, al
je 0x4a8020
mov al, byte [esp + 0x23]
test al, al
jne 0x4a8020
mov edx, dword [ecx]
push 0
call dword [edx + 0x6c]
mov byte [esp + 0x13], 1
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + edi + 0x138]
cmp ebx, 0xffffffff
je 0x4a81b8
call ebp
mov edx, dword [esp + edi + 0x188]
mov ecx, eax
sub ecx, edx
mov eax, 0x51eb851f
mul ecx
mov esi, edx
shr esi, 5
cmp esi, ebx
jne 0x4a806b
mov al, byte [esp + 0x1b]
test al, al
je 0x4a81b8
mov eax, dword [edi + str._n_nn]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
add eax, ecx
mov ecx, dword [esp + edi + 0x290]
add edx, 0x173
movsx ebp, word [ecx + 6]
cmp esi, ebp
jle 0x4a813a
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x260], edx
movsx esi, word [ecx + 2]
movsx ecx, word [ecx + 4]
sub edx, ebp
mov dword [esp + 0x264], eax
mov dword [esp + 0x240], edx
mov edx, dword [esp + 0x24]
xor ebx, ebx
sub eax, edx
push ebx
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0xf0]
push 0x3e8
push ebx
mov dword [esp + 0x278], ecx
mov dword [esp + 0x258], ecx
push ebx
push eax
lea ecx, [esp + 0x274]
push ebx
lea edx, [esp + 0x198]
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x25c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [0x821c74]
mov dword [esp + 0x290], esi
mov dword [esp + 0x1a8], ebx
mov dword [esp + 0x1ac], ebx
mov dword [esp + 0x270], esi
call fcn.0049ef70
mov dword [esp + edi + 0x138], 0xffffffff
jmp 0x4a81ad
mov dword [esp + 0x1e4], eax
xor ebp, ebp
movsx eax, word [ecx + 4]
xor edi, edi
mov dword [esp + 0x1ec], eax
xor eax, eax
push ebp
push edi
mov dword [esp + 0x1e8], edx
movsx edx, word [ecx + 2]
push eax
push eax
push 0x3e8
push eax
push eax
mov dword [esp + 0x204], edx
push eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], eax
push eax
lea edx, [esp + 0x204]
lea eax, [esp + 0x17c]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ebx
push ecx
mov ecx, dword [0x821c74]
call fcn.0049ea80
mov ecx, dword [esp + 0x14]
mov edi, ecx
mov dword [esp + ecx + 0x138], esi
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
mov byte [esp + 0x13], 1
add edi, 4
cmp edi, 0x10
mov dword [esp + 0x14], edi
jl 0x4a8032
mov edx, dword [esp + 0xbc]
lea ebx, [edx - 1]
test ebx, ebx
mov dword [esp + 0x14], ebx
jl 0x4a838d
mov eax, dword [esp + 0xb0]
mov edi, dword [eax + ebx*4]
fld dword [edi + 0xc]
fcomp dword [0x785738]
fnstsw ax
test ah, 1
je 0x4a823d
call ebp
lea ecx, [eax + eax*4]
mov eax, dword [edi]
shl ecx, 1
lea edx, [eax + eax*4]
mov eax, 0xd41d41d5
shl edx, 1
sub ecx, edx
mul ecx
sub ecx, edx
mov eax, 0x7f
shr ecx, 1
add ecx, edx
shr ecx, 6
sub eax, ecx
cmp eax, 0x3f
mov dword [esp + 0x1c], eax
jge 0x4a8271
mov dword [esp + 0x1c], 0x3f
mov dword [edi + 0xc], 0x3f800000
call ebp
mov dword [edi], eax
jmp 0x4a8271
call ebp
lea ecx, [eax + eax*4]
mov eax, dword [edi]
shl ecx, 1
lea eax, [eax + eax*4]
shl eax, 1
sub ecx, eax
mov eax, 0xd41d41d5
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
add ecx, 0x3f
cmp ecx, 0x7f
mov dword [esp + 0x1c], ecx
jle 0x4a8271
mov dword [esp + 0x1c], 0x7f
fild dword [esp + 0x1c]
fst dword [esp + 0x1c]
fcomp dword [edi + 8]
fnstsw ax
test ah, 0x40
jne 0x4a8382
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
cmp esi, eax
mov dword [edi + 8], ecx
jl 0x4a832d
add eax, 8
cmp esi, eax
jg 0x4a832d
sub esi, dword [esp + 0x3c]
mov eax, esi
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4a82ba
dec eax
or eax, 0xfffffffe
inc eax
mov edx, eax
sub esp, 0x10
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x6c]
mov ebx, esp
mov ebp, 0x30
lea ecx, [eax + edx*4 + 0x1eb]
mov eax, esi
cdq
fld dword [esp + 0x2c]
sub eax, edx
mov dword [ebx], ecx
sar eax, 1
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
lea eax, [eax + edx*2 + 0x19]
mov edx, 0x40
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ebp
call fcn.0076a6b0
mov ecx, dword [0x8198d4]
push eax
call fcn.00411090
mov ecx, dword [esp + 0x28]
push 1
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x13], 1
cmp dword [edi + 8], 0x42fe0000
je 0x4a8346
mov al, byte [edi + 0x10]
test al, al
je 0x4a8382
cmp dword [edi + 8], 0x427c0000
jne 0x4a8382
push edi
call fcn.0076d2d5
mov ecx, dword [esp + 0xc0]
add esp, 4
cmp ebx, ecx
jge 0x4a8382
dec ecx
mov eax, ebx
cmp ebx, ecx
mov dword [esp + 0xbc], ecx
jge 0x4a8382
mov ecx, dword [esp + 0xb0]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0xbc]
cmp eax, ecx
jl 0x4a8368
dec ebx
mov dword [esp + 0x14], ebx
jns 0x4a81de
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4a85d8
xor ebp, ebp
test eax, eax
mov dword [esp + 0x1c], ebp
jle 0x4a85d8
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x4a83b6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x90]
xor bl, bl
cmp edx, 1
mov byte [esp + 0x1b], 1
mov esi, dword [eax + ebp*4]
jb 0x4a8410
lea ecx, [eax + ebp*4 - 4]
mov edi, edx
mov eax, dword [ecx]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x20], edx
jne 0x4a840a
mov edx, dword [eax + 0x24]
cmp edx, dword [esi + 0x24]
jne 0x4a840a
mov edx, dword [eax + 0x28]
cmp edx, dword [esi + 0x28]
jne 0x4a840a
mov edx, dword [eax + 0x2c]
cmp edx, dword [esi + 0x2c]
jne 0x4a840a
test bl, bl
mov byte [esp + 0x1b], 0
jne 0x4a8404
mov dl, byte [eax + 0x48]
test dl, dl
je 0x4a8406
mov bl, 1
mov ebp, dword [esp + 0x1c]
sub ecx, 4
dec edi
jne 0x4a83d2
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x3c]
lea edx, [eax*8]
sub edx, eax
mov eax, 0x88888889
sub ecx, edx
mul ecx
shr edx, 4
cmp edx, 0xff
jbe 0x4a8446
mov edi, 0xff
jmp 0x4a846f
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x3c]
lea edx, [eax*8]
sub edx, eax
mov eax, 0x88888889
sub ecx, edx
mul ecx
mov edi, edx
shr edi, 4
cmp edi, dword [esi + 0x38]
jne 0x4a847c
test bl, bl
je 0x4a8541
mov al, byte [esp + 0x1b]
mov dword [esi + 0x38], edi
test al, al
je 0x4a84c4
mov ecx, dword [esi + 0x40]
xor eax, eax
push eax
push 0x3e8
push eax
push eax
push ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], eax
push eax
lea edx, [esi + 0x20]
lea eax, [esp + 0x178]
push edx
mov edx, dword [esp + 0x50]
push eax
push esi
push ecx
mov ecx, dword [0x821c74]
call fcn.0049ef70
lea ebp, [esi + 0x20]
sub esp, 0x10
mov edx, ebp
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [0x8198d4]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov ax, word [esi + 0x38]
push eax
call fcn.00411090
mov ecx, dword [esi + 0x44]
xor eax, eax
push eax
push 0x3e8
push eax
push eax
push ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], eax
push eax
lea edx, [esp + 0x1c8]
push ebp
lea eax, [esi + 0x10]
push edx
mov edx, dword [esp + 0x114]
push eax
push ecx
mov ecx, dword [0x821c74]
call fcn.0049ef70
mov byte [esi + 0x48], 1
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
cmp edi, 0xff
jne 0x4a85bb
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x44]
cmp ecx, eax
je 0x4a855e
test ecx, ecx
je 0x4a855e
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x44]
cmp ecx, eax
je 0x4a8573
test ecx, ecx
je 0x4a8573
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
call fcn.0076d2d5
mov ecx, dword [esp + 0xa0]
add esp, 4
cmp ebp, ecx
jge 0x4a85af
dec ecx
mov eax, ebp
cmp ebp, ecx
mov dword [esp + 0x9c], ecx
jge 0x4a85af
mov ecx, dword [esp + 0x90]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0x9c]
cmp eax, ecx
jl 0x4a8595
mov eax, dword [esp + 0x14]
dec ebp
dec eax
mov dword [esp + 0x14], eax
jmp 0x4a85c2
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x14]
inc ebp
inc edx
cmp ebp, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
jl 0x4a83b2
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov edi, dword [esp + 0x124]
mov esi, dword [esp + 0x14c]
sub eax, edi
movsx edi, word [esi + 6]
cmp eax, 0x12c
setb byte [esp + 0x23]
call ebx
mov edx, dword [esp + 0x148]
mov ecx, eax
sub ecx, edx
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 4
div edi
cmp edx, dword [esp + 0x100]
je 0x4a869f
mov edi, dword [esp + 0x5c]
xor ecx, ecx
xor eax, eax
add edi, 0x2d
push ecx
push eax
mov dword [esp + 0x258], edi
mov edi, dword [esp + 0x2c]
push eax
push eax
push 0x3e8
mov dword [esp + 0x268], edi
movsx edi, word [esi + 2]
push eax
push eax
push eax
mov dword [esp + 0x1e0], eax
mov dword [esp + 0x1e4], eax
push eax
lea eax, [esp + 0x274]
mov dword [esp + 0x27c], edi
movsx edi, word [esi + 4]
lea ecx, [esp + 0x1e4]
push eax
push ecx
mov ecx, dword [0x821c74]
mov dword [esp + 0x12c], edx
push edx
mov edx, dword [esp + 0x64]
push esi
mov dword [esp + 0x290], edi
call fcn.0049ea80
mov byte [esp + 0x13], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0x108]
cmp ebp, esi
mov ebx, eax
je 0x4a87d7
mov edx, dword [esp + 0xf8]
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x32
jb 0x4a87de
mov eax, ebp
mov dword [esp + 0x150], ecx
sub eax, esi
mov dword [esp + 0x154], 0
cdq
xor eax, edx
mov edi, esi
sub eax, edx
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fstp qword [esp + 0x50]
fild qword [esp + 0x150]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
push eax
fstp qword [esp + 0x110]
call fcn.004b9f30
fmul qword [esp + 0x110]
add esp, 8
fmul qword [0x78bb58]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x4a8753
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
call fcn.004b9f30
fmul qword [esp + 0x110]
add esp, 8
fmul qword [0x78bb58]
jmp 0x4a8757
fld qword [esp + 0x50]
call fcn.0076a6b0
cmp ebp, esi
jge 0x4a8762
neg eax
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x24]
add esi, eax
lea eax, [ebp + 0x1f4]
push edx
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x38]
add ecx, 0x181
push eax
push 0
mov dword [esp + 0x1a8], ecx
push 0x369
push str.C:RA2Dropship.cpp
xor edx, edx
mov ecx, str.TXT_CREDITS_COLON
mov dword [esp + 0x11c], esi
call fcn.006eea10
lea ecx, [esp + 0x1a4]
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
mov edx, edi
mov ecx, esi
call fcn.004a9180
mov byte [esp + 0x13], 1
mov dword [esp + 0xf8], ebx
jmp 0x4a87e2
mov dword [esp + 0xf8], ebx
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp esi, ebx
jl 0x4a899c
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xfc]
mov ecx, eax
sub ecx, edx
mov eax, 0x1b4e81b5
mul ecx
shr edx, 4
cmp edx, esi
je 0x4a8ad0
mov ecx, dword [esp + 0x130]
movsx eax, word [ecx + 6]
cmp edx, eax
jge 0x4a88ad
lea ebx, [ebp + 0x11c]
xor esi, esi
mov dword [esp + 0x210], ebx
lea ebx, [edi + 0x97]
mov dword [esp + 0x214], ebx
xor eax, eax
movsx ebx, word [ecx + 2]
mov dword [esp + 0x218], ebx
push esi
movsx ebx, word [ecx + 4]
mov dword [esp + 0x220], ebx
xor ebx, ebx
push eax
push ebx
push ebx
push 0x3e8
push ebx
push ebx
push ebx
lea eax, [esp + 0x230]
push ebx
push eax
lea eax, [esp + 0x1c8]
mov dword [esp + 0x94], edx
push eax
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [0x821c74]
mov dword [esp + 0x1d4], ebx
mov dword [esp + 0x1d8], ebx
call fcn.0049ea80
mov byte [esp + 0x13], 1
jmp 0x4a8ad0
lea eax, [edi + 0x97]
push ebx
mov dword [esp + 0x228], eax
lea edx, [ebp + 0x11c]
movsx eax, word [ecx + 2]
movsx ecx, word [ecx + 4]
mov dword [esp + 0x230], ecx
mov dword [esp + 0x240], ecx
mov ecx, dword [esp + 0xf0]
push 0x3e8
push ebx
mov dword [esp + 0x22c], edx
push ebx
mov dword [esp + 0x238], eax
mov dword [esp + 0x248], eax
push ecx
lea edx, [esp + 0x234]
push ebx
lea eax, [esp + 0x180]
push edx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x24c]
push eax
push ecx
mov ecx, dword [0x821c74]
push edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x190], ebx
mov dword [esp + 0x194], ebx
mov dword [esp + 0x258], 0x11c
mov dword [esp + 0x25c], 0x97
call fcn.0049ef70
lea ecx, [esp + 0x1d8]
call fcn.0068f980
mov dword [esp + 0x1d4], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x1d8]
mov ecx, 0x3c
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov byte [esp + 0x13], 1
jmp 0x4a8ad0
mov eax, dword [esp + 0xdc]
mov esi, dword [esp + 0xe4]
cmp eax, 0xffffffff
je 0x4a89c8
lea ecx, [esp + 0xe0]
call fcn.0068f980
sub eax, dword [esp + 0xdc]
cmp eax, esi
jge 0x4a89d0
sub esi, eax
cmp esi, ebx
jne 0x4a8ad0
mov ecx, dword [0xa255a0]
push SysReAllocString
push ebx
add ecx, 0x218
call fcn.0062fcf0
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul qword [0x787280]
fld dword [0x78ba24]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a8a95
mov dword [esp + 0x6c], ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0xfc], eax
lea eax, [ebp + 0x11c]
mov dword [esp + 0x1f0], eax
xor edx, edx
lea eax, [edi + 0x97]
xor ecx, ecx
mov dword [esp + 0x1f4], eax
mov eax, dword [esp + 0x130]
push edx
push ecx
movsx esi, word [eax + 2]
push ebx
push ebx
push 0x3e8
push ebx
push ebx
push ebx
lea ecx, [esp + 0x210]
mov dword [esp + 0x218], esi
movsx esi, word [eax + 4]
push ebx
lea edx, [esp + 0x1cc]
push ecx
mov ecx, dword [0x821c74]
push edx
mov edx, dword [esp + 0x60]
push ebx
push eax
mov dword [esp + 0x230], esi
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x1e0], ebx
call fcn.0049ea80
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1cc]
call fcn.0068f980
mov dword [esp + 0x1c8], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x1cc]
mov ecx, 5
mov dword [esp + 0x1d0], ecx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov ecx, dword [0x821f88]
lea eax, [esp + 0x2a0]
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov esi, dword [eax]
xor ecx, ecx
mov dword [esp + 0x50], ecx
lea edx, [edi + 0x19]
mov ebx, dword [eax + 4]
lea eax, [ebp + 0x1eb]
cmp esi, eax
jl 0x4a8be2
add eax, 0x88
cmp esi, eax
jge 0x4a8be2
cmp ebx, edx
jl 0x4a8be2
add edx, 0xc8
cmp ebx, edx
jge 0x4a8be2
mov ecx, esi
mov eax, 0x78787879
sub ecx, ebp
sub ecx, 0x1eb
imul ecx
mov eax, dword [esp + 0x24]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub ecx, eax
mov eax, 0x51eb851f
sub ecx, 0x19
mov edi, edx
imul ecx
sar edx, 4
mov eax, edx
mov ecx, edi
shr eax, 0x1f
add edx, eax
shl ecx, 4
add ecx, edi
lea eax, [edx + edx*4]
lea ecx, [ebp + ecx*4 + 0x1eb]
mov ebp, dword [esp + 0x24]
lea eax, [eax + eax*4]
cmp esi, ecx
lea eax, [ebp + eax*2 + 0x19]
jl 0x4a8bc3
add ecx, 0x40
cmp esi, ecx
jge 0x4a8bc3
cmp ebx, eax
jl 0x4a8bc3
add eax, 0x30
cmp ebx, eax
jge 0x4a8bc3
mov ecx, dword [esp + 0x3c]
lea edx, [edi + edx*2]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
jge 0x4a8bc3
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x5c]
mov edi, edx
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa8], edi
jmp 0x4a8bf7
mov ecx, dword [esp + 0xa8]
mov ebp, dword [esp + 0x5c]
or edi, 0xffffffff
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xa8], edi
jmp 0x4a8bf7
mov edx, dword [esp + 0xa8]
or edi, 0xffffffff
mov dword [esp + 0x1c], edx
mov dword [esp + 0xa8], edi
mov ebx, dword [0xa255a0]
mov edx, dword [ebx + 0x2264]
test edx, edx
je 0x4a8c29
xor eax, eax
test edx, edx
jle 0x4a8c29
mov esi, dword [ebx + 0x2258]
cmp dword [esi + eax*4], ecx
jne 0x4a8c24
mov esi, dword [ebx + 0x2274]
cmp dword [esi + eax*4], 0xffffffff
jne 0x4a8c69
inc eax
cmp eax, edx
jl 0x4a8c0d
mov byte [esp + 0xe8], 1
cmp ecx, dword [esp + 0x128]
jne 0x4a8c42
mov al, byte [esp + 0x43]
test al, al
je 0x4a8c8a
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0x34]
push eax
mov dword [esp + 0x12c], ecx
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004a9370
mov ebx, dword [0xa255a0]
mov al, 1
jmp 0x4a8c8e
cmp eax, 0xffffffff
je 0x4a8c29
mov edx, dword [ebx + 0x2290]
mov esi, dword [ebx + 0x2274]
mov edx, dword [edx + eax*4]
cmp edx, dword [esi + eax*4]
setl byte [esp + 0xe8]
jmp 0x4a8c31
mov al, byte [esp + 0x13]
test al, al
mov byte [esp + 0x1b], 0
je 0x4a8db2
mov eax, dword [esp + 0x1c]
cmp edi, eax
je 0x4a8cb6
cmp eax, 0xffffffff
je 0x4a8cb6
mov ecx, dword [esp + 0x28]
push 1
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
call dword [edx + 0x6c]
cmp edi, 0xffffffff
je 0x4a8d9d
mov al, byte [esp + 0xe8]
test al, al
je 0x4a8cf7
mov ecx, dword [0x83b2d4]
xor esi, esi
sar esi, cl
mov ecx, dword [0x83b2d0]
mov eax, 0xff
shl esi, cl
mov ecx, dword [0x83b2dc]
sar eax, cl
mov ecx, dword [0x83b2d8]
shl eax, cl
or esi, eax
xor edx, edx
jmp 0x4a8d22
mov ecx, dword [0x83b2d4]
xor esi, esi
sar esi, cl
mov ecx, dword [0x83b2d0]
xor eax, eax
mov edx, 0xff
shl esi, cl
mov ecx, dword [0x83b2dc]
sar eax, cl
mov ecx, dword [0x83b2d8]
shl eax, cl
or esi, eax
mov ecx, dword [0x83b2cc]
mov eax, edi
sar edx, cl
mov ecx, dword [0x83b2c8]
shl edx, cl
or esi, edx
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4a8d42
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, eax
mov dword [esp + 0x208], 0x40
shl ecx, 4
add ecx, eax
mov eax, edi
mov dword [esp + 0x20c], 0x30
push esi
lea edx, [ebp + ecx*4 + 0x1eb]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x204], edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2 + 0x19]
mov ecx, dword [0x821c74]
mov dword [esp + 0x208], edx
lea edx, [esp + 0x204]
mov eax, dword [ecx]
push edx
call dword [eax + 0x58]
mov edx, dword [0x821c74]
push 0
mov cl, 1
call fcn.004e01d0
mov ebx, dword [0xa255a0]
mov al, byte [esp + 0x42]
test al, al
je 0x4a71bb
mov eax, dword [esp + 0xd4]
xor ebp, ebp
xor edx, edx
cmp eax, ebp
mov dword [esp + 0x14], edx
jle 0x4a8ec5
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + edx*4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*4]
lea edx, [edx + eax*2]
mov eax, dword [0xa1e0c4]
lea esi, [eax + edx*4 + 0x5560]
mov edx, dword [eax + edx*4 + 0x5570]
cmp edx, 5
jge 0x4a8ead
mov edi, dword [ebx + 0x2264]
cmp edi, ebp
jne 0x4a8e20
or edi, 0xffffffff
jmp 0x4a8e69
xor eax, eax
cmp edi, ebp
jle 0x4a8e1b
mov ebp, dword [ebx + 0x2258]
cmp dword [ebp + eax*4], ecx
jne 0x4a8e3f
mov ebp, dword [ebx + 0x2274]
cmp dword [ebp + eax*4], 0xffffffff
jne 0x4a8e4b
inc eax
cmp eax, edi
jl 0x4a8e26
xor ebp, ebp
or edi, 0xffffffff
jmp 0x4a8e69
cmp eax, 0xffffffff
mov edi, eax
je 0x4a8e67
mov ebp, dword [ebx + 0x2290]
mov ebx, dword [ebx + 0x2274]
mov ebp, dword [ebp + eax*4]
cmp ebp, dword [ebx + eax*4]
jge 0x4a8ea5
xor ebp, ebp
mov dword [esi + edx*4 + 0x14], ecx
mov edx, dword [esi + 0x10]
inc edx
mov dword [esi + 0x10], edx
mov edx, dword [ecx]
call dword [edx + 0xac]
mov ecx, dword [esi + 0x28]
add ecx, eax
cmp edi, 0xffffffff
mov dword [esi + 0x28], ecx
je 0x4a8e9d
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x2290]
lea eax, [ecx + edi*4]
mov ecx, dword [ecx + edi*4]
inc ecx
mov dword [eax], ecx
mov ebx, dword [0xa255a0]
jmp 0x4a8ead
mov ebx, dword [0xa255a0]
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xd4]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x4a8dd5
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x4a8ed3
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0xf4]
cmp ecx, ebp
je 0x4a8ee4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x104]
cmp ecx, ebp
je 0x4a8ef5
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
je 0x4a8f03
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.0076d2d5
add esp, 4
lea esi, [esp + 0x290]
mov edi, 4
mov edx, dword [esi]
push edx
call fcn.0076d2d5
add esp, 4
add esi, 4
dec edi
jne 0x4a8f1f
mov eax, dword [esp + 0x4c]
cmp eax, ebp
jle 0x4a8f50
mov esi, dword [esp + 0x28]
mov edi, eax
mov ecx, dword [esi]
cmp ecx, ebp
je 0x4a8f4a
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 4
dec edi
jne 0x4a8f3e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0076d2d5
mov ecx, dword [0x821f88]
add esp, 4
mov edx, dword [ecx]
call dword [edx + 0xc]
mov esi, dword [0x8198d4]
cmp esi, ebp
je 0x4a8f82
mov ecx, esi
call fcn.00410bd0
push esi
call fcn.0076d2d5
add esp, 4
push 0x30
mov dword [0x8198d4], ebp
call fcn.0076d5a7
add esp, 4
cmp eax, ebp
je 0x4a8fd0
mov edx, dword [esp + 0x114]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x128]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x12c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x130]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00410a60
mov dword [0x8198d4], eax
jmp 0x4a8fd6
mov dword [0x8198d4], ebp
mov esi, dword [0x821f8c]
cmp esi, ebp
je 0x4a8ff6
mov ecx, esi
call fcn.00761290
push esi
call fcn.0076d2d5
add esp, 4
mov dword [0x821f8c], ebp
push 0x30
call fcn.0076d5a7
add esp, 4
cmp eax, ebp
je 0x4a903e
mov edx, dword [esp + 0x114]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x128]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x12c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x130]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00761120
mov dword [0x821f8c], eax
jmp 0x4a9044
mov dword [0x821f8c], ebp
mov ecx, dword [0x821f88]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esp + 0xc8]
mov esi, vtable.VectorClass_class_TechnoTypeClass__.0
cmp eax, ebp
mov dword [esp + 0xc4], esi
je 0x4a9081
mov cl, byte [esp + 0xd1]
test cl, cl
je 0x4a9081
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0xc8], ebp
mov eax, dword [esp + 0x90]
mov byte [esp + 0xd1], 0
cmp eax, ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x8c], vtable.VectorClass_struct_CrossDissolveEffect__.0
je 0x4a90c1
mov cl, byte [esp + 0x99]
test cl, cl
je 0x4a90c1
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x90], ebp
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x99], 0
cmp eax, ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0xac], vtable.VectorClass_struct_ButtonFadeEffect__.0
je 0x4a9101
mov cl, byte [esp + 0xb9]
test cl, cl
je 0x4a9101
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0xb0], ebp
mov eax, dword [esp + 0x78]
mov byte [esp + 0xb9], 0
cmp eax, ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0x74], esi
je 0x4a9134
mov cl, byte [esp + 0x81]
test cl, cl
je 0x4a9134
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x78], ebp
lea ecx, [esp + 0x360]
mov byte [esp + 0x81], 0
mov dword [esp + 0x7c], ebp
mov dword [esp + method.CCFileClass.virtual_0], vtable.CCFileClass.0
mov dword [esp + 0x36c], ebp
call fcn.00438290
lea ecx, [esp + 0x30c]
mov dword [esp + method.CDFileClass.virtual_0], vtable.CDFileClass.0
call fcn.0042f250
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret