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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6341c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x124
mov eax, dword [0x6bd4d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], ecx
jmp 0x585aec
mov ecx, dword [ebp - 0x12c]
call fcn.00585a50
mov esi, dword [ebx + 8]
mov edx, esi
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x585b00
sub edx, edi
mov edi, dword [ebp - 0x12c]
push edx
push esi
lea eax, [edi + 4]
lea esi, [edi + 4]
mov dword [ebp - 0x130], eax
mov ecx, esi
call fcn.0043e410
push esi
call fcn.004f5330
add esp, 4
lea ecx, [ebp - 0x120]
call fcn.0051dfe0
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 4], 0
jb 0x585b49
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051f040
test al, al
je 0x586e54
lea ecx, [ebp - 0x120]
call fcn.0051fb20
mov eax, dword [0x646d3c]
movq xmm0, qword [str.spreadingflag]
mov dword [ebp - 0x38], eax
mov al, byte [0x646d40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0xd
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x585bfa
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585bea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x585c02
xor al, al
jmp 0x585c0c
cmp dword [ebp - 0x128], 0
setne al
mov byte [edi + 0x1c], al
lea ecx, [ebp - 0x40]
push 0x14
mov dword [ebp - 0x40], 0
push str.maintainparallelflag
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x585c9a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585c8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e91
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x585ca2
xor al, al
jmp 0x585cac
cmp dword [ebp - 0x128], 0
setne al
mov byte [edi + 0x1d], al
mov eax, dword [0x646d64]
movq xmm0, qword [str.initialvelocity]
mov dword [ebp - 0x38], eax
mov ax, word [0x646d68]
mov word [ebp - 0x34], ax
mov al, byte [0x646d6a]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0xf
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
lea eax, [edi + 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x585d48
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e96
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
jne 0x586e54
movq xmm0, qword [str.coneangle]
mov al, byte [0x646d74]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 9
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
lea eax, [edi + 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x585dc6
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585dbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e9b
push edx
push ecx
call fcn.005a48cc
add esp, 8
movq xmm0, qword [str.rollangle]
mov al, byte [0x646d80]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 9
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
lea eax, [edi + 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x585e3c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585e32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ea0
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov eax, dword [0x646d8c]
movq xmm0, qword [str.angularvelocity]
mov dword [ebp - 0x38], eax
mov ax, word [0x646d90]
mov word [ebp - 0x34], ax
mov al, byte [0x646d92]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0xf
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
lea eax, [edi + 0x2c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051ea50
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x585ec4
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585eba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ea5
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov eax, dword [str.gravity]
mov dword [ebp - 0x40], eax
mov ax, word [0x63d118]
mov word [ebp - 0x3c], ax
mov al, byte [0x63d11a]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 7
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x39], 0
lea eax, [edi + 0x38]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x585f3f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585f35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586eaa
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov eax, dword [0x646d9c]
movq xmm0, qword [str.hitonbackground]
mov dword [ebp - 0x38], eax
mov ax, word [0x646da0]
mov word [ebp - 0x34], ax
mov al, byte [0x646da2]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0xf
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x585fcc
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585fc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586eaf
push edx
push ecx
call fcn.005a48cc
add esp, 8
test esi, esi
je 0x585fdc
cmp dword [ebp - 0x128], 0
setne al
jmp 0x585fde
xor al, al
mov byte [edi + 0x68], al
lea ecx, [ebp - 0x40]
push 0x13
mov dword [ebp - 0x40], 0
push str.hitonanothermonster
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x58605d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586053
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586eb4
push edx
push ecx
call fcn.005a48cc
add esp, 8
test esi, esi
je 0x58606d
cmp dword [ebp - 0x128], 0
setne al
jmp 0x58606f
xor al, al
mov byte [edi + 0x69], al
mov ax, word [0x646dc0]
movq xmm0, qword [str.piercecount]
mov word [ebp - 0x38], ax
mov al, byte [0x646dc2]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0xb
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], 0
lea esi, [edi + 0x6c]
mov byte [ebp - 4], 0xa
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x586103
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5860f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586eb9
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x58610d
mov dword [esi], 0
push 9
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push str.bombrange
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x586184
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58617a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ebe
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 0xa
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push str.bombeffect
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea esi, [edi + 0x40]
mov byte [ebp - 4], 0xc
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051ebd0
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x58620c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5861fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ec3
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x586220
push 0
push 0x66c47e
mov ecx, esi
call fcn.0043e410
jmp 0x586289
cmp dword [edi + 0x50], 0
je 0x586289
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x586230
mov eax, dword [esi]
push eax
call fcn.004f4e10
add esp, 4
test al, al
jne 0x58626f
push esi
lea ecx, [ebp - 0x120]
call fcn.0051e840
push eax
call fcn.004f4cd0
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044d8b0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00454480
lea ecx, [ebp - 0x40]
call fcn.0043e5d0
cmp dword [esi + 0x14], 0x10
jb 0x586277
mov esi, dword [esi]
mov ecx, dword [0x74c59c]
lea eax, [edi + 0x58]
push 0
push eax
push esi
call fcn.004e1830
push 0xa
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push str.homingflag
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x586314
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ec8
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x58631c
xor al, al
jmp 0x586326
cmp dword [ebp - 0x128], 0
setne al
mov byte [edi + 0x5c], al
lea ecx, [ebp - 0x40]
push 0xf
mov dword [ebp - 0x40], 0
push str.homingstarttime
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0043e410
lea esi, [edi + 0x64]
mov byte [ebp - 4], 0xe
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x5863b1
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5863a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ecd
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
xorps xmm0, xmm0
movaps xmmword [ebp - 0x40], xmm0
test al, al
je 0x5863c2
mov dword [esi], 0
push 0xe
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.homingmaxangle
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea esi, [edi + 0x60]
mov byte [ebp - 4], 0xf
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x58644a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58643a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ed2
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x586454
mov dword [esi], 0
push 5
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.range
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [edi + 0x74]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x5864dc
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5864cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586ed7
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
jne 0x586e54
push 0xc
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.acceleration
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], al
call fcn.0043e410
lea esi, [edi + 0x78]
mov byte [ebp - 4], 0x11
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051ea50
mov edx, dword [ebp - 0x44]
test eax, eax
mov byte [ebp - 4], 0
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x58656b
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58655b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586edc
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x586587
movaps xmm0, xmmword [ebp - 0x40]
unpcklps xmm0, xmm0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
movq qword [esi], xmm0
mov dword [esi + 8], eax
lea ecx, [ebp - 0x120]
xor edi, edi
call fcn.0051e7e0
test eax, eax
je 0x586e46
lea eax, [ebp - 0x120]
mov dword [ebp - 0x134], eax
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x120]
call fcn.0051f9d0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e800
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], 0xa
jne 0x586648
mov edx, str.attachdata
mov esi, 6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x586614
add ecx, 4
add edx, 4
sub esi, 4
jae 0x586603
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x58663b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x58663b
cmp esi, 0xfffffffe
je 0x586637
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x58663b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x58663b
xor eax, eax
jmp 0x586640
sbb eax, eax
or eax, 1
test eax, eax
jne 0x586648
mov al, 1
jmp 0x58664a
xor al, al
test al, al
je 0x586db7
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
push 4
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.type
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x44]
test eax, eax
mov byte [ebp - 4], 0x14
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x586706
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5866f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x586768
lea ecx, [ebp - 0xa0]
call fcn.005859d0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x58674d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586743
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0x16
jmp 0x586e23
push 7
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.flytype
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x5867e2
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5867d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 0xa
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.attachfile
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051ebd0
mov edx, dword [ebp - 0x44]
test eax, eax
mov byte [ebp - 4], 0x14
sete al
mov byte [ebp - 0x121], al
cmp edx, 0x10
jb 0x58686d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58685d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
mov al, byte [ebp - 0x121]
add esp, 8
test al, al
je 0x586888
push 0
push 0x66c47e
lea ecx, [ebp - 0x98]
call fcn.0043e410
jmp 0x586916
cmp dword [ebp - 0x88], 0
je 0x586916
cmp dword [ebp - 0x84], 0x10
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.004f4e10
add esp, 4
test al, al
jne 0x5868f2
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e840
push eax
call fcn.004f4cd0
add esp, 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0044d8b0
add esp, 0xc
lea ecx, [ebp - 0x98]
push eax
call fcn.00454480
lea ecx, [ebp - 0x58]
call fcn.0043e5d0
cmp dword [ebp - 0x84], 0x10
lea eax, [ebp - 0x98]
mov ecx, dword [0x74c59c]
cmovae eax, dword [ebp - 0x98]
push 0
push 0
push eax
call fcn.004e1910
push 8
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.tailflag
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586990
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586986
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
cmp dword [ebp - 0x128], 0
je 0x586b8d
push 9
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.tailcolor
mov byte [ebp - 0x80], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb40
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586a18
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586a0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 0xa
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.taillength
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586a8f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586a85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 8
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.tailsize
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586b06
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 0xd
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.tailshaperect
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051e850
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586b80
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586b76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
cmp dword [ebp - 0x128], 0
setne byte [ebp - 0x70]
jmp 0x586b91
mov byte [ebp - 0x80], 0
push 4
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.roll
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586c08
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586bfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 8
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.distance
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586c7f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586c75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 6
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.period
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586cf6
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586cec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
push 9
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push str.amplitude
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0043e410
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x21
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x120]
call fcn.0051eb50
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
cmp edx, 0x10
jb 0x586d6d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586d63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov esi, dword [ebp - 0x12c]
lea ecx, [ebp - 0xa0]
add esi, 0x84
push ecx
mov eax, dword [esi + 4]
push eax
cmp eax, dword [esi + 8]
je 0x586da3
push esi
call fcn.00585620
add dword [esi + 4], 0x44
lea ecx, [ebp - 0xa0]
add esp, 0xc
call fcn.005859d0
jmp 0x586dd5
mov ecx, esi
call fcn.00585320
lea ecx, [ebp - 0xa0]
call fcn.005859d0
jmp 0x586dd5
mov ecx, dword [ebp - 0x130]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x586dc7
mov eax, dword [ecx]
push eax
push str.CFlyingData::LoadScriptFile_Wrong_Data_:__s
call fcn.004f4490
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x586e0d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x586e03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x586e8c
push edx
push ecx
call fcn.005a48cc
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x120]
call fcn.0051fb00
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
inc edi
call fcn.0051e7e0
cmp edi, eax
jb 0x5865b0
jmp 0x586e4b
mov byte [ebp - 0x121], 1
jmp 0x586e5b
mov byte [ebp - 0x121], 0
lea ecx, [ebp - 0x120]
call fcn.0051e250
mov al, byte [ebp - 0x121]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a489b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
call fcn.005e9e92
int3